apache-commons-pool/apache-commons-pool.spec

79 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: apache-commons-pool
Version: 1.6
Release: 1mamba
Summary: Jakarta Commons Pool Package
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://commons.apache.org/proper/commons-pool/
Source0: https://archive.apache.org/dist/commons/pool/binaries/commons-pool-%{version}-bin.tar.gz
License: Apache Software License 2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
Requires: javapackages
Obsoletes: apache-commons-pool-tomcat5 < 1.6
%description
Pool provides an Object-pooling API, with three major aspects:
1. A generic object pool interface that clients and
implementors can use to provide easily interchangable pooling implementations.
2. A toolkit for creating modular object pools.
3. Several general purpose pool implementations.
%prep
%setup -q -n commons-pool-%{version}
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}/pool
install -p -m 644 commons-pool-%{version}.jar \
%{buildroot}%{_javadir}/pool/%{name}-%{version}.jar
(
cd %{buildroot}%{_javadir}/pool
for jar in *-%{version}*; do
ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
done
)
(
cd %{buildroot}%{_javadir}/pool
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}/pool/apache-commons-pool-%{version}.jar
%{_javadir}/pool/apache-commons-pool.jar
%{_javadir}/pool/commons-pool-%{version}.jar
%{_javadir}/pool/commons-pool.jar
%doc LICENSE.txt
%changelog
* Fri Aug 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6-1mamba
- update to 1.6
* Sun Feb 27 2011 gil <puntogil@libero.it> 1.5.5-1mamba
- update to 1.5.5
* Wed Nov 10 2010 gil <puntogil@libero.it> 1.4-2mamba
- rebuilt devel
* Thu Jun 11 2009 gil <puntogil@libero.it> 1.4-1mamba
- update to 1.4
- renamed to legacy apache-commons-pool (ex jakarta)
* Sun Mar 08 2009 gil <puntogil@libero.it> 1.3-1mamba
- package created by autospec