132 lines
4.4 KiB
RPMSpec
132 lines
4.4 KiB
RPMSpec
|
|
%global base_name lang
|
|
%global short_name commons-%{base_name}
|
|
|
|
Name: apache-%{short_name}
|
|
Version: 2.6
|
|
Release: 4%{?dist}
|
|
Summary: Provides a host of helper utilities for the java.lang API
|
|
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
|
|
Patch0: 0001-Make-source-version-1.3.patch
|
|
BuildArch: noarch
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: jpackage-utils >= 0:1.7.2
|
|
BuildRequires: maven-site-plugin
|
|
BuildRequires: maven
|
|
BuildRequires: apache-commons-parent
|
|
BuildRequires: maven-surefire-provider-junit
|
|
|
|
Requires: java >= 1:1.6.0
|
|
Requires: jpackage-utils >= 0:1.6
|
|
Requires(post): jpackage-utils
|
|
Requires(postun): jpackage-utils
|
|
|
|
|
|
# This should go away with F-17
|
|
Provides: jakarta-commons-lang = 0:%{version}-%{release}
|
|
Obsoletes: jakarta-commons-lang <= 0:2.4
|
|
|
|
%description
|
|
The standard Java libraries fail to provide enough methods for
|
|
manipulation of its core classes. The Commons Lang Component provides
|
|
these extra methods.
|
|
The Commons Lang Component provides a host of helper utilities for the
|
|
java.lang API, notably String manipulation methods, basic numerical
|
|
methods, object reflection, creation and serialization, and System
|
|
properties. Additionally it contains an inheritable enum type, an
|
|
exception structure that supports multiple types of nested-Exceptions
|
|
and a series of utilities dedicated to help with building methods, such
|
|
as hashCode, toString and equals.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation
|
|
Requires: jpackage-utils
|
|
|
|
Obsoletes: jakarta-%{short_name}-javadoc <= 0:2.4
|
|
|
|
%description javadoc
|
|
%{summary}.
|
|
|
|
%prep
|
|
%setup -q -n %{short_name}-%{version}-src
|
|
%patch0 -p1
|
|
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:%{short_name},%{base_name}:%{base_name}"
|
|
|
|
# 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 PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
|
|
%{_javadir}/*
|
|
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
%files javadoc
|
|
%doc LICENSE.txt NOTICE.txt
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
%changelog
|
|
* Mon Jun 27 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-4
|
|
- Use new add_maven_depmap macro
|
|
- Fix maven3 build
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-2
|
|
- Fix commons-lang symlink
|
|
|
|
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-1
|
|
- Update to 2.6
|
|
- Versionless jars & javadocs
|
|
- Use maven 3 to build
|
|
|
|
* Wed Nov 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-7
|
|
- Use apache-commons-parent instead of maven-*
|
|
|
|
* Thu Jul 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-6
|
|
- Add license to javadoc subpackage
|
|
|
|
* Wed May 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-5
|
|
- Add another old depmap to prevent groupId dependency problems
|
|
|
|
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-4
|
|
- Correct depmap filename for backward compatibility
|
|
|
|
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-3
|
|
- Fix maven depmap JPP name to short_name
|
|
|
|
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-2
|
|
- Added export for MAVEN_LOCAL_REPO and mkdir
|
|
- Added more add_to_maven_depmap to assure backward compatibility
|
|
- Add symlink to short_name.jar
|
|
|
|
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-1
|
|
- Rename and rebase of jakarta-commons-lang
|
|
- Re-did whole spec file to use maven, dropped gcj support
|
|
|