[packages/ruby-method_source: 2/2] up to 0.8.2, package gemspec
glen
glen at pld-linux.org
Wed Sep 25 20:11:20 CEST 2013
commit 0c2e440cd20db831fe25255cd4ef28dbb502a875
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Sep 25 21:10:52 2013 +0300
up to 0.8.2, package gemspec
ruby-method_source.spec | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ruby-method_source.spec b/ruby-method_source.spec
index 0dd4c29..48b211f 100644
--- a/ruby-method_source.spec
+++ b/ruby-method_source.spec
@@ -5,12 +5,12 @@
%define pkgname method_source
Summary: Retrieve the source code for a method
Name: ruby-%{pkgname}
-Version: 0.8.1
+Version: 0.8.2
Release: 1
License: MIT
Group: Development/Languages
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5: -
+# Source0-md5: 106c9cae069647807ba1c795b5b9334c
URL: http://banisterfiend.wordpress.com/
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
@@ -38,14 +38,18 @@ Documentation for %{name}
%setup -q -n %{pkgname}-%{version}
%build
+# write .gemspec
+%__gem_helper spec
+
%if %{with tests}
bacon test/test.rb
%endif
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -55,3 +59,4 @@ rm -rf $RPM_BUILD_ROOT
%doc README.markdown LICENSE
%{ruby_vendorlibdir}/method_source.rb
%{ruby_vendorlibdir}/method_source
+%{ruby_specdir}/method_source-%{version}.gemspec
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-method_source.git/commitdiff/0c2e440cd20db831fe25255cd4ef28dbb502a875
More information about the pld-cvs-commit
mailing list