[rubygem-cinch] Cleaned up the specfile to match current Ruby packaging guidelines.

Darryl L. Pierce mcpierce at fedoraproject.org
Thu Dec 20 15:30:36 UTC 2012


commit 78555b3ce57bae9fb9be14aa3d0a9633d5058a5d
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Thu Dec 20 10:28:41 2012 -0500

    Cleaned up the specfile to match current Ruby packaging guidelines.
    
    - Changed URL to point to Dominik Honnef's project page on his blog.

 rubygem-cinch.spec |   35 ++++++++++++++++++++++++-----------
 1 files changed, 24 insertions(+), 11 deletions(-)
---
diff --git a/rubygem-cinch.spec b/rubygem-cinch.spec
index fc0df35..42877e5 100644
--- a/rubygem-cinch.spec
+++ b/rubygem-cinch.spec
@@ -5,20 +5,22 @@
 Summary:       An IRC Bot Building Framework
 Name:          rubygem-%{gem_name}
 Version:       2.0.3
-Release:       3%{?dist}
+Release:       3.1%{?dist}
 License:       MIT
-URL:           http://cinchrb.org
-Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
-
-Provides:      rubygem(%{gem_name}) = %{version}
 
-Requires:      ruby(abi) = %{rubyabi}
-Requires:      ruby(rubygems)
+URL:           http://dominik.honnef.co/projects/cinch/
+Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
 
 BuildArch:     noarch
 
+BuildRequires: ruby(abi) = %{rubyabi}
 BuildRequires: rubygems-devel
 
+Requires:      ruby(abi) = %{rubyabi}
+Requires:      rubygems
+
+Provides:      rubygem(%{gem_name}) = %{version}
+
 
 %description
 A simple, friendly DSL for creating IRC bots.
@@ -35,13 +37,20 @@ BuildArch: noarch
 
 
 %prep
-%setup -q -c -T
-mkdir -p .%{gem_dir}
-gem install --local --install-dir .%{gem_dir} \
-            --force %{SOURCE0}
+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 %{SOURCE0}
 
 
 %install
@@ -66,6 +75,10 @@ rm %{buildroot}%{gem_instdir}/.yardopts
 %doc %{gem_instdir}/README.md
 
 %changelog
+* Thu Dec 20 2012 Darryl L. Pierce <dpierce at redhat.com> - 2.0.3-3.1
+- Cleaned up the specfile to match current Ruby packaging guidelines.
+- Changed URL to point to Dominik Honnef's project page on his blog.
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list