update to 3.12.0 [release 3.12.0-1mamba;Wed Aug 10 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 00:01:49 +01:00
parent c59668f84e
commit c22db6c667

View File

@ -1,24 +1,28 @@
%define javahome %{_jvmdir}/jdk %define javahome %{_jvmdir}/jdk
Name: jakarta-commons-lang Name: jakarta-commons-lang
Version: 2.3 Version: 3.12.0
Release: 4mamba Release: 1mamba
Summary: Jakarta Commons Lang Package Summary: Jakarta Commons Lang Package
Group: Development/Libraries/Java Group: Development/Libraries/Java
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://commons.apache.org/lang/ URL: https://commons.apache.org/proper/commons-lang/
Source0: http://archive.apache.org/dist/commons/lang/source/commons-lang-%{version}-src.tar.gz Source0: https://www.apache.org/dist/commons/lang/source/commons-lang3-%{version}-src.tar.gz
Source1: jakarta-commons-lang-2.3.pom Source1: jakarta-commons-lang-2.3.pom
Patch0: jakarta-commons-2.3-lang-notarget.patch Patch0: jakarta-commons-2.3-lang-notarget.patch
Patch1: jakarta-commons-2.3-lang-addosgimanifest.patch Patch1: jakarta-commons-2.3-lang-addosgimanifest.patch
License: Apache License Version 2.0 License: Apache License Version 2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: apache-ant BuildRequires: apache-ant
BuildRequires: apache-ant-junit BuildRequires: apache-ant-junit
BuildRequires: apache-maven
BuildRequires: java-junit3 BuildRequires: java-junit3
BuildRequires: jpackage-utils BuildRequires: javapackages
Requires: jpackage-utils Requires: javapackages
BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: jakarta-commons-lang24
Obsoletes: jakarta-commons-lang24 <= 2.4-3mamba
%description %description
The standard Java libraries fail to provide enough methods for manipulation of its core classes. The Lang Component provides these extra methods. The standard Java libraries fail to provide enough methods for manipulation of its core classes. The Lang Component provides these extra methods.
@ -39,24 +43,11 @@ Date and a series of utilities dedicated to help with building methods, such as
This package contains javadoc for %{name}. This package contains javadoc for %{name}.
%prep %prep
%setup -q -n commons-lang-%{version}-src %setup -q -n commons-lang3-%{version}-src
perl -pi -e 's/\r//g' *.txt
sed -i 's/\r//' STATUS.html
%patch0
%patch1
%build %build
export JAVA_HOME=%javahome export JAVA_HOME=%javahome
export CLASSPATH=$(build-classpath junit-3.8.2 ant/ant-junit):target/classes:target/tests mvn -Dproject.build.outputTimestamp="$SOURCE_DATE_EPOCH" -Dmaven.javadoc.skip=true -Dmaven.test.skip=true clean package
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 %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -64,10 +55,7 @@ ant \
mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_javadir}
mkdir -p %{buildroot}%{_datadir}/maven2/poms mkdir -p %{buildroot}%{_datadir}/maven2/poms
install -p -m 644 dist/commons-lang.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar install -p -m 644 target/commons-lang3-%{version}.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} cd %{buildroot}%{_javadir}
@ -82,37 +70,21 @@ install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-jakarta-commo
done 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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_javadir}/jakarta-commons-lang-%{version}.jar %{_javadir}/jakarta-commons-lang-%{version}.jar
%{_javadir}/jakarta-commons-lang.jar %{_javadir}/jakarta-commons-lang.jar
%{_javadir}/commons-lang-%{version}.jar %{_javadir}/commons-lang-%{version}.jar
%{_javadir}/commons-lang.jar %{_javadir}/commons-lang.jar
%{_datadir}/maven2/poms %doc LICENSE.txt NOTICE.txt
%{_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 %changelog
* Wed Aug 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.12.0-1mamba
- update to 3.12.0
* Thu Mar 24 2011 gil <puntogil@libero.it> 2.3-4mamba * Thu Mar 24 2011 gil <puntogil@libero.it> 2.3-4mamba
- rebuilt with java-openjdk support - rebuilt with java-openjdk support