[packages/ruby-test_declarative] add tests, package doc

glen glen at pld-linux.org
Wed Jan 1 19:35:42 CET 2014


commit 8f8381870166739436a38ca2890c1e375e7c5cd7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jan 1 20:35:33 2014 +0200

    add tests, package doc

 ruby-test_declarative.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/ruby-test_declarative.spec b/ruby-test_declarative.spec
index 84bc24a..7df0cef 100644
--- a/ruby-test_declarative.spec
+++ b/ruby-test_declarative.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
 %define	pkgname	test_declarative
 Summary:	Simply adds a declarative test method syntax to test/unit
 Name:		ruby-%{pkgname}
@@ -10,7 +14,6 @@ Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
 URL:		http://github.com/svenfuchs/test_declarative
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
-Requires:	ruby-rubygems >= 1.3.6
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -23,6 +26,10 @@ Simply adds a declarative test method syntax to test/unit.
 %build
 %__gem_helper spec
 
+%if %{with tests}
+testrb test
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
@@ -34,6 +41,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc README.textile MIT-LICENSE
 %{ruby_vendorlibdir}/%{pkgname}.rb
 %{ruby_vendorlibdir}/%{pkgname}
 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-test_declarative.git/commitdiff/8f8381870166739436a38ca2890c1e375e7c5cd7



More information about the pld-cvs-commit mailing list