From 4c28ba1e460af29bf13572b48c206c2d7350e08ac2e2640c0411db8dc60c54b7 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 26 Feb 2019 17:45:09 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-io?expand=0&rev=20 --- apache-commons-io-build.xml | 250 ++++++++++++++++++++++++++++++ apache-commons-io.changes | 14 ++ apache-commons-io.spec | 63 ++++---- commons-io-2.4-src.tar.gz | 3 - commons-io-2.6-src.tar.gz | 3 + commons-io-version-property.patch | 13 -- 6 files changed, 295 insertions(+), 51 deletions(-) create mode 100644 apache-commons-io-build.xml delete mode 100644 commons-io-2.4-src.tar.gz create mode 100644 commons-io-2.6-src.tar.gz delete mode 100644 commons-io-version-property.patch diff --git a/apache-commons-io-build.xml b/apache-commons-io-build.xml new file mode 100644 index 0000000..ea33d82 --- /dev/null +++ b/apache-commons-io-build.xml @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apache-commons-io.changes b/apache-commons-io.changes index aab1b06..1f1830a 100644 --- a/apache-commons-io.changes +++ b/apache-commons-io.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Tue Feb 26 17:34:25 UTC 2019 - Fridrich Strba + +- Update to upstream version 2.6 + * many bugfixes, features and enhancenments, like + Automatic-Module-Name entry in manifest + * requires jdk7 or later + * see RELEASE-NOTES.txt for details +- Generated a build.xml to be able to build with ant +- Build with tests is now optional +- Removed patch: + * commons-io-version-property.patch + + not needed anymore in this version + ------------------------------------------------------------------- Tue May 15 10:41:03 UTC 2018 - fstrba@suse.com diff --git a/apache-commons-io.spec b/apache-commons-io.spec index 3f651ca..6883f4b 100644 --- a/apache-commons-io.spec +++ b/apache-commons-io.spec @@ -1,7 +1,7 @@ # # spec file for package apache-commons-io # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,32 +12,33 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define base_name io %define short_name commons-%{base_name} +%bcond_with tests Name: apache-commons-io -Version: 2.4 +Version: 2.6 Release: 0 Summary: Utilities to assist with developing IO functionality License: Apache-2.0 Group: Development/Libraries/Java -Url: http://commons.apache.org/%{base_name} +URL: http://commons.apache.org/%{base_name} Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz -#PATCH-FIX-OPENSUSE: fix the version property to 2.4 -Patch0: commons-io-version-property.patch +Source1: %{name}-build.xml BuildRequires: ant >= 1.6 BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local -BuildRequires: javapackages-tools Provides: %{short_name} = %{version}-%{release} Provides: jakarta-%{short_name} = %{version}-%{release} -Obsoletes: jakarta-%{short_name} < %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Obsoletes: jakarta-%{short_name} < %{version}-%{release} BuildArch: noarch +%if %{with tests} +BuildRequires: ant-junit +%endif %description Commons-IO contains utility classes, stream implementations, @@ -46,52 +47,44 @@ to assist with developing IO functionality. %package javadoc Summary: Commons IO Package -Group: Development/Libraries/Java +Group: Documentation/HTML %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{version}-src -%patch0 -p1 -# wrong end of line encoding -sed -i -e 's/.$//' *.txt +cp %{SOURCE1} build.xml %build -export OPT_JAR_LIST="junit" -export CLASSPATH= -CLASSPATH=target/classes:target/test-classes:$CLASSPATH -ant -Dcompile.source=8 -Dcompile.target=8 \ - -Dbuild.sysclasspath=only \ - dist +%{ant} \ + -Dcompiler.source=1.8 \ +%if %{without tests } + -Dtest.skip=true \ +%endif + jar javadoc %install # jars install -d -m 0755 %{buildroot}%{_javadir} install -p -m 0644 target/%{short_name}-%{version}.jar \ - %{buildroot}%{_javadir}/%{name}.jar -ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar - + %{buildroot}%{_javadir}/%{short_name}.jar +ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar # pom install -d -m 755 %{buildroot}%{_mavenpomdir} -install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom - -%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar -a "org.apache.commons:commons-io" - +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom +%add_maven_depmap %{short_name}.pom %{short_name}.jar -a "org.apache.commons:commons-io" # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} -cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name} -%fdupes -s %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} -%files -%defattr(-,root,root,-) -%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt -%{_javadir}/*.jar -%{_mavenpomdir}/JPP-%{short_name}.pom -%{_datadir}/maven-metadata/%{name}.xml* +%files -f .mfiles +%license LICENSE.txt NOTICE.txt +%doc RELEASE-NOTES.txt +%{_javadir}/%{name}.jar %files javadoc -%defattr(-,root,root,-) %doc %{_javadocdir}/%{name} %changelog diff --git a/commons-io-2.4-src.tar.gz b/commons-io-2.4-src.tar.gz deleted file mode 100644 index 7d7a622..0000000 --- a/commons-io-2.4-src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:961c8b41a891933c2d662d8e490667243ac82422668d1ccdd7bfedfdb944bb58 -size 330961 diff --git a/commons-io-2.6-src.tar.gz b/commons-io-2.6-src.tar.gz new file mode 100644 index 0000000..1c698c3 --- /dev/null +++ b/commons-io-2.6-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f68167938ab15ced969747bc6b4d91c4f923a34ad4fdb2e8c8c3029adaa47e0c +size 383069 diff --git a/commons-io-version-property.patch b/commons-io-version-property.patch deleted file mode 100644 index 2e1de31..0000000 --- a/commons-io-version-property.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: commons-io-2.4-src/build.xml -=================================================================== ---- commons-io-2.4-src.orig/build.xml 2012-06-13 00:18:07.000000000 +0200 -+++ commons-io-2.4-src/build.xml 2012-10-25 10:19:14.012998318 +0200 -@@ -55,7 +55,7 @@ - - - -- -+ - - -