[rubygem-mg/f17] Removed Group fields.

Darryl L. Pierce mcpierce at fedoraproject.org
Tue Dec 25 12:44:45 UTC 2012


commit 2828182764316a6df9ea2863e818fb39eedde8b9
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Tue Dec 25 07:19:42 2012 -0500

    Removed Group fields.
    
    - Refactored the specfile to match current Ruby packaging guidelines.

 rubygem-mg.spec |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)
---
diff --git a/rubygem-mg.spec b/rubygem-mg.spec
index 3760ca9..49775ea 100644
--- a/rubygem-mg.spec
+++ b/rubygem-mg.spec
@@ -4,9 +4,10 @@
 Summary:       Minimalist way to build and publish gems using Rake. Also build tarballs
 Name:          rubygem-%{gem_name}
 Version:       0.0.8
-Release:       4%{?dist}
+Release:       4.1%{?dist}
 Group:         Development/Languages
 License:       WTFPL
+
 URL:           http://github.com/sr/mg
 Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
 
@@ -29,7 +30,6 @@ Minimalist way to build and publish gems using Rake. Also build tarballs.
 
 %package doc
 Summary:   Documentation for %{name}
-Group:     Documentation
 Requires:  %{name} = %{version}-%{release}
 BuildArch: noarch
 
@@ -39,16 +39,28 @@ 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
-rm -rf %{buildroot}
 mkdir -p %{buildroot}%{gem_dir}
-gem install --local --install-dir %{buildroot}%{gem_dir} \
-            --force --rdoc %{SOURCE0}
+cp -a .%{gem_dir}/* \
+      %{buildroot}%{gem_dir}/
 
 
 %files
@@ -64,6 +76,10 @@ gem install --local --install-dir %{buildroot}%{gem_dir} \
 
 
 %changelog
+* Tue Dec 25 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.0.8-4.1
+- Removed Group fields.
+- Refactored the specfile to match current Ruby packaging guidelines.
+
 * Wed Feb 08 2012 Vít Ondruch <vondruch at redhat.com> - 0.0.8-4
 - Rebuilt for Ruby 1.9.3.
 


More information about the scm-commits mailing list