70ed99
%bcond_with bootstrap
70ed99
70ed99
Name:           apache-commons-io
70ed99
Epoch:          1
70ed99
Version:        2.11.0
70ed99
Release:        2%{?dist}
70ed99
Summary:        Utilities to assist with developing IO functionality
70ed99
License:        ASL 2.0
70ed99
URL:            https://commons.apache.org/io
70ed99
BuildArch:      noarch
70ed99
ExclusiveArch:  %{java_arches} noarch
70ed99
70ed99
Source0:        https://archive.apache.org/dist/commons/io/source/commons-io-%{version}-src.tar.gz
70ed99
70ed99
%if %{with bootstrap}
70ed99
BuildRequires:  javapackages-bootstrap-openjdk8
70ed99
%else
70ed99
BuildRequires:  maven-local-openjdk8
70ed99
BuildRequires:  mvn(org.apache.commons:commons-lang3)
70ed99
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
70ed99
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
70ed99
BuildRequires:  mvn(org.junit.jupiter:junit-jupiter)
70ed99
BuildRequires:  mvn(org.mockito:mockito-core)
70ed99
%endif
70ed99
70ed99
%description
70ed99
Commons-IO contains utility classes, stream implementations,
70ed99
file filters, and endian classes. It is a library of utilities
70ed99
to assist with developing IO functionality.
70ed99
70ed99
%{?javadoc_package}
70ed99
70ed99
%prep
70ed99
%setup -q -n commons-io-%{version}-src
70ed99
sed -i 's/\r//' *.txt
70ed99
70ed99
# Run tests in multiple reusable forks to improve test performance
70ed99
sed -i -e /reuseForks/d -e /forkCount/d pom.xml
70ed99
sed -i '/<argLine>/d' pom.xml
70ed99
70ed99
%mvn_file  : commons-io %{name}
70ed99
%mvn_alias : org.apache.commons:
70ed99
70ed99
%pom_remove_dep org.junit-pioneer:junit-pioneer
70ed99
%pom_remove_dep :junit-bom
70ed99
%pom_remove_dep com.google.jimfs:jimfs
70ed99
70ed99
# Test depends on com.google.jimfs:jimfs
70ed99
rm src/test/java/org/apache/commons/io/input/ReversedLinesFileReaderTestParamFile.java
70ed99
70ed99
# This annotation is part of junitpioneer
70ed99
sed -i '/DefaultLocale/d' src/test/java/org/apache/commons/io/output/XmlStreamWriterTest.java
70ed99
sed -i '/DefaultLocale/d' src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
70ed99
70ed99
%build
70ed99
# See "-DcommonsIoVersion" in maven-surefire for the tested version
70ed99
70ed99
# The following tests fail on tmpfs/nfs:
70ed99
#  * PathUtilsDeleteDirectoryTest.testDeleteDirectory1FileSize0OverrideReadOnly:80->testDeleteDirectory1FileSize0:68 » FileSystem
70ed99
#  * PathUtilsDeleteFileTest.testDeleteReadOnlyFileDirectory1FileSize1:114 » FileSystem
70ed99
#  * PathUtilsDeleteFileTest.testSetReadOnlyFileDirectory1FileSize1:134 » FileSystem
70ed99
#  * PathUtilsDeleteTest.testDeleteDirectory1FileSize0OverrideReadonly:97->testDeleteDirectory1FileSize0:69 » FileSystem
70ed99
#  * PathUtilsDeleteTest.testDeleteDirectory1FileSize1OverrideReadOnly:145->testDeleteDirectory1FileSize1:117 » FileSystem
70ed99
70ed99
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.io
70ed99
70ed99
%install
70ed99
%mvn_install
70ed99
70ed99
%files -f .mfiles
70ed99
%license LICENSE.txt NOTICE.txt
70ed99
%doc RELEASE-NOTES.txt
70ed99
70ed99
%changelog
70ed99
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11.0-2
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
70ed99
70ed99
* Sun Apr 24 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.11.0-1
70ed99
- Update to upstream version 2.11.0
70ed99
70ed99
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1:2.8.0-7
70ed99
- Rebuilt for java-17-openjdk as system jdk
70ed99
70ed99
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8.0-6
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
70ed99
70ed99
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8.0-5
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
70ed99
70ed99
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.8.0-4
70ed99
- Bootstrap build
70ed99
- Non-bootstrap build
70ed99
70ed99
* Wed Feb  3 2021 Mat Booth <mat.booth@redhat.com> - 1:2.8.0-3
70ed99
- Add patch to fix Files.size() failing when symlink target is non-existant
70ed99
70ed99
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8.0-2
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
70ed99
70ed99
* Fri Oct 16 2020 Fabio Valentini <decathorpe@gmail.com> - 1:2.8.0-1
70ed99
- Update to version 2.8.0.
70ed99
70ed99
* Fri Sep 18 2020 Marian Koncek <mkoncek@redhat.com> - 1:2.8.0-1
70ed99
- Update to upstream version 2.8.0
70ed99
70ed99
* Tue Aug 18 2020 Fabio Valentini <decathorpe@gmail.com> - 1:2.7-1
70ed99
- Update to version 2.7.
70ed99
70ed99
* Wed Jul 29 2020 Marian Koncek <mkoncek@redhat.com> - 1:2.7-1
70ed99
- Update to upstream version 2.7
70ed99
70ed99
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-10
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
70ed99
70ed99
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1:2.6-9
70ed99
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
70ed99
70ed99
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-8
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
70ed99
70ed99
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.6-6
70ed99
- Build with OpenJDK 8
70ed99
70ed99
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.6-5
70ed99
- Mass rebuild for javapackages-tools 201902
70ed99
70ed99
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-7
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
70ed99
70ed99
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.6-4
70ed99
- Mass rebuild for javapackages-tools 201901
70ed99
70ed99
* Thu Feb 07 2019 Mat Booth <mat.booth@redhat.com> - 1:2.6-6
70ed99
- Rebuild to regenerate OSGi metadata
70ed99
70ed99
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-5
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
70ed99
70ed99
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-4
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
70ed99
70ed99
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-3
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
70ed99
70ed99
* Mon Jan 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.6-2
70ed99
- Cleanup spec file
70ed99
70ed99
* Sun Oct 22 2017 Michael Simacek <msimacek@redhat.com> - 1:2.6-1
70ed99
- Update to upstream version 2.6
70ed99
70ed99
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.5-3
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
70ed99
70ed99
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.5-2
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
70ed99
70ed99
* Thu Jun 23 2016 Michael Simacek <msimacek@redhat.com> - 1:2.5-1
70ed99
- Update to upstream version 2.5
70ed99
70ed99
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.4-15
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
70ed99
70ed99
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.4-14
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
70ed99
70ed99
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.4-13
70ed99
- Remove legacy Obsoletes/Provides for jakarta-commons
70ed99
70ed99
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.4-12
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
70ed99
70ed99
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:2.4-11
70ed99
- Use Requires: java-headless rebuild (#1067528)
70ed99
70ed99
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.4-10
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
70ed99
70ed99
* Mon Apr 22 2013 Michal Srb <msrb@redhat.com> - 1:2.4-9
70ed99
- Rebuild
70ed99
70ed99
* Mon Apr 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.4-8
70ed99
- Update to current packaging guidelines
70ed99
70ed99
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.4-7
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
70ed99
70ed99
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1:2.4-6
70ed99
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
70ed99
- Replace maven BuildRequires with maven-local
70ed99
70ed99
* Wed Jan  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.4-5
70ed99
- Bump release tag
70ed99
70ed99
* Tue Jan  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.4-4
70ed99
- Build with xmvn
70ed99
70ed99
* Mon Nov 19 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.4-3
70ed99
- Add Provides/Obsoletes for jakarta-commons-io
70ed99
70ed99
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.4-2
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
70ed99
70ed99
* Tue Jun 19 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.4-1
70ed99
- Updae to 2.4
70ed99
70ed99
* Mon Apr 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.3-1
70ed99
- Update to 2.3
70ed99
70ed99
* Wed Apr 4 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2.2-1
70ed99
- Update to 2.2
70ed99
- Remove rpm bug workaround
70ed99
- Finalize renaming from jakarta-comons-io
70ed99
70ed99
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-2
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
70ed99
70ed99
* Wed Dec 7 2011 Alexander Kurtakov <akurtako@redhat.com> 1:2.1-1
70ed99
- Update to latest upstream (2.1).
70ed99
70ed99
* Thu Jun 23 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:2.0.1-3
70ed99
- Fix build with maven3
70ed99
- Use new add_maven_depmap macro
70ed99
70ed99
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0.1-2
70ed99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
70ed99
70ed99
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:2.0.1-1
70ed99
- Update to 2.0.1
70ed99
- Versionless jars & javadocs
70ed99
- Use maven 3 to build
70ed99
- Use apache-commons-parent for BR
70ed99
70ed99
* Fri Oct 22 2010 Chris Spike <chris.spike@arcor.de> 1:2.0-1
70ed99
- Updated to 2.0
70ed99
- Cleaned up BRs
70ed99
70ed99
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-6
70ed99
- Add license to javadoc subpackage
70ed99
70ed99
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-5
70ed99
- Correct depmap filename for backward compatibility
70ed99
70ed99
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-4
70ed99
- Fix maven depmap JPP name to short_name
70ed99
70ed99
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-3
70ed99
- Add obsoletes to javadoc sub-package
70ed99
70ed99
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-2
70ed99
- Add symlink to short_name.jar
70ed99
- Fix mavendepmapfragdir wildcard
70ed99
70ed99
* Tue May 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:1.4-1
70ed99
- Rename and rebase of jakarta-commons-io
70ed99
- Clean up whole spec