source: trunk/server/fedora/specs/rubygem-rails.spec.patch @ 1275

Last change on this file since 1275 was 1275, checked in by mitchb, 15 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
  • rubygem-rails.spec

    old new  
    77Summary: Web-application framework
    88Name: rubygem-%{gemname}
    99Version: 2.3.2
    10 Release: 2%{?dist}
     10Release: 2%{?dist}.scripts.%{scriptsversion}
    1111Group: Development/Languages
    1212License: MIT
    1313URL: http://www.rubyonrails.org
     
    2323BuildRequires: rubygems
    2424BuildArch: noarch
    2525Provides: rubygem(%{gemname}) = %{version}
     26Provides: scripts-rubygem-rails
    2627
    2728%description
    2829Rails is a framework for building web-application using CGI, FCGI, mod_ruby,
     
    5556# Remove backup files
    5657find %{buildroot}/%{geminstdir} -type f -name "*~" -delete
    5758
    58 # Delete zero-length files
    59 find %{buildroot}/%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
    60 
    6159# Fix anything executable that does not have a shebang
    6260for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
    6361    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
     
    10098
    10199
    102100%changelog
     101* Sat Jul 18 2009 Mitchell Berger <mitchb@mit.edu> - 2.3.2-2.scripts
     102- Do not remove required zero-length files
     103
    103104* Wed May  6 2009 David Lutterkort <lutter@redhat.com> - 2.3.2-2
    104105- Fix replacement of shebang lines; broke scripts/generate (bz 496480)
    105106
Note: See TracBrowser for help on using the repository browser.