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