330 lines
11 KiB
RPMSpec
330 lines
11 KiB
RPMSpec
|
%define bootstrap 0
|
||
|
%define with_test 0
|
||
|
Name: java-mx4j
|
||
|
Version: 3.0.2
|
||
|
Release: 2mamba
|
||
|
Summary: Open Source implementation of the Java(TM) Management Extensions (JMX)
|
||
|
Group: Development/Libraries/Java
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://mx4j.sourceforge.net/
|
||
|
# cvs -d:pserver:anonymous@mx4j.cvs.sourceforge.net:/cvsroot/mx4j login
|
||
|
# cvs -z3 -d:pserver:anonymous@mx4j.cvs.sourceforge.net:/cvsroot/mx4j co -P mx4j
|
||
|
Source0: mx4j-%{version}-src-cvs.tar.gz
|
||
|
Source1: java-mx4j-build.policy
|
||
|
Source2: java-mx4j-CatalogManager.properties
|
||
|
Source3: http://mirrors.ibiblio.org/pub/mirrors/maven2/mx4j/mx4j/%{version}/mx4j-%{version}.pom
|
||
|
Source4: http://mirrors.ibiblio.org/pub/mirrors/maven2/mx4j/mx4j-remote/%{version}/mx4j-remote-%{version}.pom
|
||
|
Source5: mx4j-impl-%{version}.pom
|
||
|
Source6: mx4j-jmx-%{version}.pom
|
||
|
Source7: mx4j-rimpl-%{version}.pom
|
||
|
Source8: mx4j-rjmx-%{version}.pom
|
||
|
Source9: mx4j-tools-%{version}.pom
|
||
|
|
||
|
Patch0: java-mx4j-3.0.2-javaxssl.patch
|
||
|
Patch1: java-mx4j-3.0.1-iiop-Resolver.patch
|
||
|
Patch2: java-mx4j-3.0.2-build_xml.patch
|
||
|
Patch3: java-mx4j-3.0.2-docbook.patch
|
||
|
Patch4: java-mx4j-3.0.1-no-poa.patch
|
||
|
Patch5: java-mx4j-3.0.2-caucho-build.patch
|
||
|
Patch6: java-mx4j-3.0.1-no-iiop.patch
|
||
|
Patch7: java-mx4j-3.0.1-alt-local-xsl-stylesheets.patch
|
||
|
Patch8: java-mx4j-3.0.2-fix-build_xml.patch
|
||
|
Patch9: java-mx4j-3.0.2-split-extratools.patch
|
||
|
License: Apache Software License 2.0
|
||
|
BuildRequires: apache-ant
|
||
|
BuildRequires: apache-ant-junit
|
||
|
BuildRequires: apache-ant-resolver
|
||
|
BuildRequires: apache-ant-trax
|
||
|
BuildRequires: apache-log4j
|
||
|
BuildRequires: apache-ws-axis
|
||
|
BuildRequires: coreutils
|
||
|
BuildRequires: docbook-dtds
|
||
|
BuildRequires: docbook-xsl
|
||
|
BuildRequires: jakarta-bcel
|
||
|
BuildRequires: jakarta-commons-discovery
|
||
|
BuildRequires: jakarta-commons-logging
|
||
|
BuildRequires: java-classpathx-mail
|
||
|
BuildRequires: java-classpathx-jaf
|
||
|
BuildRequires: java-hessian
|
||
|
BuildRequires: java-sun-jaas
|
||
|
BuildRequires: java-sun-jaf
|
||
|
BuildRequires: java-sun-mail-1.4-api
|
||
|
BuildRequires: java-sun-saaj-1.3-api
|
||
|
BuildRequires: java-wsdl4j
|
||
|
BuildRequires: java-xdoclet
|
||
|
BuildRequires: jpackage-utils
|
||
|
BuildRequires: jython
|
||
|
BuildRequires: libjetty5
|
||
|
BuildRequires: xalan-j2
|
||
|
BuildRequires: xerces-j2
|
||
|
BuildRequires: xjavadoc
|
||
|
BuildRequires: xml-commons
|
||
|
BuildRequires: xml-commons-apis
|
||
|
BuildRequires: xml-commons-resolver
|
||
|
BuildRequires: xmlunit
|
||
|
#BuildRequires: jsse
|
||
|
#BuildRequires: jce
|
||
|
#Requires: jsse
|
||
|
#Requires: jce
|
||
|
Requires: apache-log4j
|
||
|
Requires: apache-ws-axis
|
||
|
Requires: jakarta-bcel
|
||
|
Requires: jakarta-commons-logging
|
||
|
Requires: java-classpathx-jaf
|
||
|
Requires: java-classpathx-mail
|
||
|
Requires: xml-commons
|
||
|
Requires: xml-commons-apis
|
||
|
Requires: xml-commons-resolver
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
MX4J is an Open Source implementation of the Java Management Extensions technology, for both JSR 3 (JMX) and JSR 160 (JMX Remote API)
|
||
|
|
||
|
%package javadoc
|
||
|
Group: Documentation
|
||
|
Summary: Javadoc for %{name}
|
||
|
|
||
|
%description javadoc
|
||
|
MX4J is an Open Source implementation of the Java Management Extensions technology, for both JSR 3 (JMX) and JSR 160 (JMX Remote API)
|
||
|
This package contains javadoc for %{name}
|
||
|
|
||
|
%package manual
|
||
|
Group: Documentation
|
||
|
Summary: Manual for %{name}
|
||
|
|
||
|
%description manual
|
||
|
MX4J is an Open Source implementation of the Java Management Extensions technology, for both JSR 3 (JMX) and JSR 160 (JMX Remote API)
|
||
|
This package contains manual for %{name}.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n mx4j-%{version}
|
||
|
|
||
|
for j in $(find . -name "*.jar"); do
|
||
|
mv $j ${j}.no
|
||
|
done
|
||
|
|
||
|
for j in $(find . -name "CVS"); do
|
||
|
rm -rf $j
|
||
|
done
|
||
|
|
||
|
# To enable iiop when rmic becomes available
|
||
|
# turn off patch6 and turn on patch4
|
||
|
# Patch4 is a backport of upstream changes (MX4J) and may go
|
||
|
# away on future releases
|
||
|
|
||
|
%patch0 -p1
|
||
|
%patch2 -p1
|
||
|
%patch3 -p1
|
||
|
#%patch4 -p1
|
||
|
%patch5 -p1
|
||
|
#%patch6 -p1
|
||
|
#%patch7 -p1
|
||
|
%patch8 -p1
|
||
|
%patch9 -p1
|
||
|
|
||
|
cp %{SOURCE1} build/build.policy
|
||
|
cp %{SOURCE2} build/CatalogManager.properties
|
||
|
|
||
|
pushd build
|
||
|
ln -sf $(build-classpath ant-1.7.1) ant.jar
|
||
|
ln -sf $(build-classpath ant-launcher) ant-launcher.jar
|
||
|
ln -sf $(build-classpath ant/ant-junit) ant-junit.jar
|
||
|
ln -sf $(build-classpath ant/ant-trax) ant-1.7.1.jar
|
||
|
popd
|
||
|
|
||
|
pushd lib
|
||
|
%if %with_test
|
||
|
ln -sf $(build-classpath junit-3.8.2) junit.jar
|
||
|
ln -sf $(build-classpath xmlunit) .
|
||
|
%endif
|
||
|
# build
|
||
|
ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
|
||
|
ln -sf $(build-classpath xercesImpl) xercesImpl.jar
|
||
|
ln -sf $(build-classpath xalan-j2) xalan.jar
|
||
|
ln -sf $(build-classpath commons-logging) .
|
||
|
ln -sf $(build-classpath log4j) .
|
||
|
ln -sf $(build-classpath servletapi5) servlet.jar
|
||
|
ln -sf $(build-classpath bcel) .
|
||
|
ln -sf $(build-classpath xml-commons-resolver) .
|
||
|
# ln -sf /opt/java/jre/lib/jsse.jar .
|
||
|
%if ! %bootstrap
|
||
|
ln -sf $(build-classpath hessian) hessian.jar
|
||
|
ln -sf $(build-classpath hessian) burlap.jar
|
||
|
ln -sf $(build-classpath hessian) caucho-services.jar
|
||
|
ln -sf $(build-classpath axis/axis) .
|
||
|
ln -sf $(build-classpath axis/jaxrpc) .
|
||
|
ln -sf $(build-classpath axis/saaj) .
|
||
|
ln -sf $(build-classpath wsdl4j) .
|
||
|
ln -sf $(build-classpath commons-discovery) .
|
||
|
ln -sf $(build-classpath jython) .
|
||
|
ln -sf $(build-classpath jetty5/jetty) org.mortbay.jetty.jar
|
||
|
ln -sf $(build-classpath sun-mail-api) mail.jar
|
||
|
ln -sf $(build-classpath xdoclet/xdoclet) .
|
||
|
ln -sf $(build-classpath xdoclet/xdoclet-jmx-module) .
|
||
|
ln -sf $(build-classpath xdoclet/xdoclet-mx4j-module) .
|
||
|
ln -sf $(build-classpath jaas) .
|
||
|
ln -sf $(build-classpath sun-jaf) activation.jar
|
||
|
%endif
|
||
|
popd
|
||
|
|
||
|
%build
|
||
|
mkdir -p dist/lib/boa
|
||
|
cd build
|
||
|
|
||
|
export CLASSPATH=$(build-classpath junit-3.8.2 xml-commons-resolver xmlunit \
|
||
|
axis/axis xalan-j2-serializer ant/ant-apache-resolver ant/ant-trax)
|
||
|
%if %bootstrap
|
||
|
echo "#################################### BOOTSTRAP ###########################################"
|
||
|
ant \
|
||
|
-Dant.build.javac.source=1.4 \
|
||
|
-Dant.build.javac.target=1.4 \
|
||
|
-Dbuild.sysclasspath=first \
|
||
|
compile.jmx compile.rjmx
|
||
|
%else
|
||
|
%if %with_test
|
||
|
echo "#################################### TEST ###########################################"
|
||
|
ant \
|
||
|
-Dant.build.javac.source=1.4 \
|
||
|
-Dant.build.javac.target=1.4 \
|
||
|
-Dbuild.sysclasspath=first \
|
||
|
compile.jmx compile.rjmx compile.tools tests-report javadocs docs
|
||
|
%else
|
||
|
ant \
|
||
|
-Dant.build.javac.source=1.4 \
|
||
|
-Dant.build.javac.target=1.4 \
|
||
|
-Dbuild.sysclasspath=first \
|
||
|
compile.jmx compile.rjmx compile.tools javadocs docs
|
||
|
%endif
|
||
|
%endif
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
mkdir -p %{buildroot}%{_javadir}/mx4j/boa
|
||
|
mkdir -p %{buildroot}%{_datadir}/mx4j
|
||
|
mkdir -p %{buildroot}%{_datadir}/mx4j-%{version}
|
||
|
|
||
|
install -m 644 dist/lib/mx4j-impl.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/mx4j-impl-%{version}.jar
|
||
|
install -m 644 dist/lib/mx4j-jmx.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/mx4j-jmx-%{version}.jar
|
||
|
install -m 644 dist/lib/mx4j.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/mx4j-%{version}.jar
|
||
|
%if ! %bootstrap
|
||
|
install -m 644 dist/lib/mx4j-tools.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/mx4j-tools-%{version}.jar
|
||
|
install -m 644 dist/lib/mx4j-tools-extra.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/mx4j-tools-extra-%{version}.jar
|
||
|
install -m 644 dist/lib/mx4j-soap.war \
|
||
|
%{buildroot}%{_datadir}/mx4j-%{version}
|
||
|
%endif
|
||
|
install -m 644 dist/lib/mx4j-rjmx.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/mx4j-rjmx-%{version}.jar
|
||
|
install -m 644 dist/lib/mx4j-rimpl.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/mx4j-rimpl-%{version}.jar
|
||
|
install -m 644 dist/lib/mx4j-remote.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/mx4j-remote-%{version}.jar
|
||
|
|
||
|
install -m 644 dist/lib/boa/mx4j-rjmx-boa.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/boa/mx4j-rjmx-boa-%{version}.jar
|
||
|
install -m 644 dist/lib/boa/mx4j-rimpl-boa.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/boa/mx4j-rimpl-boa-%{version}.jar
|
||
|
install -m 644 dist/lib/boa/mx4j-remote-boa.jar \
|
||
|
%{buildroot}%{_javadir}/mx4j/boa/mx4j-remote-boa-%{version}.jar
|
||
|
|
||
|
(
|
||
|
cd %{buildroot}%{_javadir}/mx4j
|
||
|
for jar in *-%{version}.jar ; do
|
||
|
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
|
||
|
done
|
||
|
)
|
||
|
|
||
|
mkdir -p %{buildroot}%{_datadir}/maven2/poms
|
||
|
|
||
|
%add_to_maven_depmap mx4j mx4j %{version} JPP/mx4j mx4j
|
||
|
install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/maven2/poms/JPP.mx4j-mx4j.pom
|
||
|
|
||
|
%add_to_maven_depmap mx4j mx4j-remote %{version} JPP/mx4j mx4j-remote
|
||
|
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/maven2/poms/JPP.mx4j-mx4j-remote.pom
|
||
|
|
||
|
%add_to_maven_depmap mx4j mx4j-impl %{version} JPP/mx4j mx4j-impl
|
||
|
install -pm 644 %{SOURCE5} %{buildroot}%{_datadir}/maven2/poms/JPP.mx4j-mx4j-impl.pom
|
||
|
|
||
|
%add_to_maven_depmap mx4j mx4j-jmx %{version} JPP/mx4j mx4j-jmx
|
||
|
install -pm 644 %{SOURCE6} %{buildroot}%{_datadir}/maven2/poms/JPP.mx4j-mx4j-jmx.pom
|
||
|
|
||
|
%add_to_maven_depmap mx4j mx4j-rimpl %{version} JPP/mx4j mx4j-rimpl
|
||
|
install -pm 644 %{SOURCE7} %{buildroot}%{_datadir}/maven2/poms/JPP.mx4j-mx4j-rimpl.pom
|
||
|
|
||
|
%add_to_maven_depmap mx4j mx4j-rjmx %{version} JPP/mx4j mx4j-rjmx
|
||
|
install -pm 644 %{SOURCE8} %{buildroot}%{_datadir}/maven2/poms/JPP.mx4j-mx4j-rjmx.pom
|
||
|
|
||
|
%add_to_maven_depmap mx4j mx4j-tools %{version} JPP/mx4j mx4j-tools
|
||
|
install -pm 644 %{SOURCE9} %{buildroot}%{_datadir}/maven2/poms/JPP.mx4j-mx4j-tools.pom
|
||
|
|
||
|
%if ! %{bootstrap}
|
||
|
mkdir -p %{buildroot}%{_javadocdir}/mx4j-%{version}
|
||
|
cp -r dist/docs/api/* %{buildroot}%{_javadocdir}/mx4j-%{version}
|
||
|
ln -s mx4j-%{version} %{buildroot}%{_javadocdir}/mx4j
|
||
|
%endif
|
||
|
#%{_bindir}/aot-compile-rpm
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_javadir}/mx4j/boa/mx4j-remote-boa-%{version}.jar
|
||
|
%{_javadir}/mx4j/boa/mx4j-rimpl-boa-%{version}.jar
|
||
|
%{_javadir}/mx4j/boa/mx4j-rjmx-boa-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j.jar
|
||
|
%{_javadir}/mx4j/mx4j-impl-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j-impl.jar
|
||
|
%{_javadir}/mx4j/mx4j-jmx-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j-jmx.jar
|
||
|
%{_javadir}/mx4j/mx4j-remote-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j-remote.jar
|
||
|
%{_javadir}/mx4j/mx4j-rimpl-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j-rimpl.jar
|
||
|
%{_javadir}/mx4j/mx4j-rjmx-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j-rjmx.jar
|
||
|
%if ! %bootstrap
|
||
|
%{_javadir}/mx4j/mx4j-tools-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j-tools.jar
|
||
|
%{_javadir}/mx4j/mx4j-tools-extra-%{version}.jar
|
||
|
%{_javadir}/mx4j/mx4j-tools-extra.jar
|
||
|
%{_datadir}/mx4j-%{version}
|
||
|
%endif
|
||
|
%{_datadir}/maven2/poms
|
||
|
%{_mavendepmapfragdir}
|
||
|
#%doc README.txt
|
||
|
|
||
|
%if ! %bootstrap
|
||
|
%files javadoc
|
||
|
%defattr(-,root,root)
|
||
|
%{_javadocdir}/mx4j-%{version}
|
||
|
%{_javadocdir}/mx4j
|
||
|
|
||
|
%files manual
|
||
|
%defattr(-,root,root)
|
||
|
%doc dist/docs/*
|
||
|
%endif
|
||
|
|
||
|
%changelog
|
||
|
* Mon Nov 29 2010 gil <puntogil@libero.it> 3.0.2-2mamba
|
||
|
- rebuilt devel
|
||
|
|
||
|
* Mon Sep 07 2009 gil <puntogil@libero.it> 3.0.2-1mamba
|
||
|
- update to 3.0.2
|
||
|
|
||
|
* Mon Sep 07 2009 gil <puntogil@libero.it> 3.0.1-3mamba
|
||
|
- add maven2 poms
|
||
|
|
||
|
* Thu Mar 12 2009 gil <puntogil@libero.it> 3.0.1-2mamba
|
||
|
- add java-hessian support
|
||
|
|
||
|
* Thu Mar 12 2009 gil <puntogil@libero.it> 3.0.1-1mamba
|
||
|
- package created by autospec
|
||
|
- bootstrap
|