[rubygem-main/f17: 1/2] Rebuilt for Ruby 1.9.3. Updated to version 4.7.0 (and altered the dependencies properly).

Vít Ondruch vondruch at fedoraproject.org
Thu Mar 1 11:34:53 UTC 2012


commit dfa54815832ccb0dfa203e479c947e84ab65ac0f
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Mar 1 12:34:16 2012 +0100

    Rebuilt for Ruby 1.9.3.
    Updated to version 4.7.0 (and altered the dependencies properly).

 .gitignore        |    1 +
 rubygem-main.spec |   81 ++++++++++++++++++++++++++++------------------------
 sources           |    2 +-
 3 files changed, 46 insertions(+), 38 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 27c1189..9b322f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 main-4.0.0.gem
+/main-4.7.0.gem
diff --git a/rubygem-main.spec b/rubygem-main.spec
index c4cb25c..99e1753 100644
--- a/rubygem-main.spec
+++ b/rubygem-main.spec
@@ -1,27 +1,29 @@
 # Generated from main-2.8.0.gem by gem2rpm -*- rpm-spec -*-
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%define gemname main
-%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global gem_name main
 
 Summary:        A class factory and dsl for generating command line programs real quick
-Name:           rubygem-%{gemname}
-Version:        4.0.0
-Release:        3%{?dist}
+Name:           rubygem-%{gem_name}
+Version:        4.7.0
+Release:        1%{?dist}
 Group:          Development/Languages
-License:        Ruby
+License:        BSD or Ruby
 URL:            http://codeforpeople.com/lib/ruby/main/
 # This package does ugly tarballs (gem and source only)
 #Source0:        http://codeforpeople.com/lib/ruby/main/%{gemname}-%{version}.tgz
-Source0:        http://codeforpeople.com/lib/ruby/main/%{gemname}-%{version}/%{gemname}-%{version}.gem
+Source0:        http://codeforpeople.com/lib/ruby/main/%{gem_name}-%{version}/%{gem_name}-%{version}.gem
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:       rubygems
-Requires:       ruby(abi) = 1.8
-Requires:       rubygem(attributes) >= 5.0.0
-Requires:       rubygem(arrayfields) >= 4.5.0
-Requires:       rubygem(fattr) >= 1.0.3
-BuildRequires:  rubygems
-BuildRequires:  rubygem(rake)
+Requires:       ruby(abi) = 1.9.1
+Requires:       rubygem(arrayfields)
+Requires:       rubygem(fattr)
+Requires:       rubygem(map)
+Requires:       rubygem(chronic)
+BuildRequires:  rubygems-devel
+BuildRequires:  rubygem(arrayfields)
+BuildRequires:  rubygem(fattr)
+BuildRequires:  rubygem(map)
+BuildRequires:  rubygem(chronic)
+BuildRequires:  rubygem(minitest)
 BuildArch:      noarch
 Provides:       rubygem(%{gemname}) = %{version}
 
@@ -34,38 +36,38 @@ A class factory and dsl for generating command line programs real quick
 
 %install
 rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gemdir}
-gem install --local --install-dir %{buildroot}%{gemdir} \
+mkdir -p %{buildroot}%{gem_dir}
+gem install --local --install-dir %{buildroot}%{gem_dir} \
             --force %{SOURCE0}
 
 # Remove backup files
-find %{buildroot}/%{geminstdir} -type f -name "*~" -delete
+find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
 
 # Delete zero-length files
-find %{buildroot}/%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
+find %{buildroot}/%{gem_instdir} -type f -size 0c -exec rm -rvf {} \;
 
 # Fix anything executable that does not have a shebang
-for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
+for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
     [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
 done
 
 # Find files with a shebang that do not have executable permissions
-for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
+for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do
     [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
 done
 
 # Find files that have non-standard-executable-perm
-find %{buildroot}/%{geminstdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
+find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
 
 # Find files that are not readable
-find %{buildroot}/%{geminstdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
+find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
 
 # Get that duplicate gemspec out of the way
-rm -rf %{buildroot}/%{geminstdir}/%{gemname}.gemspec
+rm -rf %{buildroot}/%{gem_instdir}/%{gem_name}.gemspec
 
 %check
-pushd %{buildroot}/%{geminstdir}
-rake test || :
+pushd %{buildroot}/%{gem_instdir}/test
+testrb main_test.rb
 popd
 
 %clean
@@ -73,20 +75,25 @@ rm -rf %{buildroot}
 
 %files
 %defattr(-, root, root, -)
-%doc %{gemdir}/doc/%{gemname}-%{version}
-%dir %{geminstdir}/
-%doc %{geminstdir}/README
-%doc %{geminstdir}/README.erb
-%doc %{geminstdir}/Rakefile
-%doc %{geminstdir}/TODO
-%doc %{geminstdir}/samples
-%doc %{geminstdir}/test
-%{geminstdir}/lib
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%doc %{gem_docdir}
+%dir %{gem_instdir}/
+%doc %{gem_instdir}/LICENSE
+%doc %{gem_instdir}/README
+%doc %{gem_instdir}/README.erb
+%doc %{gem_instdir}/Rakefile
+%doc %{gem_instdir}/TODO
+%doc %{gem_instdir}/samples
+%doc %{gem_instdir}/test
+%{gem_libdir}
+%{gem_cache}
+%{gem_spec}
 
 
 %changelog
+* Thu Mar 01 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 4.7.0-1
+- Rebuilt for Ruby 1.9.3.
+- Updated to version 4.7.0 (and altered the dependencies properly).
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.0.0-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index b17e264..3ab113c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8e35243393bf108d9df61538e14b69c5  main-4.0.0.gem
+cccc8b7996112ab68aab8519c9d05fa7  main-4.7.0.gem


More information about the scm-commits mailing list