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