Accepting request 897998 from Java:packages

2.9.0

OBS-URL: https://build.opensuse.org/request/show/897998
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-io?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2021-06-09 19:54:58 +00:00 committed by Git OBS Bridge
commit 96aff31822
7 changed files with 30 additions and 135 deletions

View File

@ -10,7 +10,7 @@
<property name="project.groupId" value="commons-io"/>
<property name="project.artifactId" value="commons-io"/>
<property name="project.version" value="2.8.0"/>
<property name="project.version" value="2.9.0"/>
<property name="project.name" value="Apache Commons IO"/>
<property name="project.description" value="The Apache Commons IO library
contains utility classes, stream implementations, file filters,
@ -29,11 +29,6 @@ file comparators, endian transformation classes, and much more."/>
<property name="build.srcDir" value="src/main/java"/>
<property name="build.resourceDir.0" value="src/main/resources"/>
<property name="build.resourceDir.1" value="."/>
<property name="build.testOutputDir" value="${build.dir}/test-classes"/>
<property name="build.testDir" value="src/test/java"/>
<property name="build.testResourceDir.0" value="src/test/resources"/>
<property name="build.testResourceDir.1" value="."/>
<property name="test.reports" value="${build.dir}/test-reports"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== -->
@ -81,108 +76,6 @@ file comparators, endian transformation classes, and much more."/>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Test-compilation target -->
<!-- ====================================================================== -->
<target name="compile-tests"
depends="compile"
description="Compile the test code"
unless="test.skip">
<mkdir dir="${build.testOutputDir}"/>
<javac destdir="${build.testOutputDir}"
encoding="iso-8859-1"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.testDir}"/>
</src>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${build.outputDir}"/>
</classpath>
</javac>
<copy todir="${build.testOutputDir}">
<fileset dir="${build.testResourceDir.0}"/>
</copy>
<mkdir dir="${build.testOutputDir}/META-INF"/>
<copy todir="${build.testOutputDir}/META-INF">
<fileset dir="${build.testResourceDir.1}">
<include name="NOTICE.txt"/>
<include name="LICENSE.txt"/>
</fileset>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Run all tests -->
<!-- ====================================================================== -->
<target name="test"
depends="compile-tests, junit-missing"
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${test.reports}"/>
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${build.outputDir}"/>
<pathelement location="${build.testOutputDir}"/>
</classpath>
<batchtest todir="${test.reports}" unless="test">
<fileset dir="${build.testDir}">
<include name="**/*Test*.java"/>
<exclude name="**/*Abstract*TestCase*"/>
<exclude name="**/testtools/**"/>
</fileset>
</batchtest>
<batchtest todir="${test.reports}" if="test">
<fileset dir="${build.testDir}">
<include name="**/${test}.java"/>
<exclude name="**/*Abstract*TestCase*"/>
<exclude name="**/testtools/**"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-junit-present">
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/>
</target>
<target name="test-junit-status"
depends="test-junit-present">
<condition property="junit.missing">
<and>
<isfalse value="${junit.present}"/>
<isfalse value="${test.skip}"/>
</and>
</condition>
<condition property="junit.skipped">
<or>
<isfalse value="${junit.present}"/>
<istrue value="${test.skip}"/>
</or>
</condition>
</target>
<target name="junit-missing"
depends="test-junit-status"
if="junit.missing">
<echo>=================================== WARNING ===================================</echo>
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo>
<echo>===============================================================================</echo>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
@ -215,7 +108,7 @@ file comparators, endian transformation classes, and much more."/>
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile,test" description="Package the application">
<target name="package" depends="compile" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true"
index="false"

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jun 3 16:51:10 UTC 2021 - Pedro Monreal <pmonreal@suse.com>
- Update to 2.9.0
* Lots of added functions, fixes and updates.
* https://commons.apache.org/proper/commons-io/changes-report.html#a2.9.0
-------------------------------------------------------------------
Tue Oct 27 11:49:20 UTC 2020 - Pedro Monreal <pmonreal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package apache-commons-io
# spec file
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,11 +16,10 @@
#
%define base_name io
%define short_name commons-%{base_name}
%bcond_with tests
%define base_name io
%define short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 2.8.0
Version: 2.9.0
Release: 0
Summary: Utilities to assist with developing IO functionality
License: Apache-2.0
@ -37,9 +36,6 @@ Provides: %{short_name} = %{version}-%{release}
Provides: jakarta-%{short_name} = %{version}-%{release}
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
BuildArch: noarch
%if %{with tests}
BuildRequires: ant-junit
%endif
%description
Commons-IO contains utility classes, stream implementations,
@ -58,13 +54,12 @@ This package provides %{summary}.
cp %{SOURCE2} build.xml
%pom_remove_parent
%pom_remove_dep :junit-bom
%pom_change_dep -r -f ::::: :::::
%build
%{ant} \
-Dcompiler.source=1.8 \
%if %{without tests }
-Dtest.skip=true \
%endif
jar javadoc
%install

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e44c2b038bf825526305f0320b2e24dce039f399968326aab30c475ab765612
size 445833

View File

@ -1,11 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAl9U6ioACgkQhv3H4qES
Ysuy1wf/VcyqeNE80VLt0Pl4SPArhnLfgPzXcJVW54IIw3Ndlha/1i8iiJ9VLmEv
I8pue0SI+yEMcUyTU6/GfqfEUrp43VqBOSFFr2mDICYpiWiYXLBaGIT9dk8cpl1q
mZ6Y1lgF6LK58a3faZlusXj4dyiAkaf6ul5v27JjY8Fma8DpmIKMjCLfDbvjF6HQ
g+IP+5zoCWULKKGfziecMz9uL4sztu1bGPCcfVd5jOIIufmYyf36sG/kXYGhHd23
kPFC8zMOXeCjMBdFV1y3o1OpmGVlnh5gry0J04ySYykYzLmm6ZR7i3cXNaaSO/nA
IWBTAMTdeuo+rbqORG4GcnSMd1/kew==
=Dh1z
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ecac92d4f73682076c48b2de0084cd89c170a11a7242e9e83f05f4634c99ca2
size 498037

View File

@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAmCpN5kACgkQhv3H4qES
YssuFQf+OojWRDzCngSl1ZCpPpQCHCHIop1NwsfGGk9T7MbOBSt/laNye9VNRgq3
1rQHdKyM254T0dJQVCaV7cbXUwkiTgagC4gP89cPliHNBVICTxHm5frRL9yXTy1L
k8HdHdYuZjR0+jxlvmnrh3s5ZLsTnaLjV084c2TitZ5EjMHUL6reUtEU73/3pf+g
ou6WlN0lw+ST6/5F1K7UJamtw+nyTejG+l8ULBKXxAIQERuwD3iDTBT/igktUFfT
3EWO1C+vZ6RXSCgbWLskwRYllgnB116z1BMZ6FcNOfwjiyPcmMz5hXLdE1mNqAlI
pRwZSEIstACMsuA9z5JKpN0YJkM0/Q==
=zppS
-----END PGP SIGNATURE-----