[rubygem-gem2rpm] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 Update to gem2rpm 0.9.1.
Vít Ondruch
vondruch at fedoraproject.org
Tue Apr 23 07:37:15 UTC 2013
commit 43ac80349de78d52e5cccb3887e46afc593e53d6
Author: Vít Ondruch <vondruch at redhat.com>
Date: Tue Apr 23 09:29:25 2013 +0200
Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
Update to gem2rpm 0.9.1.
.gitignore | 2 ++
rubygem-gem2rpm.spec | 36 ++++++++++++++++--------------------
sources | 4 ++--
3 files changed, 20 insertions(+), 22 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ea6d621..6c38865 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ gem2rpm-0.6.0.gem
/gem2rpm-0.8.0-tests.tgz
/gem2rpm-0.8.1-tests.tgz
/gem2rpm-0.8.1.gem
+/gem2rpm-0.9.1-tests.tgz
+/gem2rpm-0.9.1.gem
diff --git a/rubygem-gem2rpm.spec b/rubygem-gem2rpm.spec
index 59b80bb..0feb5be 100644
--- a/rubygem-gem2rpm.spec
+++ b/rubygem-gem2rpm.spec
@@ -1,31 +1,22 @@
# Generated from gem2rpm-0.5.2.gem by gem2rpm -*- rpm-spec -*-
%global gem_name gem2rpm
-%if 0%{fedora} >= 17
-%global rubyabi 1.9.1
-%else
-%global rubyabi 1.8
-%endif
-
Summary: Generate rpm specfiles from gems
Name: rubygem-%{gem_name}
-Version: 0.8.1
-Release: 3%{?dist}
+Version: 0.9.1
+Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+
-%if 0%{?rhel} <= 5
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-%endif
URL: https://github.com/lutter/gem2rpm/
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-# git clone https://github.com/lutter/gem2rpm.git && cd gem2rpm && git checkout v0.8.1
-# tar czvf gem2rpm-0.8.1-tests.tgz test/
+# git clone https://github.com/lutter/gem2rpm.git && cd gem2rpm && git checkout v0.9.1
+# tar czvf gem2rpm-0.9.1-tests.tgz test/
Source1: %{gem_name}-%{version}-tests.tgz
-Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(release)
Requires: ruby(rubygems)
Requires: ruby
Requires: /usr/bin/rpmdev-packager
-BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: /usr/bin/rpmdev-packager
@@ -50,10 +41,7 @@ Documentation for %{name}.
%prep
%setup -q -c -T
-mkdir -p .%{gem_dir}
-gem install --local --install-dir .%{gem_dir} \
- --bindir .%{_bindir} \
- --force %{SOURCE0}
+%gem_install -n %{SOURCE0}
%build
@@ -70,8 +58,12 @@ cp -a .%{_bindir}/* \
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check
-tar xzvf %{SOURCE1} -C .%{gem_instdir}
pushd .%{gem_instdir}
+tar xzvf %{SOURCE1}
+
+# Disable this test, since it needs online access (see the comment on line 22).
+sed -i "23,25 d" test/test_gem2rpm.rb
+
testrb -Itest test/
popd
@@ -91,6 +83,10 @@ popd
%doc %{gem_instdir}/AUTHORS
%changelog
+* Mon Apr 22 2013 Vít Ondruch <vondruch at redhat.com> - 0.9.1-1
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+- Update to gem2rpm 0.9.1.
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
diff --git a/sources b/sources
index 7eb510e..b9b0f7f 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-d7d8bc231dc405bbce00f570c89f530e gem2rpm-0.8.1-tests.tgz
-d3c9416f225ae944fd195e69e122d46e gem2rpm-0.8.1.gem
+6b04466dd9f78a323338a288821ffa97 gem2rpm-0.9.1-tests.tgz
+75bbb3f3e5adbec0d92c149815e9628e gem2rpm-0.9.1.gem
More information about the scm-commits
mailing list