SPECS: ruby-ZenTest.spec - 3.0.0

aredridel aredridel at pld-linux.org
Sun Dec 17 21:17:42 CET 2006


Author: aredridel                    Date: Sun Dec 17 20:17:42 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- 3.0.0

---- Files affected:
SPECS:
   ruby-ZenTest.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/ruby-ZenTest.spec
diff -u SPECS/ruby-ZenTest.spec:1.8 SPECS/ruby-ZenTest.spec:1.9
--- SPECS/ruby-ZenTest.spec:1.8	Sat Dec 31 11:36:33 2005
+++ SPECS/ruby-ZenTest.spec	Sun Dec 17 21:17:37 2006
@@ -2,14 +2,17 @@
 Summary:	Ruby Testing framework
 Summary(pl):	Szkielet do testów dla języka Ruby
 Name:		ruby-ZenTest
-Version:	2.3.0
-Release:	2
+Version:	3.0.0
+Release:	1
 License:	GPL
 Group:		Development/Languages
-Source0:	http://rubyforge.org/frs/download.php/1944/ZenTest-%{version}.tar.gz
-# Source0-md5:	f94eed12075025c3e7090520b95e8eab
+Source0:	http://rubyforge.org/frs/download.php/9048/ZenTest-%{version}.tar.gz
+# Source0-md5:	cef297906ffad7e024737727df9ea0fe
+Patch0:	%{name}-nogems.patch
+URL: http://www.zenspider.com/ZSS/Products/ZenTest/
 BuildRequires:	rpmbuild(macros) >= 1.277
 BuildRequires:	ruby-modules
+BuildRequires:	rake
 BuildRequires:	sed >= 4.0
 %{?ruby_mod_ver_requires_eq}
 BuildArch:	noarch
@@ -38,17 +41,19 @@
 
 %prep
 %setup -q -n ZenTest-%{version}
-find . -name '*.rb' | xargs sed -i -e '1s,#!.*local/bin/ruby#!%{_bindir}/ruby#'
+find . -name '*.rb' | xargs sed -i -e '1s,#!.*local/bin/ruby,#!%{_bindir}/ruby,'
+find bin -type f | xargs sed -i -e '1s,#!.*local/bin/ruby,#!%{_bindir}/ruby,'
+%patch0 -p1
 
 %build
-%{__make}
+rake
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_rubylibdir}}
 
-install ZenTest.rb $RPM_BUILD_ROOT%{_bindir}/ZenTest
-install unit_diff.rb $RPM_BUILD_ROOT%{_bindir}/unit_diff
+install bin/* $RPM_BUILD_ROOT%{_bindir}
+install lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -56,6 +61,7 @@
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
+%{ruby_rubylibdir}/*
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -63,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2006/12/17 20:17:37  aredridel
+- 3.0.0
+
 Revision 1.8  2005/12/31 10:36:33  twittner
 - change %%ruby_mod_ver_requires_eq to %%{?ruby_mod_ver_requires_eq} -
   expand this macro only if defined to avoid parse error when appropriate
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ruby-ZenTest.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list