[rubygem-term-ansicolor] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

Vít Ondruch vondruch at fedoraproject.org
Mon Feb 25 08:21:22 UTC 2013


commit 7ecf5e66ed75b42d0dea38b69c3e3fd80ea8a85d
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Sat Feb 23 13:46:08 2013 +0100

    Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

 rubygem-term-ansicolor.spec |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/rubygem-term-ansicolor.spec b/rubygem-term-ansicolor.spec
index 129daa5..0198e73 100644
--- a/rubygem-term-ansicolor.spec
+++ b/rubygem-term-ansicolor.spec
@@ -3,13 +3,13 @@
 Summary:        Ruby library that colors strings using ANSI escape sequences
 Name:           rubygem-%{gem_name}
 Version:        1.0.7
-Release:        5%{?dist}
+Release:        6%{?dist}
 Group:          Development/Languages
 License:        GPLv2
 URL:            http://term-ansicolor.rubyforge.org
 Source0:        http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:       ruby(abi) = 1.9.1
+Requires:       ruby(release)
 Requires:       ruby(rubygems)
 BuildRequires:  rubygems-devel
 BuildRequires:  rubygem(minitest)
@@ -21,16 +21,24 @@ Small Ruby library that colors strings using ANSI escape sequences.
 
 
 %prep
+%setup -q -c  -T
+%gem_install -n %{SOURCE0}
 
 
 %build
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{gem_dir}
-gem install --local --install-dir $RPM_BUILD_ROOT%{gem_dir} \
-        --force --rdoc %{SOURCE0}
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+# removing cdiff and decolor due to file conflict with colordiff package
+# mkdir -p %{buildroot}%{_bindir}
+# cp -pa .%{_bindir}/* \
+#         %{buildroot}%{_bindir}/
+
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
 
 # We strip bad shebangs (/usr/bin/env) instead of fixing them
 # since these files are not executable anyways
@@ -41,9 +49,6 @@ do
         touch -r $F chopped
         mv chopped $F
 done
-# removing cdiff and decolor due to file conflict with colordiff package
-rm -rf %{buildroot}%{gem_dir}/bin
-find $RPM_BUILD_ROOT%{gem_instdir}/bin -type f |xargs chmod a+x
 
 
 %clean
@@ -78,6 +83,9 @@ popd
 
 
 %changelog
+* Sat Feb 23 2013 Vít Ondruch <vondruch at redhat.com> - 1.0.7-6
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.7-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list