!2 Move the test to the %check stage
From: @maminjie Reviewed-by: @wang_yue111,@wangchong1995924 Signed-off-by: @wangchong1995924
This commit is contained in:
commit
24a8588eb5
@ -1,7 +1,7 @@
|
||||
Name: apache-commons-io
|
||||
Epoch: 1
|
||||
Version: 2.6
|
||||
Release: 5
|
||||
Release: 6
|
||||
Summary: A library of utilities for developing IO functionality.
|
||||
License: ASL 2.0
|
||||
URL: http://commons.apache.org/proper/commons-io
|
||||
@ -25,15 +25,20 @@ Help documents for apache-commons-io.
|
||||
|
||||
%prep
|
||||
%autosetup -n commons-io-%{version}-src -p1
|
||||
# remove <scope>test</scope>
|
||||
%pom_xpath_remove "pom:dependency[pom:artifactId='junit']/pom:scope"
|
||||
|
||||
%build
|
||||
%mvn_file : commons-io %{name}
|
||||
%mvn_alias : org.apache.commons:
|
||||
%mvn_build
|
||||
%mvn_build --skipTests
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%check
|
||||
xmvn test --batch-mode --offline verify
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
|
||||
@ -41,5 +46,8 @@ Help documents for apache-commons-io.
|
||||
%doc RELEASE-NOTES.txt
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user