summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-02-05 23:42:07 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-02-05 23:42:16 -0700
commit6f6c0a7fa1d2434da6c0a8155937accaccdcdba9 (patch)
tree459ff9b533430a2473cb7018a4898ed35e58d43f
parent3585768791f75a38cbe455a9ab168a7f2e7fa12d (diff)
downloadrubygem-ruby-yadis-master.zip
rubygem-ruby-yadis-master.tar.gz
rubygem-ruby-yadis-master.tar.xz
RHEL 6 compatibilityHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--rubygem-ruby-yadis.spec25
-rw-r--r--sources1
3 files changed, 25 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..82d5364
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/ruby-yadis-0.3.4.gem
diff --git a/rubygem-ruby-yadis.spec b/rubygem-ruby-yadis.spec
index f340b37..54a60b5 100644
--- a/rubygem-ruby-yadis.spec
+++ b/rubygem-ruby-yadis.spec
@@ -1,11 +1,15 @@
# Generated from ruby-yadis-0.3.4.gem by gem2rpm -*- rpm-spec -*-
%global gem_name ruby-yadis
+%if 0%{?el6}
+%global rubyabi 1.8
+%else
%global rubyabi 1.9.1
+%endif
Summary: A library for performing Yadis service discovery
Name: rubygem-%{gem_name}
Version: 0.3.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Development/Languages
License: ASL 2.0
URL: http://www.openidenabled.com/yadis/libraries/ruby
@@ -13,10 +17,24 @@ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems)
BuildRequires: ruby(abi) = %{rubyabi}
-BuildRequires: rubygems-devel
+%if 0%{?fedora}
+BuildRequires: rubygems-devel
+%else
+BuildRequires: ruby(rubygems)
+%endif
BuildArch: noarch
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"] ')}
+
%description
A library for performing Yadis service discovery
@@ -72,5 +90,8 @@ cp -a .%{gem_dir}/* \
%{gem_instdir}/examples
%changelog
+* Tue Feb 05 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.3.4-2
+- RHEL 6 compatibility
+
* Fri Aug 03 2012 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.3.4-1
- Initial package, created by gem2rpm 0.8.1
diff --git a/sources b/sources
new file mode 100644
index 0000000..91af6e6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2d011bbc171992ced63e566b9891c38f ruby-yadis-0.3.4.gem