[rubygem-term-ansicolor/el5] revert to even older version

Jan Klepek hpejakle at fedoraproject.org
Mon Jun 3 21:27:05 UTC 2013


commit 42a6f12860ad212b5ec716aebafffdd93b6f5e61
Author: Jan Klepek <jan.klepek at gmail.com>
Date:   Mon Jun 3 23:26:38 2013 +0200

    revert to even older version

 rubygem-term-ansicolor.spec |  103 +++++++++++++++++--------------------------
 1 files changed, 40 insertions(+), 63 deletions(-)
---
diff --git a/rubygem-term-ansicolor.spec b/rubygem-term-ansicolor.spec
index 0198e73..dcfb686 100644
--- a/rubygem-term-ansicolor.spec
+++ b/rubygem-term-ansicolor.spec
@@ -1,104 +1,81 @@
-%global gem_name term-ansicolor
+%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname term-ansicolor
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
 
 Summary:        Ruby library that colors strings using ANSI escape sequences
-Name:           rubygem-%{gem_name}
+Name:           rubygem-%{gemname}
 Version:        1.0.7
-Release:        6%{?dist}
+Release:        1%{?dist}
 Group:          Development/Languages
 License:        GPLv2
 URL:            http://term-ansicolor.rubyforge.org
-Source0:        http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
+Source0:        http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:       ruby(release)
-Requires:       ruby(rubygems)
-BuildRequires:  rubygems-devel
-BuildRequires:  rubygem(minitest)
+Requires:       ruby(abi) = 1.8
+Requires:       rubygems
+BuildRequires:  rubygems
 BuildArch:      noarch
-Provides:       rubygem(%{gem_name}) = %{version}
+Provides:       rubygem(%{gemname}) = %{version}
 
 %description
 Small Ruby library that colors strings using ANSI escape sequences.
 
 
 %prep
-%setup -q -c  -T
-%gem_install -n %{SOURCE0}
 
 
 %build
 
 
 %install
-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
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{gemdir}
+gem install --local --install-dir $RPM_BUILD_ROOT%{gemdir} \
+        --force --rdoc %{SOURCE0}
 
 # We strip bad shebangs (/usr/bin/env) instead of fixing them
 # since these files are not executable anyways
-find $RPM_BUILD_ROOT%{gem_dir} \( -name '*.rb' -o -name 'Rakefile' \) \
+find $RPM_BUILD_ROOT%{gemdir} \( -name '*.rb' -o -name 'Rakefile' \) \
         -exec grep -q '^#!' '{}' \; -print |while read F
 do
         awk '/^#!/ {if (FNR == 1) next;} {print}' $F >chopped
         touch -r $F chopped
         mv chopped $F
 done
-
+# removing cdiff and decolor due to file conflict with colordiff package
+rm -rf %{buildroot}%{gemdir}/bin
+find $RPM_BUILD_ROOT%{geminstdir}/bin -type f |xargs chmod a+x
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%check
-pushd %{buildroot}%{gem_instdir}
-testrb -Ilib tests/*
-popd
 
 %files
 %defattr(-,root,root,-)
-%dir %{gem_instdir}
-%doc %{gem_instdir}/CHANGES
-%doc %{gem_instdir}/VERSION
-%doc %{gem_instdir}/COPYING
-%doc %{gem_instdir}/examples
-%doc %{gem_instdir}/tests
-%doc %{gem_instdir}/README.rdoc
-%doc %{gem_instdir}/doc-main.txt
-%doc %{gem_instdir}/term-ansicolor.gemspec
-%doc %{gem_instdir}/Gemfile
-%doc %{gem_instdir}/.gitignore
-%{gem_instdir}/Rakefile
-%{gem_instdir}/*.rb
-%{gem_libdir}/
-%{gem_instdir}/bin/
-%{gem_instdir}/.travis.yml
-%doc %{gem_docdir}
-%{gem_cache}
-%{gem_spec}
+%dir %{geminstdir}
+%{_bindir}/decolor
+%doc %{geminstdir}/CHANGES
+%doc %{geminstdir}/VERSION
+%doc %{geminstdir}/COPYING
+%doc %{geminstdir}/examples
+%doc %{geminstdir}/tests
+%doc %{geminstdir}/README.rdoc
+%doc %{geminstdir}/doc-main.txt
+%doc %{geminstdir}/term-ansicolor.gemspec
+%doc %{geminstdir}/Gemfile
+%doc %{geminstdir}/.gitignore
+%{geminstdir}/Rakefile
+%{geminstdir}/*.rb
+%{geminstdir}/lib/
+%{geminstdir}/bin/
+%{geminstdir}/.travis.yml
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
 
 
 %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
-
-* Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.7-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
-
-* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.0.7-3
-- Rebuilt for Ruby 1.9.3.
-- Introduced %%check section for running tests.
-
-* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.7-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
-
 * Sat Oct 15 2011 Jan Klepek <jan.klepek at, gmail.com> - 1.0.7-1
 - updated to latest version
 
@@ -122,7 +99,7 @@ popd
 
 * Mon Jun 08 2009 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> - 1.0.3-2
 - Fix up documentation list
-- Use gem_instdir macro where appropriate
+- Use geminstdir macro where appropriate
 - Do not move examples around
 - Depend on ruby(abi)
 - Replace defines with globals


More information about the scm-commits mailing list