| Last change
                  on this file since 1275 was
                  1275,
                  checked in by mitchb, 16 years ago | 
        
          | Temporarily scriptsify rubygem-rails to work around Fedora packaging error
Between the version of this package appearing in Fedora 9 and Fedora 11,
the spec file gained a stanza that removes all zero-length files from
the destination tree.  This actually removes four required zero-length
files (and nothing else), without which running 'rails' to create a
new application errors out.
See https://bugzilla.redhat.com/show_bug.cgi?id=496480 | 
        | File size:
            1.3 KB | 
      
      
        
  | Rev | Line |  | 
|---|
| [1275] | 1 | --- rubygem-rails.spec.orig     2009-07-18 02:15:11.040937830 -0400 | 
|---|
|  | 2 | +++ rubygem-rails.spec  2009-07-18 02:21:24.665129305 -0400 | 
|---|
|  | 3 | @@ -7,7 +7,7 @@ | 
|---|
|  | 4 | Summary: Web-application framework | 
|---|
|  | 5 | Name: rubygem-%{gemname} | 
|---|
|  | 6 | Version: 2.3.2 | 
|---|
|  | 7 | -Release: 2%{?dist} | 
|---|
|  | 8 | +Release: 2%{?dist}.scripts.%{scriptsversion} | 
|---|
|  | 9 | Group: Development/Languages | 
|---|
|  | 10 | License: MIT | 
|---|
|  | 11 | URL: http://www.rubyonrails.org | 
|---|
|  | 12 | @@ -23,6 +23,7 @@ | 
|---|
|  | 13 | BuildRequires: rubygems | 
|---|
|  | 14 | BuildArch: noarch | 
|---|
|  | 15 | Provides: rubygem(%{gemname}) = %{version} | 
|---|
|  | 16 | +Provides: scripts-rubygem-rails | 
|---|
|  | 17 |  | 
|---|
|  | 18 | %description | 
|---|
|  | 19 | Rails is a framework for building web-application using CGI, FCGI, mod_ruby, | 
|---|
|  | 20 | @@ -55,9 +56,6 @@ | 
|---|
|  | 21 | # Remove backup files | 
|---|
|  | 22 | find %{buildroot}/%{geminstdir} -type f -name "*~" -delete | 
|---|
|  | 23 |  | 
|---|
|  | 24 | -# Delete zero-length files | 
|---|
|  | 25 | -find %{buildroot}/%{geminstdir} -type f -size 0c -exec rm -rvf {} \; | 
|---|
|  | 26 | - | 
|---|
|  | 27 | # Fix anything executable that does not have a shebang | 
|---|
|  | 28 | for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do | 
|---|
|  | 29 | [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file | 
|---|
|  | 30 | @@ -100,6 +98,9 @@ | 
|---|
|  | 31 |  | 
|---|
|  | 32 |  | 
|---|
|  | 33 | %changelog | 
|---|
|  | 34 | +* Sat Jul 18 2009 Mitchell Berger <mitchb@mit.edu> - 2.3.2-2.scripts | 
|---|
|  | 35 | +- Do not remove required zero-length files | 
|---|
|  | 36 | + | 
|---|
|  | 37 | * Wed May  6 2009 David Lutterkort <lutter@redhat.com> - 2.3.2-2 | 
|---|
|  | 38 | - Fix replacement of shebang lines; broke scripts/generate (bz 496480) | 
|---|
|  | 39 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.