|
Carl Green |
cc0b53 |
%global base_name collections
|
|
Carl Green |
cc0b53 |
%global short_name commons-%{base_name}
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
Name: apache-%{short_name}
|
|
Carl Green |
cc0b53 |
Version: 3.2.1
|
|
Stanislav Ochotnicky |
5e2095 |
Release: 20%{?dist}
|
|
Carl Green |
cc0b53 |
Summary: Provides new interfaces, implementations and utilities for Java Collections
|
|
Carl Green |
cc0b53 |
License: ASL 2.0
|
|
Carl Green |
cc0b53 |
Group: Development/Libraries
|
|
Alexander Kurtakov |
4f408d |
URL: http://commons.apache.org/%{base_name}/
|
|
Carl Green |
cc0b53 |
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
Mat Booth |
2a0077 |
Source1: commons-collections-testframework.pom
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
Patch0: jakarta-%{short_name}-javadoc-nonet.patch
|
|
Carl Green |
cc0b53 |
Patch4: commons-collections-3.2-build_xml.patch
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
BuildArch: noarch
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
BuildRequires: java-devel
|
|
Carl Green |
cc0b53 |
BuildRequires: jpackage-utils
|
|
Stanislav Ochotnicky |
aa77bd |
BuildRequires: maven-local
|
|
Carl Green |
cc0b53 |
BuildRequires: ant
|
|
Alexander Kurtakov |
4f408d |
BuildRequires: apache-commons-parent
|
|
Stanislav Ochotnicky |
5e2095 |
Requires: java-headless
|
|
Carl Green |
cc0b53 |
Requires: jpackage-utils
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
Provides: jakarta-%{short_name} = %{version}-%{release}
|
|
Carl Green |
cc0b53 |
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
|
Alexander Kurtakov |
ca16e9 |
Obsoletes: %{name}-tomcat5 < %{version}-%{release}
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%description
|
|
Carl Green |
cc0b53 |
The introduction of the Collections API by Sun in JDK 1.2 has been a
|
|
Carl Green |
cc0b53 |
boon to quick and effective Java programming. Ready access to powerful
|
|
Carl Green |
cc0b53 |
data structures has accelerated development by reducing the need for
|
|
Carl Green |
cc0b53 |
custom container classes around each core object. Most Java2 APIs are
|
|
Carl Green |
cc0b53 |
significantly easier to use because of the Collections API.
|
|
Carl Green |
cc0b53 |
However, there are certain holes left unfilled by Sun's
|
|
Carl Green |
cc0b53 |
implementations, and the Jakarta-Commons Collections Component strives
|
|
Carl Green |
cc0b53 |
to fulfill them. Among the features of this package are:
|
|
Carl Green |
cc0b53 |
- special-purpose implementations of Lists and Maps for fast access
|
|
Carl Green |
cc0b53 |
- adapter classes from Java1-style containers (arrays, enumerations) to
|
|
Carl Green |
cc0b53 |
Java2-style collections.
|
|
Carl Green |
cc0b53 |
- methods to test or create typical set-theory properties of collections
|
|
Carl Green |
cc0b53 |
such as union, intersection, and closure.
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%package testframework
|
|
Carl Green |
cc0b53 |
Summary: Testframework for %{name}
|
|
Carl Green |
cc0b53 |
Group: Development/Tools
|
|
Carl Green |
cc0b53 |
Requires: %{name} = %{version}-%{release}
|
|
Carl Green |
cc0b53 |
Provides: jakarta-%{short_name}-testframework = %{version}-%{release}
|
|
Carl Green |
cc0b53 |
Obsoletes: jakarta-%{short_name}-testframework < %{version}-%{release}
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%description testframework
|
|
Carl Green |
cc0b53 |
%{summary}.
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%package javadoc
|
|
Carl Green |
cc0b53 |
Summary: Javadoc for %{name}
|
|
Carl Green |
cc0b53 |
Group: Documentation
|
|
Carl Green |
cc0b53 |
Provides: jakarta-%{short_name}-javadoc = %{version}-%{release}
|
|
Carl Green |
cc0b53 |
Obsoletes: jakarta-%{short_name}-javadoc < %{version}-%{release}
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%description javadoc
|
|
Carl Green |
cc0b53 |
%{summary}.
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%package testframework-javadoc
|
|
Carl Green |
cc0b53 |
Summary: Javadoc for %{name}-testframework
|
|
Carl Green |
cc0b53 |
Group: Documentation
|
|
Carl Green |
cc0b53 |
Provides: jakarta-%{short_name}-testframework-javadoc = %{version}-%{release}
|
|
Carl Green |
cc0b53 |
Obsoletes: jakarta-%{short_name}-testframework-javadoc < %{version}-%{release}
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%description testframework-javadoc
|
|
Carl Green |
cc0b53 |
%{summary}.
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%prep
|
|
Carl Green |
cc0b53 |
%setup -q -n %{short_name}-%{version}-src
|
|
Mat Booth |
2a0077 |
|
|
Carl Green |
cc0b53 |
# remove all binary libs
|
|
Carl Green |
cc0b53 |
find . -name "*.jar" -exec rm -f {} \;
|
|
Mat Booth |
2a0077 |
find . -name "*.class" -exec rm -f {} \;
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%patch0 -p1
|
|
Carl Green |
cc0b53 |
%patch4 -b .sav
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
# Fix file eof
|
|
Carl Green |
cc0b53 |
%{__sed} -i 's/\r//' LICENSE.txt
|
|
Carl Green |
cc0b53 |
%{__sed} -i 's/\r//' PROPOSAL.html
|
|
Carl Green |
cc0b53 |
%{__sed} -i 's/\r//' RELEASE-NOTES.html
|
|
Carl Green |
cc0b53 |
%{__sed} -i 's/\r//' README.txt
|
|
Carl Green |
cc0b53 |
%{__sed} -i 's/\r//' NOTICE.txt
|
|
Carl Green |
cc0b53 |
|
|
Mat Booth |
2a0077 |
# Substitute version into testframework pom
|
|
Mat Booth |
2a0077 |
cp -p %{SOURCE1} pom-testframework.xml
|
|
Mat Booth |
2a0077 |
sed -i 's/@VERSION@/%{version}/' pom-testframework.xml
|
|
Carl Green |
cc0b53 |
|
|
Mat Booth |
2a0077 |
%build
|
|
Mat Booth |
2a0077 |
%mvn_build
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
ant tf.javadoc
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%install
|
|
Jaromir Capik |
4b15a5 |
|
|
Carl Green |
cc0b53 |
# jars
|
|
Jaromir Capik |
4b15a5 |
install -Dm 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
Jaromir Capik |
4b15a5 |
install -Dm 644 target/%{short_name}-testframework-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-testframework.jar
|
|
Jaromir Capik |
4b15a5 |
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
|
Jaromir Capik |
4b15a5 |
|
|
Jaromir Capik |
4b15a5 |
|
|
Jaromir Capik |
4b15a5 |
# poms
|
|
Jaromir Capik |
4b15a5 |
install -Dpm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
Mat Booth |
2a0077 |
install -Dpm 644 pom-testframework.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{short_name}-testframework.pom
|
|
Jaromir Capik |
4b15a5 |
|
|
Jaromir Capik |
4b15a5 |
|
|
Jaromir Capik |
4b15a5 |
# fragments
|
|
Mat Booth |
2a0077 |
%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar -a "org.apache.commons:%{short_name}"
|
|
Mat Booth |
2a0077 |
%add_maven_depmap JPP-%{short_name}-testframework.pom %{short_name}-testframework.jar -f "testframework" -a "org.apache.commons:%{short_name}-testframework"
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
# javadoc
|
|
Carl Green |
cc0b53 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Carl Green |
cc0b53 |
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Carl Green |
cc0b53 |
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
Carl Green |
cc0b53 |
rm -rf target/site/apidocs
|
|
Carl Green |
cc0b53 |
|
|
Jaromir Capik |
4b15a5 |
|
|
Carl Green |
cc0b53 |
# testframework-javadoc
|
|
Carl Green |
cc0b53 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework-%{version}
|
|
Carl Green |
cc0b53 |
cp -pr build/docs/testframework/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework-%{version}
|
|
Carl Green |
cc0b53 |
ln -s %{name}-testframework-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%files
|
|
Carl Green |
cc0b53 |
%doc PROPOSAL.html README.txt LICENSE.txt RELEASE-NOTES.html NOTICE.txt
|
|
Jaromir Capik |
4b15a5 |
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
Jaromir Capik |
4b15a5 |
%{_mavendepmapfragdir}/%{name}
|
|
Carl Green |
cc0b53 |
%{_javadir}/%{name}.jar
|
|
Carl Green |
cc0b53 |
%{_javadir}/%{short_name}.jar
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%files testframework
|
|
Mat Booth |
2a0077 |
%{_mavenpomdir}/JPP-%{short_name}-testframework.pom
|
|
Mat Booth |
2a0077 |
%{_mavendepmapfragdir}/%{name}-testframework
|
|
Carl Green |
cc0b53 |
%{_javadir}/%{name}-testframework.jar
|
|
Carl Green |
cc0b53 |
%{_javadir}/%{short_name}-testframework.jar
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%files javadoc
|
|
Mat Booth |
2a0077 |
%doc LICENSE.txt NOTICE.txt
|
|
Carl Green |
cc0b53 |
%{_javadocdir}/%{name}-%{version}
|
|
Carl Green |
cc0b53 |
%{_javadocdir}/%{name}
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
%files testframework-javadoc
|
|
Mat Booth |
2a0077 |
%doc LICENSE.txt NOTICE.txt
|
|
Carl Green |
cc0b53 |
%{_javadocdir}/%{name}-testframework-%{version}
|
|
Carl Green |
cc0b53 |
%{_javadocdir}/%{name}-testframework
|
|
Carl Green |
cc0b53 |
|
|
Jaromir Capik |
4b15a5 |
|
|
Carl Green |
cc0b53 |
%changelog
|
|
Stanislav Ochotnicky |
5e2095 |
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.1-20
|
|
Stanislav Ochotnicky |
5e2095 |
- Use Requires: java-headless rebuild (#1067528)
|
|
Stanislav Ochotnicky |
5e2095 |
|
|
Mat Booth |
2a0077 |
* Mon Aug 12 2013 Mat Booth <fedora@matbooth.co.uk> - 3.2.1-19
|
|
Mat Booth |
2a0077 |
- Fix FTBFS rhbz #991965
|
|
Mat Booth |
2a0077 |
|
|
Dennis Gilmore |
798ef7 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-18
|
|
Dennis Gilmore |
798ef7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
Dennis Gilmore |
798ef7 |
|
|
Mikolaj Izdebski |
17cd8c |
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-17
|
|
Mikolaj Izdebski |
17cd8c |
- Remove unneeded BR: maven-idea-plugin
|
|
Mikolaj Izdebski |
17cd8c |
|
|
Dennis Gilmore |
4ce44d |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-16
|
|
Dennis Gilmore |
4ce44d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
Dennis Gilmore |
4ce44d |
|
|
Stanislav Ochotnicky |
aa77bd |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.2.1-15
|
|
Stanislav Ochotnicky |
aa77bd |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
Stanislav Ochotnicky |
aa77bd |
- Replace maven BuildRequires with maven-local
|
|
Stanislav Ochotnicky |
aa77bd |
|
|
Dennis Gilmore |
34005b |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-14
|
|
Dennis Gilmore |
34005b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
Dennis Gilmore |
34005b |
|
|
Jaromir Capik |
4b15a5 |
* Wed Feb 08 2012 Jaromir Capik <jcapik@redhat.com> 3.2.1-13
|
|
Jaromir Capik |
4b15a5 |
- saxon dependency removed - not needed
|
|
Jaromir Capik |
4b15a5 |
- minor spec file changes according to the latest guidelines
|
|
Jaromir Capik |
4b15a5 |
|
|
Dennis Gilmore |
21b5a9 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-12
|
|
Dennis Gilmore |
21b5a9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
Dennis Gilmore |
21b5a9 |
|
|
spike |
f1ed18 |
* Mon Jun 6 2011 Chris Spike <spike@fedoraproject.org> 3.2.1-11
|
|
spike |
f1ed18 |
- Added *-testframework depmap entries.
|
|
spike |
f1ed18 |
|
|
Alexander Kurtakov |
ca16e9 |
* Wed Mar 16 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-10
|
|
Alexander Kurtakov |
ca16e9 |
- Drop tomcat5 subpackage.
|
|
Alexander Kurtakov |
ca16e9 |
|
|
Dennis Gilmore |
40f541 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-9
|
|
Dennis Gilmore |
40f541 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
Dennis Gilmore |
40f541 |
|
|
Alexander Kurtakov |
4f408d |
* Mon Nov 8 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-8
|
|
Alexander Kurtakov |
4f408d |
- Add commons-collections:commons-collections depmap.
|
|
Alexander Kurtakov |
4f408d |
|
|
Alexander Kurtakov |
726736 |
* Mon Oct 4 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-7
|
|
Alexander Kurtakov |
726736 |
- Fix pom name.
|
|
Alexander Kurtakov |
726736 |
- Use newer maven plugins names.
|
|
Alexander Kurtakov |
726736 |
|
|
Mat Booth |
2a0077 |
* Tue Aug 31 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-6
|
|
Carl Green |
cc0b53 |
- Change package to own files in directories, not the directories
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
* Mon Aug 30 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-5
|
|
Carl Green |
cc0b53 |
- Remove source and patches no longer needed for Maven
|
|
Carl Green |
cc0b53 |
- Fix non-standard groups and remove empty sections
|
|
Carl Green |
cc0b53 |
- Fix file permissions
|
|
Carl Green |
cc0b53 |
|
|
Carl Green |
cc0b53 |
* Sat Aug 28 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-4
|
|
Carl Green |
cc0b53 |
- Renamed from jakarta-commons-collections
|
|
Carl Green |
cc0b53 |
- Updated to use maven2
|
|
Carl Green |
cc0b53 |
- Replaced saxon:group instruction with xsl:for-each-group in pom-maven2jpp-newdepmap.xsl
|