diff --git a/apache-commons-collections.changes b/apache-commons-collections.changes index 6781cca..4d718ff 100644 --- a/apache-commons-collections.changes +++ b/apache-commons-collections.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 15 07:37:07 UTC 2018 - fstrba@suse.com + +- Build with source and target 8 to prepare for a possible removal + of 1.6 compatibility in OpenJDK 11 +- Run fdupes on documentation + ------------------------------------------------------------------- Fri Sep 29 08:12:33 UTC 2017 - fstrba@suse.com diff --git a/apache-commons-collections.spec b/apache-commons-collections.spec index 47db09e..cb0dc34 100644 --- a/apache-commons-collections.spec +++ b/apache-commons-collections.spec @@ -1,7 +1,7 @@ # # spec file for package apache-commons-collections # -# 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 @@ -37,7 +37,8 @@ Patch4: commons-collections-3.2.2-tf.javadoc.patch BuildRequires: ant BuildRequires: ant-junit BuildRequires: apache-commons-parent -BuildRequires: java-devel +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local BuildRequires: javapackages-tools BuildRequires: junit @@ -108,8 +109,8 @@ sed -i 's/@VERSION@/%{version}/' pom-testframework.xml %build echo "junit.jar=$(build-classpath junit)" >>build.properties ant \ - -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \ - -Dant.build.javadoc.source=1.6 \ + -Dant.build.javac.source=8 -Dant.build.javac.target=8 \ + -Dant.build.javadoc.source=8 \ -Djava.io.tmpdir=. jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc %install @@ -128,10 +129,12 @@ install -Dpm 644 pom-testframework.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_n # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -pr build/docs/apidocs/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir}/%{name} # testframework-javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-testframework cp -pr build/docs/testframework/* %{buildroot}%{_javadocdir}/%{name}-testframework +%fdupes -s %{buildroot}%{_javadocdir}/%{name}-testframework %files %defattr(0644,root,root,0755)