[ruby-qt] update for ruby2 guidelines (f19+)

Rex Dieter rdieter at fedoraproject.org
Wed Mar 13 13:42:46 UTC 2013


commit 71b231b7a7336ebe914a09d50c6c7e95ce7ef288
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Wed Mar 13 08:42:24 2013 -0500

    update for ruby2 guidelines (f19+)

 ruby-qt.spec |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/ruby-qt.spec b/ruby-qt.spec
index c562f26..7931830 100644
--- a/ruby-qt.spec
+++ b/ruby-qt.spec
@@ -1,6 +1,13 @@
-%if 0%{?fedora} > 16
+
+%if 0%{?fedora} > 18
+%global ruby_release 1
+%endif
+
+%if 0%{?fedora} == 17 || 0%{?fedora} == 18
 %global ruby_abi 1.9.1
-%else
+%endif
+
+%if 0%{?fedora} < 17
 %global ruby_abi 1.8
 %global ruby_vendorlibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')
 %global ruby_vendorarchdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')
@@ -9,7 +16,7 @@
 Summary: Ruby bindings for Qt 4
 Name:    ruby-qt
 Version: 4.10.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: LGPLv2+
 URL:     https://projects.kde.org/projects/kde/kdebindings/ruby/qtruby
@@ -39,6 +46,7 @@ Provides: qtruby = %{version}-%{release}
 Provides: qtruby%{?_isa} = %{version}-%{release}
 
 %{?ruby_abi:Requires: ruby(abi) = %{ruby_abi}}
+%{?ruby_release:Requires: ruby(release)}
 %{?_qt4:Requires: qt4%{?_isa} >= %{_qt4_version}}
 Requires: smokeqt%{?_isa} >= %{version}
 
@@ -111,11 +119,13 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 %{_includedir}/qtruby/
 
 %files examples
-%defattr(-, root, root, 0755)
 %doc examples
 
 
 %changelog
+* Wed Mar 13 2013 Rex Dieter <rdieter at fedoraproject.org> 4.10.1-2
+- update for ruby2 guidelines (f19+)
+
 * Sat Mar 02 2013 Rex Dieter <rdieter at fedoraproject.org> - 4.10.1-1
 - 4.10.1
 


More information about the scm-commits mailing list