2016-09-29 13:11:47 +02:00
|
|
|
#
|
2016-09-29 13:20:24 +02:00
|
|
|
# spec file for package apache-commons-pool2
|
2016-09-29 13:11:47 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define base_name pool
|
2016-09-29 13:13:59 +02:00
|
|
|
%define short_name commons-%{base_name}2
|
2016-09-29 13:13:04 +02:00
|
|
|
Name: apache-commons-pool2
|
|
|
|
Version: 2.4.2
|
2016-09-29 13:11:47 +02:00
|
|
|
Release: 0
|
2016-09-29 13:13:04 +02:00
|
|
|
Summary: Apache Commons Pool 2.x series
|
2016-09-29 13:11:47 +02:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Url: https://commons.apache.org/proper/commons-pool/
|
|
|
|
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
|
|
Patch0: jakarta-commons-pool-build.patch
|
|
|
|
BuildRequires: ant
|
2016-09-29 13:20:24 +02:00
|
|
|
BuildRequires: cglib
|
2016-09-29 13:11:47 +02:00
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: javapackages-tools
|
|
|
|
BuildRequires: junit
|
|
|
|
Provides: jakarta-commons-pool = %{version}
|
|
|
|
Obsoletes: jakarta-commons-pool < %{version}
|
|
|
|
Provides: %{short_name} = %{version}
|
|
|
|
Obsoletes: %{short_name} < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The goal of the Pool package is to create and maintain an object
|
|
|
|
(instance) pooling package to be distributed under the ASF license. The
|
|
|
|
package supports a variety of pool implementations, but encourages
|
|
|
|
support of an interface that makes these implementations
|
|
|
|
interchangeable.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for jakarta-commons-pool
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
The goal of Pool package it to create and maintain an object (instance)
|
|
|
|
pooling package to be distributed under the ASF license. The package
|
|
|
|
should support a variety of pool implementations, but encourage support
|
|
|
|
of an interface that makes these implementations interchangeable.
|
|
|
|
|
|
|
|
This package contains the javadoc documentation for the Jakarta Commons
|
|
|
|
Pool Package.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{short_name}-%{version}-src
|
|
|
|
# remove all binary libs
|
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
%patch0
|
|
|
|
|
|
|
|
%build
|
2016-09-29 13:23:44 +02:00
|
|
|
export CLASSPATH=$(build-classpath cglib)
|
2016-09-29 13:11:47 +02:00
|
|
|
ant -Djava.io.tmpdir=. clean dist
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
2016-09-29 13:23:44 +02:00
|
|
|
install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
2016-09-29 13:11:47 +02:00
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
|
|
# javadoc
|
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc README.txt LICENSE.txt
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/%{name}-%{version}.jar
|
|
|
|
%{_javadir}/%{short_name}.jar
|
|
|
|
%{_javadir}/%{short_name}-%{version}.jar
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|