[snakeyaml] Conditionally disable tests
Mikolaj Izdebski
mizdebsk at fedoraproject.org
Wed Apr 10 08:33:51 UTC 2013
commit 8face7bb8c4935a24c36c22df6454ef3f900cee3
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date: Wed Apr 10 10:33:00 2013 +0200
Conditionally disable tests
- Conditionally remove test dependencies from POM
snakeyaml.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/snakeyaml.spec b/snakeyaml.spec
index 0744d65..d72583f 100644
--- a/snakeyaml.spec
+++ b/snakeyaml.spec
@@ -61,6 +61,11 @@ rm -rf src/main/java/biz
# convert CR+LF to LF
sed -i 's/\r//g' LICENSE.txt
+%if !0%{?fedora}
+# Remove test dependencies because tests are skipped anyways.
+%pom_xpath_remove "pom:dependency[pom:scope[text()='test']]"
+%endif
+
%build
mvn-rpmbuild %{!?fedora:-Dmaven.test.skip=true} install
@@ -91,6 +96,7 @@ cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%changelog
* Wed Apr 10 2013 Mikolaj Izdebski <mizdebsk at redhat.com> - 1.11-4
- Conditionally disable tests
+- Conditionally remove test dependencies from POM
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list