SPECS: java-commons-collections.spec - correct dir for javadoc - build with...
pawelz
pawelz at pld-linux.org
Tue Feb 10 14:50:24 CET 2009
Author: pawelz Date: Tue Feb 10 13:50:23 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- correct dir for javadoc
- build with java0gcj-compat-devel
- rel 3
---- Files affected:
SPECS:
java-commons-collections.spec (1.28 -> 1.29)
---- Diffs:
================================================================
Index: SPECS/java-commons-collections.spec
diff -u SPECS/java-commons-collections.spec:1.28 SPECS/java-commons-collections.spec:1.29
--- SPECS/java-commons-collections.spec:1.28 Thu Dec 25 18:40:13 2008
+++ SPECS/java-commons-collections.spec Tue Feb 10 14:50:18 2009
@@ -4,11 +4,13 @@
%bcond_without javadoc # don't build javadoc
%include /usr/lib/rpm/macros.java
+
+%define srcname commons-collections
Summary: Commons Collections - Java Collections enhancements
Summary(pl.UTF-8): Commons Collections - rozszerzenia Java Collections
Name: java-commons-collections
Version: 3.2
-Release: 2
+Release: 3
License: Apache
Group: Libraries/Java
Source0: http://www.apache.org/dist/commons/collections/source/commons-collections-%{version}-src.tar.gz
@@ -17,11 +19,11 @@
Patch0: jakarta-commons-collections-target.patch
URL: http://commons.apache.org/collections/
BuildRequires: ant
+BuildRequires: java-gcj-compat-devel
BuildRequires: jpackage-utils
BuildRequires: rpm-javaprov
BuildRequires: rpmbuild(macros) >= 1.300
BuildRequires: sed >= 4.0
-Requires: jre
Provides: jakarta-commons-collections
Obsoletes: jakarta-commons-collections
BuildArch: noarch
@@ -72,49 +74,54 @@
find -name '*.jar' | xargs rm -vf
%build
-%ant jar %{?with_javadoc:javadoc}
+%ant -Dbuild.compiler=extJavac jar
+
+%if %{with javadoc}
+export SHELL=/bin/sh
+%ant javadoc
+%endif
# commons-collections-tomcat5
-%ant -f tomcat5-build.xml
+%ant -Dbuild.compiler=extJavac -f tomcat5-build.xml
%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d $RPM_BUILD_ROOT%{_javadir}
-install build/commons-collections-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/commons-collections-%{version}.jar
-ln -sf commons-collections-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/commons-collections.jar
+install build/%{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -sf %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
-install collections-tomcat5/commons-collections-tomcat5.jar $RPM_BUILD_ROOT%{_javadir}/commons-collections-tomcat5-%{version}.jar
-ln -sf commons-collections-tomcat5-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/commons-collections-tomcat5.jar
+install collections-tomcat5/%{srcname}-tomcat5.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-tomcat5-%{version}.jar
+ln -sf %{srcname}-tomcat5-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-tomcat5.jar
# javadoc
%if %{with javadoc}
-install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-cp -a build/docs/apidocs/* $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 -a build/docs/apidocs/* $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)
-%{_javadir}/commons-collections.jar
-%{_javadir}/commons-collections-%{version}.jar
+%{_javadir}/%{srcname}.jar
+%{_javadir}/%{srcname}-%{version}.jar
%files tomcat5
%defattr(644,root,root,755)
-%{_javadir}/commons-collections-tomcat5.jar
-%{_javadir}/commons-collections-tomcat5-%{version}.jar
+%{_javadir}/%{srcname}-tomcat5.jar
+%{_javadir}/%{srcname}-tomcat5-%{version}.jar
%if %{with javadoc}
%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"`)
@@ -123,6 +130,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.29 2009/02/10 13:50:18 pawelz
+- correct dir for javadoc
+- build with java0gcj-compat-devel
+- rel 3
+
Revision 1.28 2008/12/25 17:40:13 pawelz
- added Provides/Obsolets old name for subpackages
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/java-commons-collections.spec?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list