[rubygem-allison] F-19: Rebuild for ruby 2.0.0
Mamoru Tasaka
mtasaka at fedoraproject.org
Thu Mar 7 05:41:49 UTC 2013
commit 232bb29ad3c1e88b07c34c81d3dbeed3a2e6f3c9
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date: Thu Mar 7 14:41:40 2013 +0900
F-19: Rebuild for ruby 2.0.0
rubygem-allison.spec | 33 +++++++++++++++++----------------
1 files changed, 17 insertions(+), 16 deletions(-)
---
diff --git a/rubygem-allison.spec b/rubygem-allison.spec
index da58767..8b2868b 100644
--- a/rubygem-allison.spec
+++ b/rubygem-allison.spec
@@ -1,5 +1,7 @@
%if 0%{?fedora} >= 17
+%if 0%{?fedora} < 19
%global rubyabi 1.9.1
+%endif
%else
%global rubyabi 1.8
%endif
@@ -9,15 +11,23 @@
Summary: A modern, pretty RDoc template
Name: rubygem-%{gem_name}
Version: 2.0.3
-Release: 9%{?dist}
+Release: 10%{?dist}
Group: Development/Languages
License: AFL
URL: http://github.com/fauna/allison/tree/master
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
+%if 0%{?fedora} >= 19
+Requires: ruby(release)
+BuildRequires: ruby(release)
+%else
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby
BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby
+%endif
+
BuildRequires: rubygems-devel
-Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}-%{release}
@@ -36,14 +46,7 @@ This package contains documentation for %{name}.
%prep
%setup -q -c -T
-mkdir -p .%{gem_dir}
-gem install \
- --local \
- --install-dir $(pwd)%{gem_dir} \
- --force \
- --rdoc \
- -V \
- %{SOURCE0}
+%gem_install -n %{SOURCE0}
pushd .%{gem_instdir}
popd
@@ -54,12 +57,7 @@ popd
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
-cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
-
-# move bin file
-mkdir -p %{buildroot}%{_bindir}
-mv %{buildroot}%{gem_dir}/bin/* %{buildroot}%{_bindir}/
-rm -rf %{buildroot}%{gem_dir}/bin
+cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
# And cleanups
rm -rf %{buildroot}%{gem_dir}/bin
@@ -88,6 +86,9 @@ rm -rf %{buildroot}
%{gem_docdir}/
%changelog
+* Thu Mar 7 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 2.0.3-10
+- F-19: Rebuild for ruby 2.0.0
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list