[packages/ruby-ffi] add tests bcond

glen glen at pld-linux.org
Sun May 4 10:05:08 CEST 2014


commit bac43acd2dcd28b8909d7f2b8252c09adcad2286
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 4 11:05:03 2014 +0300

    add tests bcond

 ruby-ffi.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ruby-ffi.spec b/ruby-ffi.spec
index 73bcc49..61dd8b5 100644
--- a/ruby-ffi.spec
+++ b/ruby-ffi.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
 %define	pkgname ffi
 Summary:	FFI Extensions for Ruby
 Name:		ruby-%{pkgname}
@@ -11,8 +15,10 @@ URL:		http://wiki.github.com/ffi/ffi
 BuildRequires:	libffi-devel
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.665
-BuildRequires:	ruby-rspec
 BuildRequires:	setup.rb
+%if %{with tests}
+BuildRequires:	ruby-rspec
+%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-ffi.git/commitdiff/bac43acd2dcd28b8909d7f2b8252c09adcad2286



More information about the pld-cvs-commit mailing list