Drop tomcat5 subpackage.
This commit is contained in:
parent
40f541adf5
commit
ca16e9f5ba
@ -3,23 +3,21 @@
|
|||||||
|
|
||||||
Name: apache-%{short_name}
|
Name: apache-%{short_name}
|
||||||
Version: 3.2.1
|
Version: 3.2.1
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: Provides new interfaces, implementations and utilities for Java Collections
|
Summary: Provides new interfaces, implementations and utilities for Java Collections
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://commons.apache.org/%{base_name}/
|
URL: http://commons.apache.org/%{base_name}/
|
||||||
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
||||||
Source6: collections-tomcat5-build.xml
|
|
||||||
|
|
||||||
Patch0: jakarta-%{short_name}-javadoc-nonet.patch
|
Patch0: jakarta-%{short_name}-javadoc-nonet.patch
|
||||||
Patch4: commons-collections-3.2-build_xml.patch
|
Patch4: commons-collections-3.2-build_xml.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
BuildRequires: jpackage-utils
|
BuildRequires: jpackage-utils
|
||||||
BuildRequires: maven2
|
BuildRequires: maven
|
||||||
BuildRequires: maven-antrun-plugin
|
BuildRequires: maven-antrun-plugin
|
||||||
BuildRequires: maven-assembly-plugin
|
BuildRequires: maven-assembly-plugin
|
||||||
BuildRequires: maven-compiler-plugin
|
BuildRequires: maven-compiler-plugin
|
||||||
@ -43,6 +41,7 @@ Requires(postun): jpackage-utils
|
|||||||
|
|
||||||
Provides: jakarta-%{short_name} = %{version}-%{release}
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||||||
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-tomcat5 < %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The introduction of the Collections API by Sun in JDK 1.2 has been a
|
The introduction of the Collections API by Sun in JDK 1.2 has been a
|
||||||
@ -80,15 +79,6 @@ Obsoletes: jakarta-%{short_name}-javadoc < %{version}-%{release}
|
|||||||
%description javadoc
|
%description javadoc
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%package tomcat5
|
|
||||||
Summary: Jakarta Commons Collection dependency for Tomcat5
|
|
||||||
Group: Development/Libraries
|
|
||||||
Provides: jakarta-%{short_name}-tomcat5 = %{version}-%{release}
|
|
||||||
Obsoletes: jakarta-%{short_name}-tomcat5 < %{version}-%{release}
|
|
||||||
|
|
||||||
%description tomcat5
|
|
||||||
A package that is specifically designed to fulfill to a Tomcat5 dependency.
|
|
||||||
|
|
||||||
%package testframework-javadoc
|
%package testframework-javadoc
|
||||||
Summary: Javadoc for %{name}-testframework
|
Summary: Javadoc for %{name}-testframework
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
@ -107,7 +97,6 @@ find . -name "*.jar" -exec rm -f {} \;
|
|||||||
|
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch4 -b .sav
|
%patch4 -b .sav
|
||||||
cp %{SOURCE6} .
|
|
||||||
|
|
||||||
# Fix file eof
|
# Fix file eof
|
||||||
%{__sed} -i 's/\r//' LICENSE.txt
|
%{__sed} -i 's/\r//' LICENSE.txt
|
||||||
@ -118,34 +107,21 @@ cp %{SOURCE6} .
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
mvn-rpmbuild install javadoc:aggregate
|
||||||
mkdir -p $MAVEN_REPO_LOCAL
|
|
||||||
|
|
||||||
mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL install javadoc:javadoc
|
|
||||||
|
|
||||||
export MAVEN_HOME_LOCAL=$(pwd)/.maven
|
|
||||||
|
|
||||||
ant tf.javadoc
|
ant tf.javadoc
|
||||||
|
|
||||||
# commons-collections-tomcat5
|
|
||||||
ant -f collections-tomcat5-build.xml
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
# jars
|
# jars
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||||
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{short_name}.pom
|
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{short_name}.pom
|
||||||
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}
|
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}
|
||||||
%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name}
|
%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name}
|
||||||
install -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
install -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||||
install -m 644 target/%{short_name}-testframework-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-testframework-%{version}.jar
|
install -m 644 target/%{short_name}-testframework-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-testframework.jar
|
||||||
|
|
||||||
# tomcat5
|
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
||||||
install -m 644 collections-tomcat5/%{short_name}-tomcat5.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tomcat5-%{version}.jar
|
|
||||||
|
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
@ -158,8 +134,6 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework-%{version}
|
|||||||
cp -pr build/docs/testframework/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework-%{version}
|
cp -pr build/docs/testframework/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework-%{version}
|
||||||
ln -s %{name}-testframework-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework
|
ln -s %{name}-testframework-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
@ -172,23 +146,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc PROPOSAL.html README.txt LICENSE.txt RELEASE-NOTES.html NOTICE.txt
|
%doc PROPOSAL.html README.txt LICENSE.txt RELEASE-NOTES.html NOTICE.txt
|
||||||
%{_mavenpomdir}/*
|
%{_mavenpomdir}/*
|
||||||
%{_mavendepmapfragdir}/*
|
%{_mavendepmapfragdir}/*
|
||||||
%{_javadir}/%{name}-%{version}.jar
|
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%{_javadir}/%{short_name}-%{version}.jar
|
|
||||||
%{_javadir}/%{short_name}.jar
|
%{_javadir}/%{short_name}.jar
|
||||||
|
|
||||||
%files testframework
|
%files testframework
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_javadir}/%{name}-testframework-%{version}.jar
|
|
||||||
%{_javadir}/%{name}-testframework.jar
|
%{_javadir}/%{name}-testframework.jar
|
||||||
%{_javadir}/%{short_name}-testframework-%{version}.jar
|
|
||||||
%{_javadir}/%{short_name}-testframework.jar
|
%{_javadir}/%{short_name}-testframework.jar
|
||||||
|
|
||||||
%files tomcat5
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_javadir}/*-tomcat5*.jar
|
|
||||||
%doc LICENSE.txt NOTICE.txt
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_javadocdir}/%{name}-%{version}
|
%{_javadocdir}/%{name}-%{version}
|
||||||
@ -200,6 +165,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_javadocdir}/%{name}-testframework
|
%{_javadocdir}/%{name}-testframework
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 16 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-10
|
||||||
|
- Drop tomcat5 subpackage.
|
||||||
|
|
||||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-9
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user