|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%global base_name lang
|
|
Stanislav Ochotnicky |
f91982 |
%global short_name commons-%{base_name}
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
Name: apache-%{short_name}
|
|
Stanislav Ochotnicky |
f91982 |
Version: 2.5
|
|
Stanislav Ochotnicky |
3b3354 |
Release: 6%{?dist}
|
|
Stanislav Ochotnicky |
f91982 |
Summary: Provides a host of helper utilities for the java.lang API
|
|
Stanislav Ochotnicky |
f91982 |
License: ASL 2.0
|
|
Stanislav Ochotnicky |
f91982 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
f91982 |
URL: http://commons.apache.org/%{base_name}
|
|
Stanislav Ochotnicky |
f91982 |
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
Stanislav Ochotnicky |
f91982 |
BuildArch: noarch
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: java-devel >= 1:1.6.0
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: jpackage-utils >= 0:1.7.2
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven-plugin-bundle
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven-surefire-maven-plugin
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven-surefire-provider-junit
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-antrun
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-assembly
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-compiler
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-idea
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-install
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-jar
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-javadoc
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-resources
|
|
Stanislav Ochotnicky |
f91982 |
BuildRequires: maven2-plugin-site
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
Requires: java >= 1:1.6.0
|
|
Stanislav Ochotnicky |
f91982 |
Requires: jpackage-utils >= 0:1.6
|
|
Stanislav Ochotnicky |
f91982 |
Requires(post): jpackage-utils
|
|
Stanislav Ochotnicky |
f91982 |
Requires(postun): jpackage-utils
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
# This should go away with F-17
|
|
Stanislav Ochotnicky |
f91982 |
Provides: jakarta-commons-lang = 0:%{version}-%{release}
|
|
Stanislav Ochotnicky |
f91982 |
Obsoletes: jakarta-commons-lang <= 0:2.4
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%description
|
|
Stanislav Ochotnicky |
f91982 |
The standard Java libraries fail to provide enough methods for
|
|
Stanislav Ochotnicky |
f91982 |
manipulation of its core classes. The Commons Lang Component provides
|
|
Stanislav Ochotnicky |
f91982 |
these extra methods.
|
|
Stanislav Ochotnicky |
f91982 |
The Commons Lang Component provides a host of helper utilities for the
|
|
Stanislav Ochotnicky |
f91982 |
java.lang API, notably String manipulation methods, basic numerical
|
|
Stanislav Ochotnicky |
f91982 |
methods, object reflection, creation and serialization, and System
|
|
Stanislav Ochotnicky |
f91982 |
properties. Additionally it contains an inheritable enum type, an
|
|
Stanislav Ochotnicky |
f91982 |
exception structure that supports multiple types of nested-Exceptions
|
|
Stanislav Ochotnicky |
f91982 |
and a series of utilities dedicated to help with building methods, such
|
|
Stanislav Ochotnicky |
f91982 |
as hashCode, toString and equals.
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%package javadoc
|
|
Stanislav Ochotnicky |
f91982 |
Summary: API documentation for %{name}
|
|
Stanislav Ochotnicky |
f91982 |
Group: Documentation
|
|
Stanislav Ochotnicky |
f91982 |
Requires: jpackage-utils
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
Obsoletes: jakarta-%{short_name}-javadoc <= 0:2.4
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%description javadoc
|
|
Stanislav Ochotnicky |
f91982 |
%{summary}.
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%prep
|
|
Stanislav Ochotnicky |
f91982 |
%setup -q -n %{short_name}-%{version}-src
|
|
Stanislav Ochotnicky |
f91982 |
sed -i 's/\r//' *.txt
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%build
|
|
Stanislav Ochotnicky |
f91982 |
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
Stanislav Ochotnicky |
f91982 |
mkdir -p $MAVEN_REPO_LOCAL
|
|
Stanislav Ochotnicky |
f91982 |
mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
Stanislav Ochotnicky |
f91982 |
install javadoc:javadoc
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%install
|
|
Stanislav Ochotnicky |
f91982 |
rm -rf $RPM_BUILD_ROOT
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
# jars
|
|
Stanislav Ochotnicky |
f91982 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
Stanislav Ochotnicky |
f91982 |
install -p -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
pushd $RPM_BUILD_ROOT%{_javadir}
|
|
Stanislav Ochotnicky |
f91982 |
for jar in *-%{version}*; do
|
|
Stanislav Ochotnicky |
f91982 |
ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
|
|
Stanislav Ochotnicky |
f91982 |
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
|
|
Stanislav Ochotnicky |
f91982 |
ln -sf ${jar} `echo $jar| sed "s|apache-\(.*\)-%{version}|\1|g"`
|
|
Stanislav Ochotnicky |
f91982 |
done
|
|
Stanislav Ochotnicky |
f91982 |
popd # come back from javadir
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
# pom
|
|
Stanislav Ochotnicky |
f91982 |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
Stanislav Ochotnicky |
f91982 |
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
Stanislav Ochotnicky |
9c2183 |
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
# following line is only for backwards compatibility. New packages
|
|
Stanislav Ochotnicky |
f91982 |
# should use proper groupid org.apache.commons and also artifactid
|
|
Stanislav Ochotnicky |
3dc96b |
%add_to_maven_depmap %{base_name} %{base_name} %{version} JPP %{short_name}
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
8eca0e |
# Old depmap was wrong and this surfaced as a problem when building
|
|
Stanislav Ochotnicky |
8eca0e |
# other packages
|
|
Stanislav Ochotnicky |
8eca0e |
%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name}
|
|
Stanislav Ochotnicky |
8eca0e |
|
|
Stanislav Ochotnicky |
f91982 |
# javadoc
|
|
Stanislav Ochotnicky |
f91982 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
f91982 |
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
f91982 |
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%clean
|
|
Stanislav Ochotnicky |
f91982 |
rm -rf $RPM_BUILD_ROOT
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%post
|
|
Stanislav Ochotnicky |
f91982 |
%update_maven_depmap
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%postun
|
|
Stanislav Ochotnicky |
f91982 |
%update_maven_depmap
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%files
|
|
Stanislav Ochotnicky |
f91982 |
%defattr(-,root,root,-)
|
|
Stanislav Ochotnicky |
f91982 |
%doc PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
|
|
Stanislav Ochotnicky |
f91982 |
%{_javadir}/*
|
|
Stanislav Ochotnicky |
f91982 |
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
Stanislav Ochotnicky |
f91982 |
%{_mavendepmapfragdir}/*
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%files javadoc
|
|
Stanislav Ochotnicky |
f91982 |
%defattr(-,root,root,-)
|
|
Stanislav Ochotnicky |
3b3354 |
%doc LICENSE.txt NOTICE.txt
|
|
Stanislav Ochotnicky |
f91982 |
%doc %{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
f91982 |
%doc %{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
%changelog
|
|
Stanislav Ochotnicky |
3b3354 |
* Thu Jul 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-6
|
|
Stanislav Ochotnicky |
3b3354 |
- Add license to javadoc subpackage
|
|
Stanislav Ochotnicky |
3b3354 |
|
|
Stanislav Ochotnicky |
8eca0e |
* Wed May 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-5
|
|
Stanislav Ochotnicky |
8eca0e |
- Add another old depmap to prevent groupId dependency problems
|
|
Stanislav Ochotnicky |
8eca0e |
|
|
Stanislav Ochotnicky |
3dc96b |
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-4
|
|
Stanislav Ochotnicky |
3dc96b |
- Correct depmap filename for backward compatibility
|
|
Stanislav Ochotnicky |
3dc96b |
|
|
Stanislav Ochotnicky |
9c2183 |
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-3
|
|
Stanislav Ochotnicky |
9c2183 |
- Fix maven depmap JPP name to short_name
|
|
Stanislav Ochotnicky |
9c2183 |
|
|
Stanislav Ochotnicky |
f91982 |
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-2
|
|
Stanislav Ochotnicky |
f91982 |
- Added export for MAVEN_LOCAL_REPO and mkdir
|
|
Stanislav Ochotnicky |
f91982 |
- Added more add_to_maven_depmap to assure backward compatibility
|
|
Stanislav Ochotnicky |
f91982 |
- Add symlink to short_name.jar
|
|
Stanislav Ochotnicky |
f91982 |
|
|
Stanislav Ochotnicky |
f91982 |
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-1
|
|
Stanislav Ochotnicky |
f91982 |
- Rename and rebase of jakarta-commons-lang
|
|
Stanislav Ochotnicky |
f91982 |
- Re-did whole spec file to use maven, dropped gcj support
|
|
Stanislav Ochotnicky |
f91982 |
|