|
|
f919827 |
|
|
|
f919827 |
%global base_name lang
|
|
|
f919827 |
%global short_name commons-%{base_name}
|
|
|
f919827 |
|
|
|
f919827 |
Name: apache-%{short_name}
|
|
Stanislav Ochotnicky |
5522c13 |
Version: 2.6
|
|
Stanislav Ochotnicky |
a822ae0 |
Release: 2%{?dist}
|
|
|
f919827 |
Summary: Provides a host of helper utilities for the java.lang API
|
|
|
f919827 |
License: ASL 2.0
|
|
|
f919827 |
Group: Development/Libraries
|
|
|
f919827 |
URL: http://commons.apache.org/%{base_name}
|
|
|
f919827 |
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
Stanislav Ochotnicky |
5522c13 |
Patch0: 0001-Make-source-version-1.3.patch
|
|
|
f919827 |
BuildArch: noarch
|
|
|
f919827 |
BuildRequires: java-devel >= 1:1.6.0
|
|
|
f919827 |
BuildRequires: jpackage-utils >= 0:1.7.2
|
|
Stanislav Ochotnicky |
24c68ae |
BuildRequires: maven-site-plugin
|
|
Stanislav Ochotnicky |
5522c13 |
BuildRequires: maven
|
|
Stanislav Ochotnicky |
24c68ae |
BuildRequires: apache-commons-parent
|
|
|
f919827 |
|
|
|
f919827 |
Requires: java >= 1:1.6.0
|
|
|
f919827 |
Requires: jpackage-utils >= 0:1.6
|
|
|
f919827 |
Requires(post): jpackage-utils
|
|
|
f919827 |
Requires(postun): jpackage-utils
|
|
|
f919827 |
|
|
|
f919827 |
|
|
|
f919827 |
# This should go away with F-17
|
|
|
f919827 |
Provides: jakarta-commons-lang = 0:%{version}-%{release}
|
|
|
f919827 |
Obsoletes: jakarta-commons-lang <= 0:2.4
|
|
|
f919827 |
|
|
|
f919827 |
%description
|
|
|
f919827 |
The standard Java libraries fail to provide enough methods for
|
|
|
f919827 |
manipulation of its core classes. The Commons Lang Component provides
|
|
|
f919827 |
these extra methods.
|
|
|
f919827 |
The Commons Lang Component provides a host of helper utilities for the
|
|
|
f919827 |
java.lang API, notably String manipulation methods, basic numerical
|
|
|
f919827 |
methods, object reflection, creation and serialization, and System
|
|
|
f919827 |
properties. Additionally it contains an inheritable enum type, an
|
|
|
f919827 |
exception structure that supports multiple types of nested-Exceptions
|
|
|
f919827 |
and a series of utilities dedicated to help with building methods, such
|
|
|
f919827 |
as hashCode, toString and equals.
|
|
|
f919827 |
|
|
|
f919827 |
%package javadoc
|
|
|
f919827 |
Summary: API documentation for %{name}
|
|
|
f919827 |
Group: Documentation
|
|
|
f919827 |
Requires: jpackage-utils
|
|
|
f919827 |
|
|
|
f919827 |
Obsoletes: jakarta-%{short_name}-javadoc <= 0:2.4
|
|
|
f919827 |
|
|
|
f919827 |
%description javadoc
|
|
|
f919827 |
%{summary}.
|
|
|
f919827 |
|
|
|
f919827 |
%prep
|
|
|
f919827 |
%setup -q -n %{short_name}-%{version}-src
|
|
Stanislav Ochotnicky |
5522c13 |
%patch0 -p1
|
|
|
f919827 |
sed -i 's/\r//' *.txt
|
|
|
f919827 |
|
|
|
f919827 |
%build
|
|
Stanislav Ochotnicky |
5522c13 |
mvn-local install javadoc:javadoc
|
|
|
f919827 |
|
|
|
f919827 |
%install
|
|
|
f919827 |
|
|
|
f919827 |
# jars
|
|
|
f919827 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
Stanislav Ochotnicky |
5522c13 |
install -p -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
Stanislav Ochotnicky |
a822ae0 |
ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
|
|
f919827 |
|
|
|
f919827 |
# pom
|
|
|
f919827 |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
|
f919827 |
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
|
9c21831 |
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}
|
|
|
f919827 |
|
|
|
f919827 |
# following line is only for backwards compatibility. New packages
|
|
|
f919827 |
# should use proper groupid org.apache.commons and also artifactid
|
|
|
3dc96be |
%add_to_maven_depmap %{base_name} %{base_name} %{version} JPP %{short_name}
|
|
|
f919827 |
|
|
|
8eca0e4 |
# Old depmap was wrong and this surfaced as a problem when building
|
|
|
8eca0e4 |
# other packages
|
|
|
8eca0e4 |
%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name}
|
|
|
8eca0e4 |
|
|
|
f919827 |
# javadoc
|
|
Stanislav Ochotnicky |
5522c13 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
5522c13 |
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
f919827 |
|
|
Stanislav Ochotnicky |
5522c13 |
%pre javadoc
|
|
Stanislav Ochotnicky |
5522c13 |
# workaround for rpm bug, can be removed in F-17
|
|
Stanislav Ochotnicky |
5522c13 |
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
|
Stanislav Ochotnicky |
5522c13 |
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
|
|
f919827 |
|
|
|
f919827 |
%post
|
|
|
f919827 |
%update_maven_depmap
|
|
|
f919827 |
|
|
|
f919827 |
%postun
|
|
|
f919827 |
%update_maven_depmap
|
|
|
f919827 |
|
|
|
f919827 |
%files
|
|
|
f919827 |
%defattr(-,root,root,-)
|
|
|
f919827 |
%doc PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
|
|
|
f919827 |
%{_javadir}/*
|
|
|
f919827 |
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
|
f919827 |
%{_mavendepmapfragdir}/*
|
|
|
f919827 |
|
|
|
f919827 |
%files javadoc
|
|
|
f919827 |
%defattr(-,root,root,-)
|
|
|
3b3354b |
%doc LICENSE.txt NOTICE.txt
|
|
|
f919827 |
%doc %{_javadocdir}/%{name}
|
|
|
f919827 |
|
|
|
f919827 |
%changelog
|
|
Stanislav Ochotnicky |
a822ae0 |
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-2
|
|
Stanislav Ochotnicky |
a822ae0 |
- Fix commons-lang symlink
|
|
Stanislav Ochotnicky |
a822ae0 |
|
|
Stanislav Ochotnicky |
5522c13 |
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-1
|
|
Stanislav Ochotnicky |
5522c13 |
- Update to 2.6
|
|
Stanislav Ochotnicky |
5522c13 |
- Versionless jars & javadocs
|
|
Stanislav Ochotnicky |
5522c13 |
- Use maven 3 to build
|
|
Stanislav Ochotnicky |
5522c13 |
|
|
Stanislav Ochotnicky |
24c68ae |
* Wed Nov 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-7
|
|
Stanislav Ochotnicky |
24c68ae |
- Use apache-commons-parent instead of maven-*
|
|
Stanislav Ochotnicky |
24c68ae |
|
|
|
3b3354b |
* Thu Jul 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-6
|
|
|
3b3354b |
- Add license to javadoc subpackage
|
|
|
3b3354b |
|
|
|
8eca0e4 |
* Wed May 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-5
|
|
|
8eca0e4 |
- Add another old depmap to prevent groupId dependency problems
|
|
|
8eca0e4 |
|
|
|
3dc96be |
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-4
|
|
|
3dc96be |
- Correct depmap filename for backward compatibility
|
|
|
3dc96be |
|
|
|
9c21831 |
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-3
|
|
|
9c21831 |
- Fix maven depmap JPP name to short_name
|
|
|
9c21831 |
|
|
|
f919827 |
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-2
|
|
|
f919827 |
- Added export for MAVEN_LOCAL_REPO and mkdir
|
|
|
f919827 |
- Added more add_to_maven_depmap to assure backward compatibility
|
|
|
f919827 |
- Add symlink to short_name.jar
|
|
|
f919827 |
|
|
|
f919827 |
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-1
|
|
|
f919827 |
- Rename and rebase of jakarta-commons-lang
|
|
|
f919827 |
- Re-did whole spec file to use maven, dropped gcj support
|
|
|
f919827 |
|