2011-08-04 08:56:36 +00:00
|
|
|
%global base_name compress
|
|
|
|
%global short_name commons-%{base_name}
|
2010-05-11 07:44:54 +00:00
|
|
|
|
2011-08-04 08:56:36 +00:00
|
|
|
Name: apache-%{short_name}
|
2012-04-27 10:23:57 +00:00
|
|
|
Version: 1.4
|
|
|
|
Release: 1%{?dist}
|
2010-05-11 07:44:54 +00:00
|
|
|
Summary: Java API for working with tar, zip and bzip2 files
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: ASL 2.0
|
2011-08-04 08:56:36 +00:00
|
|
|
URL: http://commons.apache.org/%{base_name}/
|
|
|
|
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
2010-05-11 07:44:54 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
|
|
BuildRequires: jpackage-utils
|
2011-08-04 08:56:36 +00:00
|
|
|
BuildRequires: apache-commons-parent
|
2011-11-01 12:54:01 +00:00
|
|
|
BuildRequires: junit4
|
|
|
|
BuildRequires: maven-surefire-provider-junit4
|
2010-05-11 07:44:54 +00:00
|
|
|
Requires: java >= 1:1.6.0
|
|
|
|
Requires: jpackage-utils
|
|
|
|
Requires(post): jpackage-utils
|
|
|
|
Requires(postun): jpackage-utils
|
|
|
|
|
|
|
|
# Upstream name change
|
2011-08-04 08:56:36 +00:00
|
|
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
|
|
|
Obsoletes: jakarta-%{short_name} < 1.0-2
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The code in this component came from Avalon's Excalibur, but originally
|
|
|
|
from Ant, as far as life in Apache goes. The tar package is originally
|
|
|
|
Tim Endres' public domain package. The bzip2 package is based on the
|
|
|
|
work done by Keiron Liddle. It has migrated via:
|
|
|
|
Ant -> Avalon-Excalibur -> Commons-IO -> Commons-Compress.
|
|
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadocs for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: jpackage-utils
|
|
|
|
|
2010-05-31 21:36:39 +00:00
|
|
|
# Upstream name change
|
2011-08-04 08:56:36 +00:00
|
|
|
Provides: jakarta-%{short_name}-javadoc = %{version}-%{release}
|
|
|
|
Obsoletes: jakarta-%{short_name}-javadoc < 1.0-2
|
2010-05-31 21:36:39 +00:00
|
|
|
|
2010-05-11 07:44:54 +00:00
|
|
|
%description javadoc
|
2011-08-04 08:56:36 +00:00
|
|
|
This package contains the API documentation for %{name}.
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
%prep
|
2011-08-04 08:56:36 +00:00
|
|
|
%setup -q -n %{short_name}-%{version}-src
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
%build
|
2011-08-04 08:56:36 +00:00
|
|
|
mvn-rpmbuild install javadoc:aggregate
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
%install
|
2011-08-04 08:56:36 +00:00
|
|
|
# jars
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
|
|
|
install -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
2010-05-11 07:44:54 +00:00
|
|
|
|
2011-08-04 08:56:36 +00:00
|
|
|
# poms
|
|
|
|
install -d -m 0755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
|
|
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
# javadoc
|
2011-08-04 08:56:36 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
|
2011-08-04 08:43:12 +00:00
|
|
|
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%update_maven_depmap
|
|
|
|
|
2011-08-04 08:43:12 +00:00
|
|
|
|
2010-05-11 07:44:54 +00:00
|
|
|
%postun
|
|
|
|
%update_maven_depmap
|
|
|
|
|
2011-08-04 08:43:12 +00:00
|
|
|
|
2010-05-11 07:44:54 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt NOTICE.txt
|
2011-08-04 08:56:36 +00:00
|
|
|
%{_javadir}/*
|
|
|
|
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
|
|
%{_mavendepmapfragdir}/*
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root,-)
|
2011-08-04 08:56:36 +00:00
|
|
|
%doc LICENSE.txt NOTICE.txt
|
|
|
|
%doc %{_javadocdir}/%{name}
|
2011-08-04 08:43:12 +00:00
|
|
|
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-04-27 10:23:57 +00:00
|
|
|
* Fri Apr 27 2012 Sandro Mathys <red at fedoraproject.org> - 1.4-1
|
|
|
|
- Updated to 1.4
|
|
|
|
|
2012-01-12 21:21:23 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-01 12:54:01 +00:00
|
|
|
* Tue Nov 01 2011 Sandro Mathys <red at fedoraproject.org> - 1.3-1
|
|
|
|
- Updated to 1.3
|
|
|
|
|
2011-08-04 08:56:36 +00:00
|
|
|
* Thu Aug 04 2011 Sandro Mathys <red at fedoraproject.org> - 1.2-2
|
|
|
|
- Fixing mistake where different versions of the spec file got mixed up
|
2011-04-16 07:54:39 +00:00
|
|
|
|
2011-08-04 08:56:36 +00:00
|
|
|
* Thu Aug 04 2011 Sandro Mathys <red at fedoraproject.org> - 1.2-1
|
|
|
|
- Updated to 1.2
|
|
|
|
|
|
|
|
* Sat Apr 16 2011 Chris Spike <spike@fedoraproject.org> 1.1-1
|
|
|
|
- Updated to 1.1
|
|
|
|
- Adapted to current java packaging guidelines
|
|
|
|
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
2011-02-08 01:25:30 +00:00
|
|
|
|
2010-07-11 00:30:01 +00:00
|
|
|
* Sun Jul 11 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-8
|
|
|
|
- Fixed the Maven depmap line by replacing org.apache.maven by org.apache.commons
|
|
|
|
|
2010-05-31 21:36:39 +00:00
|
|
|
* Mon May 31 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-7
|
|
|
|
- Fixed regression with missing Provides/Obsoletes for javadocs
|
|
|
|
- Fixed changelog format
|
|
|
|
|
2010-05-23 21:51:03 +00:00
|
|
|
* Sun May 23 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-6
|
2010-05-31 21:36:39 +00:00
|
|
|
- Fixed Maven depmap to use commons-compress
|
2010-05-13 22:06:36 +00:00
|
|
|
|
2010-05-23 21:51:03 +00:00
|
|
|
* Thu May 13 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-5
|
|
|
|
- Added missing Provides/Obsoletes for javadocs
|
|
|
|
|
2010-05-11 07:44:54 +00:00
|
|
|
* Mon May 10 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-4
|
2010-05-31 21:36:39 +00:00
|
|
|
- Cleared some problems after the review
|
2010-05-11 07:44:54 +00:00
|
|
|
|
|
|
|
* Thu May 06 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-3
|
|
|
|
- Now using maven2 (mvn-jpp) instead of directly calling javac & co
|
|
|
|
|
|
|
|
* Tue May 04 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-2
|
|
|
|
- Renamed from jakarta-commons-compress
|