[packages/ruby-rest-client/v1.6.x] package gemspec
glen
glen at pld-linux.org
Mon Feb 9 11:01:22 CET 2015
commit 4412d15b6a8487f1d4355cc52c031c30cd96d587
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Feb 9 12:01:01 2015 +0200
package gemspec
ruby-rest-client.spec | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ruby-rest-client.spec b/ruby-rest-client.spec
index b69f502..25e1eeb 100644
--- a/ruby-rest-client.spec
+++ b/ruby-rest-client.spec
@@ -6,12 +6,12 @@
Summary: Simple REST client for Ruby
Name: ruby-%{gem_name}
Version: 1.6.7
-Release: 2
+Release: 3
License: MIT
Group: Development/Languages
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
# Source0-md5: 1f2d6b3b6ceb88e3ee2b327f5e508c22
-URL: http://github.com/archiloque/rest-client
+URL: https://github.com/rest-client/rest-client
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
BuildRequires: sed >= 4.0
@@ -35,6 +35,9 @@ microframework style of specifying actions: get, put, post, delete.
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
%build
+# write .gemspec
+%__gem_helper spec
+
%if %{with tests}
# TODO: According to comment in %%{PATCH0}, at least one test does not passes on
# R1.9.3. I gon't go to investigate further ATM.
@@ -43,9 +46,10 @@ rspec spec | grep -e "188 examples, [34] failures"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -p %{gem_name}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -58,3 +62,4 @@ rm -rf $RPM_BUILD_ROOT
%{ruby_vendorlibdir}/rest_client.rb
%{ruby_vendorlibdir}/restclient.rb
%{ruby_vendorlibdir}/restclient
+%{ruby_specdir}/%{gem_name}-%{version}.gemspec
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-rest-client.git/commitdiff/4412d15b6a8487f1d4355cc52c031c30cd96d587
More information about the pld-cvs-commit
mailing list