[packages/ruby-ffi] build with rubygems provides
glen
glen at pld-linux.org
Mon Jun 24 11:59:00 CEST 2013
commit 7f59e59cd2ab11719370ff14a20b285fa2564a83
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jun 24 12:58:57 2013 +0300
build with rubygems provides
ruby-ffi.spec | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/ruby-ffi.spec b/ruby-ffi.spec
index 90db2d6..e714e0a 100644
--- a/ruby-ffi.spec
+++ b/ruby-ffi.spec
@@ -1,11 +1,11 @@
-%define gem_name ffi
+%define pkgname ffi
Summary: FFI Extensions for Ruby
-Name: ruby-%{gem_name}
+Name: ruby-%{pkgname}
Version: 1.4.0
-Release: 1
+Release: 2
License: LGPL v3
Group: Development/Languages
-Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Source0: http://rubygems.org/gems/%{pkgname}-%{version}.gem
# Source0-md5: 5ce1c04c23267cb550250f6d94e03c12
URL: http://wiki.github.com/ffi/ffi
BuildRequires: libffi-devel
@@ -23,7 +23,7 @@ on Ruby and JRuby. Discover why should you write your next extension
using Ruby-FFI here: <http://wiki.github.com/ffi/ffi/why-use-ffi>.
%prep
-%setup -q -n %{gem_name}-%{version}
+%setup -q -n %{pkgname}-%{version}
# ext build
cp -p %{_datadir}/setup.rb .
@@ -42,9 +42,10 @@ rspec spec
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir},%{ruby_specdir}}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
install -p ext/ffi_c/ffi_c.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}
+cp -p %{pkgname}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}/%{pkgname}-%{version}.gemspec
%clean
rm -rf $RPM_BUILD_ROOT
@@ -55,3 +56,4 @@ rm -rf $RPM_BUILD_ROOT
%{ruby_vendorlibdir}/ffi.rb
%{ruby_vendorlibdir}/ffi
%attr(755,root,root) %{ruby_vendorarchdir}/ffi_c.so
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-ffi.git/commitdiff/7f59e59cd2ab11719370ff14a20b285fa2564a83
More information about the pld-cvs-commit
mailing list