diff --git a/README.md b/README.md index 807e351..85e5c5a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # jakarta-commons-lang +The standard Java libraries fail to provide enough methods for manipulation of its core classes. The Lang Component provides these extra methods. + +The 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, basic enhancements to java.util. +Date and a series of utilities dedicated to help with building methods, such as hashCode, toString and equals. + diff --git a/jakarta-commons-2.3-lang-addosgimanifest.patch b/jakarta-commons-2.3-lang-addosgimanifest.patch new file mode 100644 index 0000000..6e3b65e --- /dev/null +++ b/jakarta-commons-2.3-lang-addosgimanifest.patch @@ -0,0 +1,21 @@ +diff -up ./src/conf/MANIFEST.MF.osgi ./src/conf/MANIFEST.MF +--- ./src/conf/MANIFEST.MF.osgi 2008-07-24 16:38:38.000000000 -0400 ++++ ./src/conf/MANIFEST.MF 2008-07-24 16:39:13.000000000 -0400 +@@ -10,3 +10,17 @@ Implementation-Title: Commons Lang + Implementation-Vendor-Id: org.apache + X-Compile-Source-JDK: @compile.source@ + X-Compile-Target-JDK: @compile.target@ ++Bundle-RequiredExecutionEnvironment: JRE-1.1 ++Bundle-SymbolicName: org.apache.commons.lang ++Bundle-ManifestVersion: 2 ++Bundle-Name: %pluginName ++Bundle-Localization: plugin ++Bundle-Version: 2.3.0.v200803061910 ++Bundle-Vendor: %providerName ++Export-Package: org.apache.commons.lang;version="2.3.0",org.apache.com ++ mons.lang.builder;version="2.3.0",org.apache.commons.lang.enum;versio ++ n="2.3.0",org.apache.commons.lang.enums;version="2.3.0",org.apache.co ++ mmons.lang.exception;version="2.3.0",org.apache.commons.lang.math;ver ++ sion="2.3.0",org.apache.commons.lang.mutable;version="2.3.0",org.apac ++ he.commons.lang.text;version="2.3.0",org.apache.commons.lang.time;ver ++ sion="2.3.0" diff --git a/jakarta-commons-2.3-lang-notarget.patch b/jakarta-commons-2.3-lang-notarget.patch new file mode 100644 index 0000000..644f7ff --- /dev/null +++ b/jakarta-commons-2.3-lang-notarget.patch @@ -0,0 +1,20 @@ +--- build.xml.orig 2008-01-22 22:02:04.000000000 -0500 ++++ build.xml 2008-01-22 22:02:26.000000000 -0500 +@@ -62,7 +62,7 @@ + + + +- ++ + + + +@@ -70,7 +70,7 @@ + + + +- ++ + + + diff --git a/jakarta-commons-lang-2.3.pom b/jakarta-commons-lang-2.3.pom new file mode 100644 index 0000000..9907ab4 --- /dev/null +++ b/jakarta-commons-lang-2.3.pom @@ -0,0 +1,397 @@ + + + + + org.apache.commons + commons-parent + 1 + + 4.0.0 + commons-lang + commons-lang + 2.3 + Lang + + 2001 + + Commons.Lang, a package of Java utility classes for the + classes that are in java.lang's hierarchy, or are considered to be so + standard as to justify existence in java.lang. + + + http://jakarta.apache.org/commons/lang/ + + + jira + http://issues.apache.org/jira/browse/LANG + + + + scm:svn:https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk + scm:svn:https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk + http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk + + + + + Daniel Rall + dlr + dlr@finemaltcoding.com + CollabNet, Inc. + + Java Developer + + + + Stephen Colebourne + scolebourne + scolebourne@joda.org + SITA ATS Ltd + 0 + + Java Developer + + + + Henri Yandell + bayard + bayard@generationjava.com + + + Java Developer + + + + Steven Caswell + scaswell + stevencaswell@apache.org + + + Java Developer + + -5 + + + Robert Burrell Donkin + rdonkin + rdonkin@apache.org + + + Java Developer + + + + Gary D. Gregory + ggregory + ggregory@seagullsw.com + Seagull Software + -8 + + Java Developer + + + + Phil Steitz + psteitz + phil@steitz.com + + + Java Developer + + + + Fredrik Westermarck + fredrik + + + + Java Developer + + + + James Carman + jcarman + jcarman@apache.org + Carman Consulting, Inc. + + Java Developer + + + + + + C. Scott Ananian + + + Chris Audley + + + Stephane Bailliez + + + Michael Becke + + + Ola Berg + + + Nathan Beyer + + + Stefan Bodewig + + + Janek Bogucki + + + Mike Bowler + + + Sean Brown + + + Alexander Day Chaffee + + + Al Chou + + + Greg Coladonato + + + Maarten Coene + + + Justin Couch + + + Michael Davey + + + Norm Deane + + + Ringo De Smet + + + Russel Dittmar + + + Steve Downey + + + Matthias Eichel + + + Christopher Elkins + + + Chris Feldhacker + + + Pete Gieser + + + Jason Gritman + + + Matthew Hawthorne + + + Michael Heuer + + + Oliver Heger + + + Chris Hyzer + + + Marc Johnson + + + Shaun Kalley + + + Tetsuya Kaneuchi + + + Nissim Karpenstein + + + Ed Korthof + + + Holger Krauth + + + Rafal Krupinski + + + Rafal Krzewski + + + Craig R. McClanahan + + + Rand McNeely + + + Nikolay Metchev + + + Kasper Nielsen + + + Tim O'Brien + + + Brian S O'Neill + + + Andrew C. Oliver + + + Alban Peignier + + + Moritz Petersen + + + Dmitri Plotnikov + + + Neeme Praks + + + Eric Pugh + + + Stephen Putman + + + Travis Reeder + + + Antony Riley + + + Scott Sanders + + + Ralph Schaer + + + Henning P. Schmiedehausen + + + Sean Schofield + + + Reuben Sivan + + + Ville Skytta + + + Jan Sorensen + + + Glen Stampoultzis + + + Scott Stanchfield + + + Jon S. Stevens + + + Sean C. Sullivan + + + Ashwin Suresh + + + Helge Tesgaard + + + Arun Mammen Thomas + + + Masato Tezuka + + + Jeff Varszegi + + + Chris Webb + + + Mario Winterer + + + Stepan Koltsov + + + Holger Hoffstatte + + + + + + + junit + junit + 3.8.1 + test + + + + + src/java + src/test + + + . + META-INF + + NOTICE.txt + LICENSE.txt + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + **/*TestSuite.java + + + **/AllLangTestSuite.java + + + + + + + diff --git a/jakarta-commons-lang.spec b/jakarta-commons-lang.spec new file mode 100644 index 0000000..358bc09 --- /dev/null +++ b/jakarta-commons-lang.spec @@ -0,0 +1,127 @@ +%define javahome %{_jvmdir}/jdk +Name: jakarta-commons-lang +Version: 2.3 +Release: 4mamba +Summary: Jakarta Commons Lang Package +Group: Development/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://commons.apache.org/lang/ +Source0: http://archive.apache.org/dist/commons/lang/source/commons-lang-%{version}-src.tar.gz +Source1: jakarta-commons-lang-2.3.pom +Patch0: jakarta-commons-2.3-lang-notarget.patch +Patch1: jakarta-commons-2.3-lang-addosgimanifest.patch +License: Apache License Version 2.0 +BuildRequires: apache-ant +BuildRequires: apache-ant-junit +BuildRequires: java-junit3 +BuildRequires: jpackage-utils +Requires: jpackage-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The standard Java libraries fail to provide enough methods for manipulation of its core classes. The Lang Component provides these extra methods. + +The 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, basic enhancements to java.util. +Date and a series of utilities dedicated to help with building methods, such as hashCode, toString and equals. + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} + +%description javadoc +The standard Java libraries fail to provide enough methods for manipulation of its core classes. The Lang Component provides these extra methods. + +The 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, basic enhancements to java.util. +Date and a series of utilities dedicated to help with building methods, such as hashCode, toString and equals. + +This package contains javadoc for %{name}. + +%prep +%setup -q -n commons-lang-%{version}-src +perl -pi -e 's/\r//g' *.txt +sed -i 's/\r//' STATUS.html +%patch0 +%patch1 + +%build +export JAVA_HOME=%javahome +export CLASSPATH=$(build-classpath junit-3.8.2 ant/ant-junit):target/classes:target/tests +ant \ + -Djunit.jar=$(find-jar junit-3.8.2) \ + -Djdk.javadoc=%{_javadocdir}/java \ + -Dfinal.name=commons-lang \ + -Dtest.failonerror=false \ + jar javadoc \ +%if "%{stage1}" != "1" + test +%endif + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_javadir} +mkdir -p %{buildroot}%{_datadir}/maven2/poms + +install -p -m 644 dist/commons-lang.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar + +install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-jakarta-commons-lang.pom +%add_to_maven_depmap commons-lang commons-lang %{version} JPP commons-lang + +( + cd %{buildroot}%{_javadir} + for jar in *-%{version}*; do + ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"` + done +) +( + cd %{buildroot}%{_javadir} + for jar in *-%{version}*; do + ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` + done +) + +mkdir -p %{buildroot}%{_javadocdir}/jakarta-commons-lang-%{version} +cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/jakarta-commons-lang-%{version} +ln -s jakarta-commons-lang-%{version} %{buildroot}%{_javadocdir}/jakarta-commons-lang + +##%{_bindir}/aot-compile-rpm + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%update_maven_depmap + +%postun +%update_maven_depmap + +%files +%defattr(-,root,root) +%{_javadir}/jakarta-commons-lang-%{version}.jar +%{_javadir}/jakarta-commons-lang.jar +%{_javadir}/commons-lang-%{version}.jar +%{_javadir}/commons-lang.jar +%{_datadir}/maven2/poms +%{_mavendepmapfragdir} +%doc STATUS.html LICENSE.txt NOTICE.txt RELEASE-NOTES.txt + +%files javadoc +%defattr(-,root,root) +%{_javadocdir}/jakarta-commons-lang-%{version} +%{_javadocdir}/jakarta-commons-lang + +%changelog +* Thu Mar 24 2011 gil 2.3-4mamba +- rebuilt with java-openjdk support + +* Sat Oct 30 2010 gil 2.3-3mamba +- rebuilt in devel + +* Fri Jan 08 2010 gil 2.3-2mamba +- add maven pom +- add OSGi support + +* Fri Mar 06 2009 gil 2.3-1mamba +- package created by autospec