rpms/apache-commons-lang/devel apache-commons-lang.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Stanislav Ochotnicky
sochotni at fedoraproject.org
Thu May 13 11:38:31 UTC 2010
- Previous message: rpms/tigervnc/devel tigervnc11-ldnow.patch, NONE, 1.1 tigervnc11-libvnc.patch, NONE, 1.1 tigervnc11-rh586406.patch, NONE, 1.1 tigervnc.spec, 1.34, 1.35
- Next message: rpms/pidgin/F-11 pidgin-2.7.0-msn-slp-11532.patch, NONE, 1.1 .cvsignore, 1.33, 1.34 pidgin.spec, 1.83, 1.84 sources, 1.33, 1.34 pidgin-2.6.6-clientLogin-proxy-fix.patch, 1.1, NONE pidgin-2.6.6-clientLogin-use-https.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: sochotni
Update of /cvs/pkgs/rpms/apache-commons-lang/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv30435/devel
Modified Files:
.cvsignore sources
Added Files:
apache-commons-lang.spec import.log
Log Message:
Initial commit of apache-commons-lang
--- NEW FILE apache-commons-lang.spec ---
%global base_name lang
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 2.5
Release: 2%{?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
BuildArch: noarch
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils >= 0:1.7.2
BuildRequires: maven-plugin-bundle
BuildRequires: maven-surefire-maven-plugin
BuildRequires: maven-surefire-provider-junit
BuildRequires: maven2-plugin-antrun
BuildRequires: maven2-plugin-assembly
BuildRequires: maven2-plugin-compiler
BuildRequires: maven2-plugin-idea
BuildRequires: maven2-plugin-install
BuildRequires: maven2-plugin-jar
BuildRequires: maven2-plugin-javadoc
BuildRequires: maven2-plugin-resources
BuildRequires: maven2-plugin-site
Requires: java >= 1:1.6.0
Requires: jpackage-utils >= 0:1.6
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# 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
sed -i 's/\r//' *.txt
%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL
mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
install javadoc:javadoc
%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -p -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
pushd $RPM_BUILD_ROOT%{_javadir}
for jar in *-%{version}*; do
ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
ln -sf ${jar} `echo $jar| sed "s|apache-\(.*\)-%{version}|\1|g"`
done
popd # come back from javadir
# pom
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{short_name}.pom
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{name}
# following line is only for backwards compatibility. New packages
# should use proper groupid org.apache.commons and also artifactid
%add_to_maven_depmap %{base_name} %{base_name} %{version} JPP %{name}
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%defattr(-,root,root,-)
%doc PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
%{_javadir}/*
%{_mavenpomdir}/JPP-%{short_name}.pom
%{_mavendepmapfragdir}/*
%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}
%changelog
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky at 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 at redhat.com> - 2.5-1
- Rename and rebase of jakarta-commons-lang
- Re-did whole spec file to use maven, dropped gcj support
--- NEW FILE import.log ---
apache-commons-lang-2_5-2_fc12:HEAD:apache-commons-lang-2.5-2.fc12.src.rpm:1273750673
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/apache-commons-lang/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 12 May 2010 17:29:14 -0000 1.1
+++ .cvsignore 13 May 2010 11:38:31 -0000 1.2
@@ -0,0 +1 @@
+commons-lang-2.5-src.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/apache-commons-lang/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 12 May 2010 17:29:14 -0000 1.1
+++ sources 13 May 2010 11:38:31 -0000 1.2
@@ -0,0 +1 @@
+e96700da2046aa31a2c39839cf7b6cc9 commons-lang-2.5-src.tar.gz
- Previous message: rpms/tigervnc/devel tigervnc11-ldnow.patch, NONE, 1.1 tigervnc11-libvnc.patch, NONE, 1.1 tigervnc11-rh586406.patch, NONE, 1.1 tigervnc.spec, 1.34, 1.35
- Next message: rpms/pidgin/F-11 pidgin-2.7.0-msn-slp-11532.patch, NONE, 1.1 .cvsignore, 1.33, 1.34 pidgin.spec, 1.83, 1.84 sources, 1.33, 1.34 pidgin-2.6.6-clientLogin-proxy-fix.patch, 1.1, NONE pidgin-2.6.6-clientLogin-use-https.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list