java-mx4j/java-mx4j.spec

123 lines
4.0 KiB
RPMSpec

%define bootstrap 0
%define with_test 0
Name: java-mx4j
Version: 3.0.2
Release: 3mamba
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/
Source0: https://sourceforge.net/projects/mx4j/files/MX4J%20Binary/%{version}/mx4j-%{version}.tar.gz
License: Apache Software License 2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
BuildRequires: javapackages
#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
%description
MX4J is an Open Source implementation of the Java Management Extensions technology, for both JSR 3 (JMX) and JSR 160 (JMX Remote API)
%prep
%setup -q -n mx4j-%{version}
%build
%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 lib/mx4j-impl.jar \
%{buildroot}%{_javadir}/mx4j/mx4j-impl-%{version}.jar
install -m 644 lib/mx4j-jmx.jar \
%{buildroot}%{_javadir}/mx4j/mx4j-jmx-%{version}.jar
install -m 644 lib/mx4j.jar \
%{buildroot}%{_javadir}/mx4j/mx4j-%{version}.jar
%if ! %bootstrap
install -m 644 lib/mx4j-tools.jar \
%{buildroot}%{_javadir}/mx4j/mx4j-tools-%{version}.jar
# install -m 644 lib/mx4j-tools-extra.jar \
# %{buildroot}%{_javadir}/mx4j/mx4j-tools-extra-%{version}.jar
install -m 644 lib/mx4j-soap.war \
%{buildroot}%{_datadir}/mx4j-%{version}
%endif
install -m 644 lib/mx4j-rjmx.jar \
%{buildroot}%{_javadir}/mx4j/mx4j-rjmx-%{version}.jar
install -m 644 lib/mx4j-rimpl.jar \
%{buildroot}%{_javadir}/mx4j/mx4j-rimpl-%{version}.jar
install -m 644 lib/mx4j-remote.jar \
%{buildroot}%{_javadir}/mx4j/mx4j-remote-%{version}.jar
#install -m 644 lib/boa/mx4j-rjmx-boa.jar \
# %{buildroot}%{_javadir}/mx4j/boa/mx4j-rjmx-boa-%{version}.jar
#install -m 644 lib/boa/mx4j-rimpl-boa.jar \
# %{buildroot}%{_javadir}/mx4j/boa/mx4j-rimpl-boa-%{version}.jar
#install -m 644 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
)
%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
%{_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}/mx4j-soap.war
%doc LICENSE.txt
%changelog
* Wed Aug 17 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.2-3mamba
- repackage from upstream binary archive
* 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