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