[rubygem-wirble] Updated the specfile to reflect current Ruby packaging guidelines.

Darryl L. Pierce mcpierce at fedoraproject.org
Wed Dec 26 15:05:44 UTC 2012


commit 2add77d40c5b21ea0cd2c1cec0c668bba4f91c1a
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Wed Dec 26 10:05:37 2012 -0500

    Updated the specfile to reflect current Ruby packaging guidelines.

 rubygem-wirble.spec |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)
---
diff --git a/rubygem-wirble.spec b/rubygem-wirble.spec
index e3d675d..de8303b 100644
--- a/rubygem-wirble.spec
+++ b/rubygem-wirble.spec
@@ -1,14 +1,12 @@
-# Generated from wirble-0.1.3.gem by gem2rpm -*- rpm-spec -*-
 %global gem_name wirble
-
 %global rubyabi 1.9.1
 
 Summary:       Handful of common Irb features, made easy
 Name:          rubygem-%{gem_name}
 Version:       0.1.3
-Release:       6%{?dist}
-Group:         Development/Languages
+Release:       6.1%{?dist}
 License:       MIT and LGPLv2
+
 URL:           http://pablotron.org/software/wirble/
 Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
 
@@ -19,7 +17,6 @@ BuildRequires: rubygems-devel
 Requires:      ruby(abi) = %{rubyabi}
 Requires:      ruby(rubygems)
 
-Provides:      rubygem(%{gem_name}) = %{version}
 
 %description
 Handful of common Irb features, made easy.
@@ -27,7 +24,6 @@ Handful of common Irb features, made easy.
 
 %package doc
 Summary:   Documentation for %{name}
-Group:     Documentation
 Requires:  %{name} = %{version}-%{release}
 BuildArch: noarch
 
@@ -37,14 +33,27 @@ Documentation for %{name}
 
 
 %prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+# apply any patches here
 
 
 %build
+gem build %{gem_name}.gemspec
+
+gem install --local \
+            --install-dir .%{gem_dir} \
+            --force \
+            --rdoc \
+            %{SOURCE0}
 
 
 %install
-gem install --local --install-dir %{buildroot}%{gem_dir} \
-            --force --rdoc %{SOURCE0}
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
 
 
 %files
@@ -66,6 +75,9 @@ gem install --local --install-dir %{buildroot}%{gem_dir} \
 
 
 %changelog
+* Wed Dec 26 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.1.3-6.1
+- Updated the specfile to reflect current Ruby packaging guidelines.
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.3-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list