103 lines
3.8 KiB
RPMSpec
103 lines
3.8 KiB
RPMSpec
%define javahome %{_jvmdir}/jdk
|
|
Name: jakarta-commons-lang
|
|
Version: 3.13.0
|
|
Release: 1mamba
|
|
Summary: Jakarta Commons Lang Package
|
|
Group: Development/Libraries/Java
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://commons.apache.org/proper/commons-lang/
|
|
Source0: https://www.apache.org/dist/commons/lang/source/commons-lang3-%{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
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: apache-ant
|
|
BuildRequires: apache-ant-junit
|
|
BuildRequires: apache-maven
|
|
BuildRequires: java-junit3
|
|
BuildRequires: javapackages
|
|
Requires: javapackages
|
|
Provides: jakarta-commons-lang24
|
|
Obsoletes: jakarta-commons-lang24 <= 2.4-3mamba
|
|
|
|
%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-lang3-%{version}-src
|
|
|
|
%build
|
|
export JAVA_HOME=%javahome
|
|
mvn -Dproject.build.outputTimestamp="$SOURCE_DATE_EPOCH" -Dmaven.javadoc.skip=true -Dmaven.test.skip=true clean package
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
mkdir -p %{buildroot}%{_datadir}/maven2/poms
|
|
|
|
install -p -m 644 target/commons-lang3-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(
|
|
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
|
|
)
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_javadir}/jakarta-commons-lang-%{version}.jar
|
|
%{_javadir}/jakarta-commons-lang.jar
|
|
%{_javadir}/commons-lang-%{version}.jar
|
|
%{_javadir}/commons-lang.jar
|
|
%doc LICENSE.txt NOTICE.txt
|
|
|
|
%changelog
|
|
* Fri Aug 18 2023 Automatic Build System <autodist@mambasoft.it> 3.13.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|
|
- rebuilt with java-openjdk support
|
|
|
|
* Sat Oct 30 2010 gil <puntogil@libero.it> 2.3-3mamba
|
|
- rebuilt in devel
|
|
|
|
* Fri Jan 08 2010 gil <puntogil@libero.it> 2.3-2mamba
|
|
- add maven pom
|
|
- add OSGi support
|
|
|
|
* Fri Mar 06 2009 gil <puntogil@libero.it> 2.3-1mamba
|
|
- package created by autospec
|