84 lines
3.5 KiB
RPMSpec
84 lines
3.5 KiB
RPMSpec
Name: apache-commons-io
|
|
Epoch: 1
|
|
Version: 2.15.1
|
|
Release: 1
|
|
Summary: A library of utilities for developing IO functionality.
|
|
License: ASL 2.0
|
|
URL: http://commons.apache.org/proper/commons-io
|
|
Source0: http://archive.apache.org/dist/commons/io/source/commons-io-%{version}-src.tar.gz
|
|
Patch0: Remove-undefined-parameter-from-maven-surefire-plugi.patch
|
|
Patch1: XmlStreamReader-can-t-parse-XML-document-with-multi-.patch
|
|
BuildArch: noarch
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) maven-local
|
|
BuildRequires: mvn(org.apache.commons:commons-parent:pom:) mvn(junit:junit)
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
|
|
BuildRequires: mvn(org.mockito:mockito-core)
|
|
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
|
|
BuildRequires: mvn(org.openjdk.jmh:jmh-generator-annprocess)
|
|
|
|
%description
|
|
Apache commons IO library is used for developing IO functionality. It contains a collecton of utilities with
|
|
utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.
|
|
|
|
%package help
|
|
Summary: Help documents for apache-commons-io
|
|
Provides: %{name}-javadoc = %{version}-%{release}
|
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
|
|
%description help
|
|
Help documents for apache-commons-io.
|
|
|
|
%prep
|
|
%autosetup -n commons-io-%{version}-src -p1
|
|
%pom_change_dep -r org.junit.jupiter:junit-jupiter org.junit.jupiter:junit-jupiter-api
|
|
%pom_add_dep org.junit.jupiter:junit-jupiter-params
|
|
%pom_remove_dep org.junit-pioneer:junit-pioneer
|
|
%pom_remove_dep com.google.jimfs:jimfs
|
|
%pom_change_dep -r org.mockito:mockito-inline org.mockito:mockito-core
|
|
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin
|
|
|
|
#Because openEuler did not introduce some toolkit package related to several
|
|
#test cases, adaptation was made to test cases that openEuler does not support
|
|
rm -rf src/test/java/org/apache/commons/io/input/ReversedLinesFileReaderTestParamFile.java
|
|
sed -i '/junitpioneer/d' src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
|
|
sed -i '/DefaultLocale/,+12d' src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
|
|
sed -i '/junitpioneer/d' src/test/java/org/apache/commons/io/output/XmlStreamWriterTest.java
|
|
sed -i '/Turkish language has specific rules/,+32d' src/test/java/org/apache/commons/io/output/XmlStreamWriterTest.java
|
|
sed -i '/Timeout/d' src/test/java/org/apache/commons/io/input/ReaderInputStreamTest.java
|
|
sed -i '/If data is not available in queue/,+11d' src/test/java/org/apache/commons/io/input/QueueInputStreamTest.java
|
|
sed -i '/Stopwatch/d' src/test/java/org/apache/commons/io/input/QueueInputStreamTest.java
|
|
|
|
%build
|
|
%mvn_file : commons-io %{name}
|
|
%mvn_alias : org.apache.commons:
|
|
%mvn_build --skipTests --xmvn-javadoc
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%check
|
|
xmvn test --batch-mode --offline verify
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.txt NOTICE.txt
|
|
|
|
%files help -f .mfiles-javadoc
|
|
%doc RELEASE-NOTES.txt
|
|
|
|
%changelog
|
|
* Mon Dec 09 2024 yaoxin <yao_xin001@hoperun.com> - 1:2.15.1-1
|
|
- Update to 2.15.1 for fix CVE-2024-47554
|
|
|
|
* Fri Sep 23 2022 yaoxin <yaoxin30@h-partners.com> - 1:2.6-8
|
|
- Remove the empty Ignore-some-test-because-bep.patch file.
|
|
|
|
* Sat May 8 2021 wangxiao <wangxiao65@huawei.com> - 1:2.6-7
|
|
- Fix CVE-2021-29425
|
|
|
|
* Mon Apr 26 2021 maminjie <maminjie1@huawei.com> - 1:2.6-6
|
|
- Move the test to the %check stage
|
|
|
|
* Thu Dec 5 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1:2.6-5
|
|
- Package init
|