[rubygem-mg/f16] Removed Group fields.

Darryl L. Pierce mcpierce at fedoraproject.org
Wed Dec 26 12:28:27 UTC 2012


commit 65a9b435d2e580755accffb2db9477f2c89baec8
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 5204c56..6c17774 100644
--- a/rubygem-mg.spec
+++ b/rubygem-mg.spec
@@ -6,9 +6,10 @@
 Summary:       Minimalist way to build and publish gems using Rake. Also build tarballs
 Name:          rubygem-%{gemname}
 Version:       0.0.8
-Release:       2%{?dist}
+Release:       2.1%{?dist}
 Group:         Development/Languages
 License:       WTFPL
+
 URL:           http://github.com/sr/mg
 Source0:       http://rubygems.org/gems/%{gemname}-%{version}.gem
 
@@ -31,7 +32,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
 
@@ -41,16 +41,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}%{gemdir}
-gem install --local --install-dir %{buildroot}%{gemdir} \
-            --force --rdoc %{SOURCE0}
+cp -a .%{gem_dir}/* \
+      %{buildroot}%{gemdir}/
 
 
 %files
@@ -66,6 +78,10 @@ gem install --local --install-dir %{buildroot}%{gemdir} \
 
 
 %changelog
+* Tue Dec 25 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.0.8-2.1
+- Removed Group fields.
+- Refactored the specfile to match current Ruby packaging guidelines.
+
 * Mon Oct 17 2011 Darryl L. Pierce <dpierce at redhat.com> - 0.0.8-2
 - Moved README.mkd to the main package
 - Removed trailing period from summary.


More information about the scm-commits mailing list