summaryrefslogtreecommitdiffstats
path: root/rubygem-typhoeus.spec
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-02-16 23:02:01 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-02-16 23:02:01 -0700
commite8d85f01b57222d4f4e45aabd081a1220e9b497e (patch)
tree96ad8d0dfcb2ef4e03ba2942ec2a89e1d3ea662d /rubygem-typhoeus.spec
parent5ee087e032a25cee34b6b8f26c7e7bcaaa6cc6e2 (diff)
downloadrubygem-typhoeus-gitorious.zip
rubygem-typhoeus-gitorious.tar.gz
rubygem-typhoeus-gitorious.tar.xz
RHEL 6 compatibilitygitorious
Diffstat (limited to 'rubygem-typhoeus.spec')
-rw-r--r--rubygem-typhoeus.spec25
1 files changed, 24 insertions, 1 deletions
diff --git a/rubygem-typhoeus.spec b/rubygem-typhoeus.spec
index 3c87c0e..c490979 100644
--- a/rubygem-typhoeus.spec
+++ b/rubygem-typhoeus.spec
@@ -1,11 +1,15 @@
%global gem_name typhoeus
+%if 0%{?el6}
+%global rubyabi 1.8
+%else
%global rubyabi 1.9.1
+%endif
Summary: A library for interacting with web services at blinding speed
Name: rubygem-%{gem_name}
Version: 0.3.3
-Release: 4%{?dist}
+Release: 5%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/pauldix/typhoeus
@@ -14,7 +18,11 @@ Requires: ruby(rubygems)
Requires: ruby(abi) = %{rubyabi}
Requires: rubygem(mime-types)
BuildRequires: ruby(abi) = %{rubyabi}
+%if 0%{?fedora}
BuildRequires: rubygems-devel
+%else
+BuildRequires: ruby(rubygems)
+%endif
# Use rspec-core until rspec are not migrated to RSpec 2.x
BuildRequires: rubygem(rspec-core)
BuildRequires: rubygem(json)
@@ -24,6 +32,18 @@ BuildRequires: ruby-devel
BuildRequires: libcurl-devel
Provides: rubygem(%{gem_name}) = %{version}
+# macros for RHEL6 compatibility:
+%{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)}
+%{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}}
+%{!?gem_libdir: %global gem_libdir %{gem_instdir}/lib}
+%{!?gem_cache: %global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem}
+%{!?gem_spec: %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec}
+%{!?gem_docdir: %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}}
+%{!?gem_extdir: %global gem_extdir %{_libdir}/gems/exts/%{gem_name}-%{version}}
+%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"] ')}
+%{!?ruby_vendorarchdir: %global ruby_vendorarchdir %(ruby -rrbconfig -e 'puts Config::CONFIG["vendorarchdir"] ')}
+
+
%description
Like a modern code version of the mythical beast with 100 serpent heads,
Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling
@@ -90,6 +110,9 @@ popd
%doc %{gem_docdir}
%changelog
+* Wed Feb 06 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.3.3-5
+- RHEL 6 compatibility
+
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild