8a6698f037
- Use new add_maven_depmap macro
120 lines
3.7 KiB
RPMSpec
120 lines
3.7 KiB
RPMSpec
%global base_name io
|
|
%global short_name commons-%{base_name}
|
|
|
|
Name: apache-%{short_name}
|
|
Version: 2.0.1
|
|
Release: 3%{?dist}
|
|
Epoch: 1
|
|
Summary: Utilities to assist with developing IO functionality
|
|
License: ASL 2.0
|
|
Group: Development/Libraries
|
|
URL: http://commons.apache.org/%{base_name}
|
|
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: jpackage-utils
|
|
BuildRequires: junit4
|
|
BuildRequires: maven
|
|
BuildRequires: maven-surefire-provider-junit4
|
|
BuildRequires: apache-commons-parent
|
|
|
|
Requires: java >= 1:1.6.0
|
|
Requires: jpackage-utils
|
|
|
|
# This should go away with F-17
|
|
Provides: jakarta-%{short_name} = %{epoch}:%{version}-%{release}
|
|
Obsoletes: jakarta-%{short_name} <= 0:1.4
|
|
|
|
%description
|
|
Commons-IO contains utility classes, stream implementations,
|
|
file filters, and endian classes. It is a library of utilities
|
|
to assist with developing IO functionality.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation
|
|
Requires: jpackage-utils
|
|
|
|
Obsoletes: jakarta-%{short_name}-javadoc <= 0:1.4
|
|
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{short_name}-%{version}-src
|
|
sed -i 's/\r//' *.txt
|
|
|
|
%build
|
|
mvn-rpmbuild install javadoc:javadoc
|
|
|
|
%install
|
|
|
|
# jars
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
install -p -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
|
|
|
# pom
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
|
|
%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar -a "org.apache.commons:commons-io"
|
|
|
|
# javadoc
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%pre javadoc
|
|
# workaround for rpm bug, can be removed in F-17
|
|
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
|
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
|
|
|
%files
|
|
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
|
|
%{_javadir}/*.jar
|
|
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
%files javadoc
|
|
%doc LICENSE.txt NOTICE.txt
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
%changelog
|
|
* Thu Jun 23 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:2.0.1-3
|
|
- Fix build with maven3
|
|
- Use new add_maven_depmap macro
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:2.0.1-1
|
|
- Update to 2.0.1
|
|
- Versionless jars & javadocs
|
|
- Use maven 3 to build
|
|
- Use apache-commons-parent for BR
|
|
|
|
* Fri Oct 22 2010 Chris Spike <chris.spike@arcor.de> 1:2.0-1
|
|
- Updated to 2.0
|
|
- Cleaned up BRs
|
|
|
|
* Thu Jul 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-6
|
|
- Add license to javadoc subpackage
|
|
|
|
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-5
|
|
- Correct depmap filename for backward compatibility
|
|
|
|
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-4
|
|
- Fix maven depmap JPP name to short_name
|
|
|
|
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-3
|
|
- Add obsoletes to javadoc sub-package
|
|
|
|
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-2
|
|
- Add symlink to short_name.jar
|
|
- Fix mavendepmapfragdir wildcard
|
|
|
|
* Tue May 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-1
|
|
- Rename and rebase of jakarta-commons-io
|
|
- Clean up whole spec
|