[packages/chef] add tests bcond (disabled, too many failures)

glen glen at pld-linux.org
Tue Apr 30 00:50:12 CEST 2013


commit 8354a17ec524851a7e10e6922350690d248d768f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Apr 30 01:49:33 2013 +0300

    add tests bcond (disabled, too many failures)

 chef.spec | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/chef.spec b/chef.spec
index a5af807..0d25df0 100644
--- a/chef.spec
+++ b/chef.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
 Summary:	A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure
 Name:		chef
 Version:	11.4.4
@@ -13,14 +17,18 @@ BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
 BuildRequires:	sed >= 4.0
 %if %{with tests}
+BuildRequires:	ruby-abstract
+BuildRequires:	ruby-mixlib-authentication >= 1.3.0
 BuildRequires:	ruby-rack
 BuildRequires:	ruby-rake
-BuildRequires:	ruby-rdoc
+#BuildRequires:	ruby-rdoc
 BuildRequires:	ruby-rspec-core >= 2.12.0
 BuildRequires:	ruby-rspec-expectations >= 2.12.0
 BuildRequires:	ruby-rspec-mocks >= 2.12.0
-BuildRequires:	ruby-rspec_junit_formatter
-BuildRequires:	ruby-sdoc
+BuildRequires:	ruby-rest-client >= 1.0.4
+BuildRequires:	ruby-net-ssh-multi >= 1.1.0
+#BuildRequires:	ruby-rspec_junit_formatter
+#BuildRequires:	ruby-sdoc
 %endif
 Requires:	lsb-release
 Requires:	ruby-erubis
@@ -52,6 +60,11 @@ configuration management to your entire infrastructure.
 
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
+%build
+%if %{with tests}
+rspec spec
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chef.git/commitdiff/55a4545605e6185ff5dc5268221ff8b1d6b7213d



More information about the pld-cvs-commit mailing list