[rubygem-addressable/f16] add F16 support to rubygem-addressable
Mo Morsi
mmorsi at fedoraproject.org
Mon Feb 27 15:19:56 UTC 2012
commit 6d890430de3cdb87b4ea18cf1571b98367e0ec0c
Author: Mo Morsi <mmorsi at redhat.com>
Date: Mon Feb 27 10:19:10 2012 -0500
add F16 support to rubygem-addressable
rubygem-addressable.spec | 26 +++++++++++++++++++++++---
1 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/rubygem-addressable.spec b/rubygem-addressable.spec
index d7ae7a7..fbc4721 100644
--- a/rubygem-addressable.spec
+++ b/rubygem-addressable.spec
@@ -1,15 +1,21 @@
# Generated from addressable-2.2.6.gem by gem2rpm -*- rpm-spec -*-
%global gem_name addressable
+%if 0%{?fedora} > 16
+%global rubyabi 1.9.1
+%else
+%global rubyabi 1.8
+%endif
+
Summary: Improved URI/URL Implementation
Name: rubygem-%{gem_name}
Version: 2.2.6
-Release: 3%{?dist}
+Release: 4%{?dist}
Group: Development/Languages
License: ASL 2.0
URL: http://addressable.rubyforge.org/
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-Requires: ruby(abi) = 1.9.1
+Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems)
Requires: rubygem(idn)
@@ -37,13 +43,24 @@ This package contains documentation for %{name}.
%prep
%setup -q -c -T
+pushd ..
+gem unpack %{SOURCE0}
+
+pushd %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+gem build %{gem_name}.gemspec
+popd
+popd
+
+mkdir -p ./%{gem_dir}
gem install \
-V \
--local \
--install-dir .%{gem_dir} \
--force --rdoc \
--ri \
- %{SOURCE0}
+ ../%{gem_name}-%{version}/%{gem_name}-%{version}.gem
%build
@@ -81,6 +98,9 @@ popd
%{gem_docdir}
%changelog
+* Thu Feb 23 2012 Mo Morsi <mmorsi at redhat.com> - 2.2.6-4
+- conditionalize version of ruby dependency
+
* Thu Feb 09 2012 Shawn Starr <shawn.starr at rogers.com> - 2.2.6-3
- Remove patch passes all tests now.
More information about the scm-commits
mailing list