From 71b231b7a7336ebe914a09d50c6c7e95ce7ef288 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Mar 13 2013 13:42:24 +0000 Subject: update for ruby2 guidelines (f19+) --- 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 4.10.1-2 +- update for ruby2 guidelines (f19+) + * Sat Mar 02 2013 Rex Dieter - 4.10.1-1 - 4.10.1