SPECS: java-mx4j.spec - renamed from mx4j.spec - more build deps

pawelz pawelz at pld-linux.org
Wed Apr 1 17:40:09 CEST 2009


Author: pawelz                       Date: Wed Apr  1 15:40:09 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- renamed from mx4j.spec
- more build deps

---- Files affected:
SPECS:
   java-mx4j.spec (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SPECS/java-mx4j.spec
diff -u SPECS/java-mx4j.spec:1.19 SPECS/java-mx4j.spec:1.20
--- SPECS/java-mx4j.spec:1.19	Sat Feb  9 22:00:47 2008
+++ SPECS/java-mx4j.spec	Wed Apr  1 17:40:03 2009
@@ -4,24 +4,29 @@
 %bcond_with	doc	# build docs (broken)
 #
 %include	/usr/lib/rpm/macros.java
+#
+%define		srcname	mx4j
 Summary:	Open source implementation of JMX Java API
 Summary(pl.UTF-8):	Implementacja API Javy JMX z otwartymi źródłami
-Name:		mx4j
+Name:		java-mx4j
 Version:	3.0.2
 Release:	0.2
 Epoch:		0
 License:	Apache
 Group:		Development/Languages/Java
-Source0:	http://dl.sourceforge.net/mx4j/%{name}-%{version}-src.tar.gz
+Source0:	http://dl.sourceforge.net/mx4j/%{srcname}-%{version}-src.tar.gz
 # Source0-md5:	1c01f620c21efb0a84c3105c064b9047
+Patch0:		java-mx4j-sourcetarget.patch
 URL:		http://mx4j.sourceforge.net/
-BuildRequires:	ant
+BuildRequires:	ant >= 1.7
 BuildRequires:	ant-trax
-BuildRequires:	axis
+# BuildRequires:	axis
 BuildRequires:	jaf
 BuildRequires:	jakarta-bcel >= 5.0
 BuildRequires:	jakarta-commons-logging >= 1.0.1
 BuildRequires:	javamail >= 1.2
+BuildRequires:	java-gcj-compat-devel
+BuildRequires:	java-hessian
 BuildRequires:	jce >= 1.2.2
 BuildRequires:	jpackage-utils
 BuildRequires:	jsse >= 1.0.2
@@ -31,7 +36,6 @@
 BuildRequires:	logging-log4j >= 1.2.7
 BuildRequires:	rpmbuild(macros) >= 1.300
 BuildRequires:	xml-commons
-Requires:	jre
 Provides:	jmxri
 Obsoletes:	openjmx
 BuildArch:	noarch
@@ -81,9 +85,9 @@
 
 %build
 required_jars="\
+axis \
 activation \
-mailapi.jar \
-javamail/smtp \
+mail \
 jython \
 commons-logging \
 xml-commons-apis \
@@ -93,9 +97,16 @@
 log4j \
 junit \
 jaxp_transform_impl \
+tools \
+ecj \
+libgcj \
+servlet \
+hessian \
+glibj
 "
 
-export CLASSPATH=$(build-classpath $required_jars)
+CLASSPATH=$(build-classpath $required_jars)
+export CLASSPATH
 
 #ln -sf %{_javalibdir}/commons-logging.jar lib/
 #ln -sf %{_javalibdir}/mail.jar lib/
@@ -112,25 +123,25 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_javadir}
-cp -a dist/lib/%{name}-actions.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-actions-%{version}.jar
-cp -a dist/lib/%{name}-jmx.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-jmx-%{version}.jar
-cp -a dist/lib/%{name}-tools.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tools-%{version}.jar
-ln -sf %{name}-actions-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-actions.jar
-ln -sf %{name}-jmx-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-jmx.jar
-ln -sf %{name}-tools-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tools.jar
+cp -a dist/lib/%{srcname}-actions.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-actions-%{version}.jar
+cp -a dist/lib/%{srcname}-jmx.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-jmx-%{version}.jar
+cp -a dist/lib/%{srcname}-tools.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-tools-%{version}.jar
+ln -sf %{srcname}-actions-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-actions.jar
+ln -sf %{srcname}-jmx-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-jmx.jar
+ln -sf %{srcname}-tools-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-tools.jar
 
 # javadoc
 %if %{with doc}
-install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink
 %endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post javadoc
-ln -sf %{name}-%{version} %{_javadocdir}/%{name}
+ln -sf %{srcname}-%{version} %{_javadocdir}/%{srcname}
 
 %files
 %defattr(644,root,root,755)
@@ -139,8 +150,8 @@
 %if %{with doc}
 %files javadoc
 %defattr(644,root,root,755)
-%{_javadocdir}/%{name}-%{version}
-%ghost %{_javadocdir}/%{name}
+%{_javadocdir}/%{srcname}-%{version}
+%ghost %{_javadocdir}/%{srcname}
 %endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -149,6 +160,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20  2009/04/01 15:40:03  pawelz
+- renamed from mx4j.spec
+- more build deps
+
 Revision 1.19  2008/02/09 21:00:47  qboosh
 - unified License format
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/java-mx4j.spec?r1=1.19&r2=1.20&f=u



More information about the pld-cvs-commit mailing list