[rubygem-rails] Rebuilt for Ruby 1.9.3.

Bohuslav Kabrda bkabrda at fedoraproject.org
Wed Feb 1 14:43:13 UTC 2012


commit accbd81854b9817357f6266b79d88c4a17e19ca5
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Feb 1 15:43:05 2012 +0100

    Rebuilt for Ruby 1.9.3.

 .gitignore         |    1 +
 rubygem-rails.spec |   44 ++++++++++++++++++++++----------------------
 sources            |    2 +-
 3 files changed, 24 insertions(+), 23 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a256d82..942e731 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ rails-2.3.5.gem
 /rails-3.0.5.gem
 /rails-3.0.9.gem
 /rails-3.0.10.gem
+/rails-3.0.11.gem
diff --git a/rubygem-rails.spec b/rubygem-rails.spec
index 6f57dd6..4ad5ebf 100644
--- a/rubygem-rails.spec
+++ b/rubygem-rails.spec
@@ -1,16 +1,13 @@
 # Generated from rails-1.2.5.gem by gem2rpm -*- rpm-spec -*-
-%global gemname rails
+%global gem_name rails
 
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
-
-%global rubyabi 1.8
+%global rubyabi 1.9.1
 
 Summary: Web-application framework
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
 Epoch: 1
-Version: 3.0.10
-Release: 2%{?dist}
+Version: 3.0.11
+Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://www.rubyonrails.org
@@ -25,10 +22,10 @@ Requires: rubygem(railties) = %{version}
 Requires: rubygem(bundler) >= 1.0
 Requires: ruby(abi) = %{rubyabi}
 
-BuildRequires: rubygems
+BuildRequires: rubygems-devel
 
 BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
 
 %description
 Rails is a framework for building web-application using CGI, FCGI, mod_ruby,
@@ -41,20 +38,20 @@ Oracle with eRuby- or Builder-based templates.
 %build
 
 %install
-mkdir -p %{buildroot}%{gemdir}
-gem install --local --install-dir %{buildroot}%{gemdir} \
+mkdir -p %{buildroot}%{gem_dir}
+gem install --local --install-dir %{buildroot}%{gem_dir} \
             --bindir %{buildroot}%{_bindir} \
             -V --no-rdoc --no-ri \
             --force %{SOURCE0}
 
 # Remove backup files
-find %{buildroot}/%{geminstdir} -type f -name "*~" -delete
+find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
 
 # Don't delete zero-length files (bug 496480)
-#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
 
@@ -62,26 +59,29 @@ done
 find %{buildroot} -name \*.gem | xargs chmod 0644
 
 # 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 {} \;
 
 %files
 %defattr(-, root, root, -)
-%dir %{geminstdir}
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}
+%{gem_cache}
+%{gem_spec}
 
-%{geminstdir}/bin
+%{gem_instdir}/bin
 %{_bindir}/rails
 
 %changelog
+* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1:3.0.11-1
+- Rebuilt for Ruby 1.9.3.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:3.0.10-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index 785964f..4fcf6d5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d19399cd769bc35131f7e9d3af42d504  rails-3.0.10.gem
+3a580b7c5563a10b87ed625b06de5e1d  rails-3.0.11.gem


More information about the scm-commits mailing list