Blame SPECS/apache-commons-collections.spec

bfce99
%global base_name       collections
bfce99
%global short_name      commons-%{base_name}
bfce99
bfce99
Name:           apache-%{short_name}
bfce99
Version:        3.2.1
bfce99
Release:        22%{?dist}
bfce99
Summary:        Provides new interfaces, implementations and utilities for Java Collections
bfce99
License:        ASL 2.0
bfce99
Group:          Development/Libraries
bfce99
URL:            http://commons.apache.org/%{base_name}/
bfce99
Source0:        http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
bfce99
bfce99
Patch0:         jakarta-%{short_name}-javadoc-nonet.patch
bfce99
Patch4:         commons-collections-3.2-build_xml.patch
bfce99
Patch5:         CVE-2015-7501.patch
bfce99
bfce99
BuildArch:      noarch
bfce99
bfce99
BuildRequires: java-devel
bfce99
BuildRequires: jpackage-utils
bfce99
BuildRequires: maven-local
bfce99
BuildRequires: maven-antrun-plugin
bfce99
BuildRequires: maven-assembly-plugin
bfce99
BuildRequires: maven-compiler-plugin
bfce99
BuildRequires: maven-jar-plugin
bfce99
BuildRequires: maven-javadoc-plugin
bfce99
BuildRequires: maven-install-plugin
bfce99
BuildRequires: maven-resources-plugin
bfce99
BuildRequires: maven-doxia-sitetools
bfce99
BuildRequires: maven-plugin-bundle
bfce99
BuildRequires: maven-surefire-plugin
bfce99
BuildRequires: maven-surefire-provider-junit
bfce99
BuildRequires: ant
bfce99
BuildRequires: apache-commons-parent >= 26-7
bfce99
bfce99
Provides:       jakarta-%{short_name} = %{version}-%{release}
bfce99
Obsoletes:      jakarta-%{short_name} < %{version}-%{release}
bfce99
Obsoletes:      %{name}-tomcat5 < %{version}-%{release}
bfce99
bfce99
%description
bfce99
The introduction of the Collections API by Sun in JDK 1.2 has been a
bfce99
boon to quick and effective Java programming. Ready access to powerful
bfce99
data structures has accelerated development by reducing the need for
bfce99
custom container classes around each core object. Most Java2 APIs are
bfce99
significantly easier to use because of the Collections API.
bfce99
However, there are certain holes left unfilled by Sun's
bfce99
implementations, and the Jakarta-Commons Collections Component strives
bfce99
to fulfill them. Among the features of this package are:
bfce99
- special-purpose implementations of Lists and Maps for fast access
bfce99
- adapter classes from Java1-style containers (arrays, enumerations) to
bfce99
Java2-style collections.
bfce99
- methods to test or create typical set-theory properties of collections
bfce99
such as union, intersection, and closure.
bfce99
bfce99
%package testframework
bfce99
Summary:        Testframework for %{name}
bfce99
Group:          Development/Tools
bfce99
Requires:       %{name} = %{version}-%{release}
bfce99
Provides:       jakarta-%{short_name}-testframework = %{version}-%{release}
bfce99
Obsoletes:      jakarta-%{short_name}-testframework < %{version}-%{release}
bfce99
bfce99
%description testframework
bfce99
%{summary}.
bfce99
bfce99
%package javadoc
bfce99
Summary:        Javadoc for %{name}
bfce99
Group:          Documentation
bfce99
Provides:       jakarta-%{short_name}-javadoc = %{version}-%{release}
bfce99
Obsoletes:      jakarta-%{short_name}-javadoc < %{version}-%{release}
bfce99
bfce99
%description javadoc
bfce99
%{summary}.
bfce99
bfce99
%package testframework-javadoc
bfce99
Summary:        Javadoc for %{name}-testframework
bfce99
Group:          Documentation
bfce99
Provides:       jakarta-%{short_name}-testframework-javadoc = %{version}-%{release}
bfce99
Obsoletes:      jakarta-%{short_name}-testframework-javadoc < %{version}-%{release}
bfce99
bfce99
%description testframework-javadoc
bfce99
%{summary}.
bfce99
bfce99
%prep
bfce99
bfce99
%setup -q -n %{short_name}-%{version}-src
bfce99
# remove all binary libs
bfce99
find . -name "*.jar" -exec rm -f {} \;
bfce99
bfce99
%patch0 -p1
bfce99
%patch4 -b .sav
bfce99
%patch5 -p1
bfce99
bfce99
# Fix file eof
bfce99
%{__sed} -i 's/\r//' LICENSE.txt
bfce99
%{__sed} -i 's/\r//' PROPOSAL.html
bfce99
%{__sed} -i 's/\r//' RELEASE-NOTES.html
bfce99
%{__sed} -i 's/\r//' README.txt
bfce99
%{__sed} -i 's/\r//' NOTICE.txt
bfce99
bfce99
%mvn_file : %{name} %{short_name}
bfce99
%mvn_alias : "org.apache.commons:%{short_name}"
bfce99
bfce99
%build
bfce99
%mvn_build
bfce99
bfce99
ant tf.javadoc
bfce99
bfce99
%install
bfce99
%mvn_install
bfce99
bfce99
# this JAR doesn't have POM file
bfce99
install -Dm 644 target/%{short_name}-testframework-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-testframework.jar
bfce99
ln -sr $RPM_BUILD_ROOT%{_javadir}/%{name}-testframework.jar $RPM_BUILD_ROOT%{_javadir}/%{short_name}-testframework.jar
bfce99
bfce99
# testframework-javadoc
bfce99
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework
bfce99
cp -pr build/docs/testframework/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework
bfce99
bfce99
%files -f .mfiles
bfce99
%doc PROPOSAL.html README.txt LICENSE.txt RELEASE-NOTES.html NOTICE.txt
bfce99
bfce99
%files testframework
bfce99
%{_javadir}/%{name}-testframework.jar
bfce99
%{_javadir}/%{short_name}-testframework.jar
bfce99
bfce99
%files javadoc -f .mfiles-javadoc
bfce99
%doc LICENSE.txt NOTICE.txt
bfce99
bfce99
%files testframework-javadoc
bfce99
%{_javadocdir}/%{name}-testframework
bfce99
%doc LICENSE.txt NOTICE.txt
bfce99
bfce99
bfce99
%changelog
bfce99
* Fri Nov 20 2015 Michal Srb <msrb@redhat.com> - 3.2.1-22
bfce99
- Fix Java object de-serialization vulnerability
bfce99
- Resolves: CVE-2015-7501
bfce99
bfce99
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.2.1-21
bfce99
- Mass rebuild 2013-12-27
bfce99
bfce99
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-20
bfce99
- Add BuildRequires on apache-commons-parent >= 26-7
bfce99
bfce99
* Mon Aug 26 2013 Michal Srb <msrb@redhat.com> - 3.2.1-19
bfce99
- Migrate away from mvn-rpmbuild (Resolves: #997509)
bfce99
bfce99
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-18
bfce99
- Rebuild to regenerate API documentation
bfce99
- Resolves: CVE-2013-1571
bfce99
bfce99
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-17
bfce99
- Remove unneeded BR: maven-idea-plugin
bfce99
bfce99
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-16
bfce99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bfce99
bfce99
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.2.1-15
bfce99
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
bfce99
- Replace maven BuildRequires with maven-local
bfce99
bfce99
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-14
bfce99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bfce99
bfce99
* Wed Feb 08 2012 Jaromir Capik <jcapik@redhat.com> 3.2.1-13
bfce99
- saxon dependency removed - not needed
bfce99
- minor spec file changes according to the latest guidelines
bfce99
bfce99
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-12
bfce99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bfce99
bfce99
* Mon Jun 6 2011 Chris Spike <spike@fedoraproject.org> 3.2.1-11
bfce99
- Added *-testframework depmap entries.
bfce99
bfce99
* Wed Mar 16 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-10
bfce99
- Drop tomcat5 subpackage.
bfce99
bfce99
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-9
bfce99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bfce99
bfce99
* Mon Nov 8 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-8
bfce99
- Add commons-collections:commons-collections depmap.
bfce99
bfce99
* Mon Oct 4 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-7
bfce99
- Fix pom name.
bfce99
- Use newer maven plugins names.
bfce99
bfce99
* Tue Aug 30 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-6
bfce99
- Change package to own files in directories, not the directories
bfce99
bfce99
* Mon Aug 30 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-5
bfce99
- Remove source and patches no longer needed for Maven
bfce99
- Fix non-standard groups and remove empty sections
bfce99
- Fix file permissions
bfce99
bfce99
* Sat Aug 28 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-4
bfce99
- Renamed from jakarta-commons-collections
bfce99
- Updated to use maven2
bfce99
- Replaced saxon:group instruction with xsl:for-each-group in pom-maven2jpp-newdepmap.xsl