[apache-commons-lang3] Initial version of the package

Stanislav Ochotnicky sochotni at fedoraproject.org
Mon Nov 7 16:51:34 UTC 2011


commit 64fedaa3b0e6993f5414c94b2533338bd3ab830a
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Mon Nov 7 17:46:26 2011 +0100

    Initial version of the package

 .gitignore                |    1 +
 apache-commons-lang3.spec |   90 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..53101a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/commons-lang3-3.0.1-src.tar.gz
diff --git a/apache-commons-lang3.spec b/apache-commons-lang3.spec
new file mode 100644
index 0000000..919ed97
--- /dev/null
+++ b/apache-commons-lang3.spec
@@ -0,0 +1,90 @@
+
+%global base_name       lang
+%global short_name      commons-%{base_name}3
+
+Name:           apache-%{short_name}
+Version:        3.0.1
+Release:        1%{?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-site-plugin
+BuildRequires:  maven
+BuildRequires:  apache-commons-parent
+BuildRequires:  apache-commons-io
+BuildRequires:  junit4
+BuildRequires:  easymock2
+BuildRequires:  maven-surefire-provider-junit4
+
+Requires:       java >= 1:1.6.0
+Requires:       jpackage-utils >= 0:1.6
+
+
+%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.
+
+With version of commons-lang 3.x, developers decided to change API and
+therefore created differently named artifact and jar files. This is
+the new version, while apache-commons-lang is the compatibility
+package.
+
+%package        javadoc
+Summary:        API documentation for %{name}
+Group:          Documentation
+Requires:       jpackage-utils
+
+%description    javadoc
+%{summary}.
+
+%prep
+%setup -q -n %{short_name}-%{version}-src
+
+%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-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+# javadoc
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%doc LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
+%{_javadir}/%{name}.jar
+%{_javadir}/%{short_name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE.txt NOTICE.txt
+%doc %{_javadocdir}/%{name}
+
+%changelog
+* Thu Nov  3 2011 Stanislav Ochotnicky <sochotnicky at redhat.com> - 3.0.1-1
+- Initial version of the package
+
diff --git a/sources b/sources
index e69de29..9d08ef9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6d39fa5eceaabc46f0a088cdc305c4d6  commons-lang3-3.0.1-src.tar.gz


More information about the scm-commits mailing list