Accepting request 620757 from Java:packages
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/620757 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-pool2?expand=0&rev=3
This commit is contained in:
commit
9e90163ac8
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 15 13:19:59 UTC 2018 - fstrba@suse.com
|
||||
|
||||
- Build with source and target 8 to prepare for a possible removal
|
||||
of 1.6 compatibility
|
||||
- Run fdupes on documentation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 14 14:55:25 UTC 2017 - fstrba@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package apache-commons-pool2
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 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
|
||||
@ -29,7 +29,8 @@ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_n
|
||||
Patch0: jakarta-commons-pool-build.patch
|
||||
BuildRequires: ant
|
||||
BuildRequires: cglib
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: junit
|
||||
Requires: cglib
|
||||
@ -65,7 +66,9 @@ find . -name "*.jar" -exec rm -f {} \;
|
||||
|
||||
%build
|
||||
echo "cglib.jar=$(build-classpath cglib)" >> build.properties
|
||||
ant -Djava.io.tmpdir=. clean dist
|
||||
ant \
|
||||
-Djavac.target.version=8 -Djavac.src.version=8 \
|
||||
-Djava.io.tmpdir=. clean dist
|
||||
|
||||
%install
|
||||
# jars
|
||||
@ -76,6 +79,7 @@ install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}
|
||||
# javadoc
|
||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files
|
||||
%doc README.txt LICENSE.txt
|
||||
|
Loading…
Reference in New Issue
Block a user