[packages/ruby-moneta] build with rubygem deps

glen glen at pld-linux.org
Sat Dec 21 19:28:08 CET 2013


commit 5e09b69c7a9fd7340db6b7c4d27255d443443069
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Dec 21 20:27:54 2013 +0200

    build with rubygem deps

 ruby-moneta.spec | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/ruby-moneta.spec b/ruby-moneta.spec
index ef4a572..5b83e7c 100644
--- a/ruby-moneta.spec
+++ b/ruby-moneta.spec
@@ -1,13 +1,13 @@
-%define gemname moneta
+%define pkgname moneta
 Summary:	A unified interface to key/value stores
-Name:		ruby-%{gemname}
+Name:		ruby-%{pkgname}
 Version:	0.6.0
-Release:	0.1
+Release:	1
 License:	MIT
 Group:		Development/Languages
-URL:		http://github.com/wycats/moneta
-Source0:	http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+Source0:	http://gems.rubyforge.org/gems/%{pkgname}-%{version}.gem
 # Source0-md5:	20b115b6feb9d0161b879ad37bf12110
+URL:		http://github.com/wycats/moneta
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
 BuildArch:	noarch
@@ -29,10 +29,17 @@ This package contains documentation for %{name}.
 %prep
 %setup -q
 
+%build
+# write .gemspec
+%__gem_helper spec
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+# install gemspec
+install -d $RPM_BUILD_ROOT%{ruby_specdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -42,9 +49,4 @@ rm -rf $RPM_BUILD_ROOT
 %doc README TODO LICENSE
 %{ruby_vendorlibdir}/moneta.rb
 %{ruby_vendorlibdir}/moneta
-
-
-%if 0
-%files doc
-%defattr(644,root,root,755)
-%endif
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-moneta.git/commitdiff/5e09b69c7a9fd7340db6b7c4d27255d443443069



More information about the pld-cvs-commit mailing list