[rubygem-gem2rpm/f17: 2/3] Fix template for F17 and above. Fix release enumeration logic.

Vít Ondruch vondruch at fedoraproject.org
Thu Feb 9 12:11:19 UTC 2012


commit 7d074486b149d0436da98bab415d992780f483d7
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Feb 9 13:10:32 2012 +0100

    Fix template for F17 and above.
    Fix release enumeration logic.

 .gitignore           |    2 ++
 rubygem-gem2rpm.spec |   19 +++++++++++++------
 sources              |    4 ++--
 3 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ed61a18..ea6d621 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@ gem2rpm-0.6.0.gem
 /gem2rpm-tests.tgz
 /gem2rpm-0.8.0.gem
 /gem2rpm-0.8.0-tests.tgz
+/gem2rpm-0.8.1-tests.tgz
+/gem2rpm-0.8.1.gem
diff --git a/rubygem-gem2rpm.spec b/rubygem-gem2rpm.spec
index fb64442..5bbb7fa 100644
--- a/rubygem-gem2rpm.spec
+++ b/rubygem-gem2rpm.spec
@@ -1,12 +1,15 @@
 # Generated from gem2rpm-0.5.2.gem by gem2rpm -*- rpm-spec -*-
 %global gem_name gem2rpm
 
-%global gemdocdir %{gem_docdir}
+%if 0%{fedora} >= 17
 %global rubyabi 1.9.1
+%else
+%global rubyabi 1.8
+%endif
 
 Summary: Generate rpm specfiles from gems
 Name: rubygem-%{gem_name}
-Version: 0.8.0
+Version: 0.8.1
 Release: 1%{?dist}
 Group: Development/Languages
 License: GPLv2+
@@ -15,8 +18,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 %endif
 URL: https://github.com/lutter/gem2rpm/
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-# git clone https://github.com/lutter/gem2rpm.git && cd gem2rpm && git checkout v0.8.0
-# tar czvf gem2rpm-0.8.0-tests.tgz test/
+# git clone https://github.com/lutter/gem2rpm.git && cd gem2rpm && git checkout v0.8.1
+# tar czvf gem2rpm-0.8.1-tests.tgz test/
 Source1: %{gem_name}-%{version}-tests.tgz
 Requires: ruby(abi) = %{rubyabi}
 Requires: ruby(rubygems)
@@ -79,15 +82,19 @@ popd
 %{gem_libdir}
 %{gem_instdir}/templates
 %doc %{gem_instdir}/LICENSE
-%{gem_cache}
+%exclude %{gem_cache}
 %{gem_spec}
 
 %files doc
-%doc %{gemdocdir}
+%doc %{gem_docdir}
 %doc %{gem_instdir}/README
 %doc %{gem_instdir}/AUTHORS
 
 %changelog
+* Thu Feb 09 2012 Vít Ondruch <vondruch at redhat.com> - 0.8.1-1
+- Fix template for F17 and above.
+- Fix release enumeration logic.
+
 * Fri Jan 23 2012 Vít Ondruch <vondruch at redhat.com> - 0.8.0-1
 - Updated to gem2rpm 0.8.0.
 
diff --git a/sources b/sources
index 7180526..7eb510e 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-db9078078887a606b1c0fca3ad54638c  gem2rpm-0.8.0-tests.tgz
-0fbbffcc6efa671e166a537f973fc24a  gem2rpm-0.8.0.gem
+d7d8bc231dc405bbce00f570c89f530e  gem2rpm-0.8.1-tests.tgz
+d3c9416f225ae944fd195e69e122d46e  gem2rpm-0.8.1.gem


More information about the scm-commits mailing list