[packages/yajl] run tests
glen
glen at pld-linux.org
Sat Jan 10 19:45:30 CET 2015
commit 5c13d88b9f909a4119e88b6876a40074765ee0b9
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Jan 10 20:45:20 2015 +0200
run tests
yajl.spec | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/yajl.spec b/yajl.spec
index a6adb23..c2f896f 100644
--- a/yajl.spec
+++ b/yajl.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
Summary: Yet Another JSON Library
Summary(pl.UTF-8): Yet Another JSON Library - jeszcze jedna biblioteka JSON
Name: yajl
@@ -59,6 +63,9 @@ cd build
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_VERBOSE_MAKEFILE=ON
+%{__make}
+%{?with_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/yajl.git/commitdiff/5c13d88b9f909a4119e88b6876a40074765ee0b9
More information about the pld-cvs-commit
mailing list