[packages/ruby-mocha] up to 0.13.1

glen glen at pld-linux.org
Sun Apr 14 14:40:49 CEST 2013


commit e8cd322267188abd5820ddc2bb09a1ad7c96c1a8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Apr 14 15:40:41 2013 +0300

    up to 0.13.1

 ruby-mocha.spec | 43 +++++++++++++++++++------------------------
 1 file changed, 19 insertions(+), 24 deletions(-)
---
diff --git a/ruby-mocha.spec b/ruby-mocha.spec
index 96bd242..a57cb5c 100644
--- a/ruby-mocha.spec
+++ b/ruby-mocha.spec
@@ -1,27 +1,22 @@
 %define pkgname mocha
 Summary:	Mocking and stubbing library with JMock/SchMock syntax
 Name:		ruby-%{pkgname}
-Version:	0.9.8
+Version:	0.13.1
 Release:	1
 License:	MIT/Ruby License
-Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5:	44a2b93f5ab7d48f69de16dab83470ab
 Group:		Development/Languages
 URL:		http://mocha.rubyforge.org/
-BuildRequires:	rpmbuild(macros) >= 1.484
-BuildRequires:	ruby >= 1:1.8.6
-BuildRequires:	ruby-modules
-%{?ruby_mod_ver_requires_eq}
-#BuildArch:	noarch
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	bfcb1a14b902d9e77e8b341b9a3ac186
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+Requires:	ruby-metaclass
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# nothing to be placed there. we're not noarch only because of ruby packaging
-%define		_enable_debug_packages	0
-
 %description
-Mocking and stubbing library with JMock/SchMock syntax,
-which allows mocking and stubbing of methods on real
-(non-mock) classes. 
+Mocking and stubbing library with JMock/SchMock syntax, which allows
+mocking and stubbing of methods on real (non-mock) classes.
 
 %package rdoc
 Summary:	HTML documentation for %{pkgname}
@@ -48,32 +43,32 @@ ri documentation for %{pkgname}.
 Dokumentacji w formacie ri dla %{pkgname}.
 
 %prep
-%setup -q -c
-%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
-find -newer README  -o -print | xargs touch --reference %{SOURCE0}
+%setup -q -n %{pkgname}-%{version}
 
 %build
 rdoc --ri --op ri lib
 rdoc --op rdoc lib
-rm -r ri/{Array,Class,Date,Hash,MiniTest,Module,Object,String,Test,Time}
+rm -r ri/{Array,Date,Hash,Object,String,Time}
 rm ri/created.rid
+rm ri/cache.ri
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
 
-cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
-cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+cp -a rdoc/* $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README RELEASE
-%{ruby_rubylibdir}/*.rb
-%{ruby_rubylibdir}/%{pkgname}
+%doc README.md RELEASE.md
+%{ruby_vendorlibdir}/mocha.rb
+%{ruby_vendorlibdir}/mocha
+%{ruby_vendorlibdir}/mocha_standalone.rb
 
 %files rdoc
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-mocha.git/commitdiff/e8cd322267188abd5820ddc2bb09a1ad7c96c1a8



More information about the pld-cvs-commit mailing list