[rubygem-state_machine] Minor spec tweaks/cleaning

Guillermo Gómez gomix at fedoraproject.org
Sun Mar 24 01:32:43 UTC 2013


commit 2e82ab2531e753d5183420acff8589313878f292
Author: Guillermo Gómez <gomix at fedoraproject.org>
Date:   Sat Mar 23 21:02:26 2013 -0430

    Minor spec tweaks/cleaning

 rubygem-state_machine.spec |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/rubygem-state_machine.spec b/rubygem-state_machine.spec
index ea670b7..4a3002e 100644
--- a/rubygem-state_machine.spec
+++ b/rubygem-state_machine.spec
@@ -1,10 +1,19 @@
 %global gem_name state_machine
 
+%global rubyabi 1.9.1
+  
+%if 0%{?fedora} >= 17
+  %global rubyabi 1.9.1
+%endif
+
+%if 0%{?fedora} >= 19
+  %global rubyabi 2.0.0
+%endif
 
 Summary:       Adds support for creating state machines for attributes on any Ruby class
 Name:          rubygem-%{gem_name}
 Version:       1.1.2
-Release:       8%{?dist}
+Release:       9%{?dist}
 Group:         Development/Languages
 License:       MIT
 URL:           http://www.pluginaweek.org
@@ -13,7 +22,9 @@ BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:      ruby(release)
 Requires:      ruby(rubygems)
 Requires:      graphviz-ruby
-BuildRequires: rubygems-devel, rubygem-rake, graphviz-ruby
+BuildRequires: rubygems-devel
+BuildRequires: rubygem-rake
+BuildRequires: graphviz-ruby
 BuildRequires: ruby-irb
 BuildArch:     noarch
 Provides:      rubygem(%{gem_name}) = %{version}
@@ -41,6 +52,7 @@ gem unpack %{SOURCE0}
 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
 %build
+mkdir -p .%{gem_dir}
 
 # Create the gem as gem install only works on a gem file
 gem build %{gem_name}.gemspec
@@ -94,6 +106,9 @@ rm -rf %{buildroot}
 %doc %{gem_instdir}/Rakefile
 
 %changelog
+* Sat Mar 23 2013 Guillermo Gómez <guillermo.gomez at gmail.com> - 1.1.2-9
+- Minor spec adjustments for Ruby 2.0.0
+
 * Mon Mar 18 2013 Bohuslav Kabrda <bkabrda at redhat.com> - 1.1.2-8
 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
 


More information about the scm-commits mailing list