[rubygem-systemu] Upgrade to 2.5.2. Write spec so it can be used across Fedora and EPEL.

Julian C. Dunn jdunn at fedoraproject.org
Thu Dec 6 03:20:28 UTC 2012


commit 3e9c009fcc031122c1c4287e2e928dfd078d5d55
Author: Julian C. Dunn <jdunn at aquezada.com>
Date:   Wed Dec 5 22:19:40 2012 -0500

    Upgrade to 2.5.2. Write spec so it can be used across Fedora and EPEL.

 rubygem-systemu.spec |   36 +++++++++++++++++++++++++++++-------
 1 files changed, 29 insertions(+), 7 deletions(-)
---
diff --git a/rubygem-systemu.spec b/rubygem-systemu.spec
index 22eabe4..2db24c1 100644
--- a/rubygem-systemu.spec
+++ b/rubygem-systemu.spec
@@ -1,8 +1,24 @@
+# -*- rpm-spec -*-
 %global gem_name systemu
 
+# EPEL6 lacks rubygems-devel package that provides these macros
+%if %{?el6}0
+%global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
+%global gem_libdir %{gem_instdir}/lib
+%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
+%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
+%endif
+
+%if %{?el6}0 || %{?fc16}0
+%global rubyabi 1.8
+%else
+%global rubyabi 1.9.1
+%endif
+
 Name:           rubygem-%{gem_name}
-Version:        2.4.1
-Release:        5%{?dist}
+Version:        2.5.2
+Release:        1%{?dist}
 Summary:        Universal capture of stdout and stderr and handling of child process pid
 Group:		Development/Libraries
 
@@ -14,11 +30,13 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  ruby
-BuildRequires: rubygems-devel
-
-Requires:       ruby(abi) = 1.9.1
-Requires: ruby(rubygems)
+Requires:	ruby 
+Requires:	ruby(abi) = %{rubyabi}
+Requires:	ruby(rubygems) 
+BuildRequires:	ruby 
+BuildRequires:	ruby(abi) = %{rubyabi}
+BuildRequires:	ruby(rubygems)
+%{!?el6:BuildRequires: rubygems-devel}
 
 Provides:       rubygem(%{gem_name}) = %{version}-%{release}
 
@@ -44,6 +62,10 @@ rm -rf %{buildroot}
 %{gem_spec}
 
 %changelog
+* Tue Nov 04 2012 Julian C. Dunn <jdunn at aquezada.com> - 2.5.2-1
+- Upgrade to 2.5.2.
+- Unify spec so it can be built from the same one across Fedora and EPEL.
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.4.1-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list