SPECS: rails.spec - update to 2.0.4
glen
glen at pld-linux.org
Sun Oct 12 12:25:41 CEST 2008
Author: glen Date: Sun Oct 12 10:25:41 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- update to 2.0.4
---- Files affected:
SPECS:
rails.spec (1.25 -> 1.26)
---- Diffs:
================================================================
Index: SPECS/rails.spec
diff -u SPECS/rails.spec:1.25 SPECS/rails.spec:1.26
--- SPECS/rails.spec:1.25 Sun Oct 12 12:11:42 2008
+++ SPECS/rails.spec Sun Oct 12 12:25:36 2008
@@ -2,18 +2,15 @@
%define pkgname rails
Summary: Web-application framework with template engine, control-flow layer, and ORM
Name: rails
-Version: 2.0.2
+Version: 2.0.4
Release: 0.1
License: MIT
Group: Development/Languages
-Source0: http://rubyforge.org/frs/download.php/29554/%{name}-%{version}.gem
-# Source0-md5: 8a3617501716fe909f08686407ff04ce
+Source0: http://rubyforge.org/frs/download.php/42597/%{name}-%{version}.gem
+# Source0-md5: 14b0f7202e0a42230d794b8335588cd7
Patch0: %{name}-paths.patch
URL: http://www.rubyonrails.org/
-BuildRequires: rake
BuildRequires: rpmbuild(macros) >= 1.277
-BuildRequires: ruby-devel
-BuildRequires: setup.rb = 3.3.1
Requires: rake >= 0.7.2
Requires: ruby-TMail
Requires: ruby-Text-Format
@@ -60,13 +57,20 @@
This package contains railties module.
%prep
-%setup -q -c
+%setup -qcT
%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
-cp %{_datadir}/setup.rb .
+find -newer README -o -print | xargs touch --reference %{SOURCE0}
%patch0 -p1
-find -type f -print0 | xargs -r0 %{__sed} -i -e 's,/usr/local/bin/ruby,%{_bindir}/ruby,' --
-%{__sed} -i -e "s, at RAILS_DATADIR at ,%{_datadir}/%{pkgname}," lib/rails_generator/generators/applications/app/app_generator.rb
+%{__grep} -rl '/usr/local/bin/ruby' . | xargs %{__sed} -i -e 's,/usr/local/bin/ruby,%{_bindir}/ruby,'
+%{__grep} -rl '/usr/bin/env' . | xargs %{__sed} -i -e '
+ s,/usr/bin/env ruby,%{_bindir}/ruby,
+ s,/usr/bin/env spawn-fcgi,/usr/sbin/spawn-fcgi,
+ s,/usr/bin/env \(#{File.expand_path(\$0)}\),\1,
+'
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%install
rm -rf $RPM_BUILD_ROOT
@@ -74,7 +78,7 @@
cp -a lib/* $RPM_BUILD_ROOT%ruby_sitelibdir
cp -a bin builtin configs dispatches doc environments helpers html fresh_rakefile README $RPM_BUILD_ROOT%{_datadir}/%{pkgname}
install -p bin/rails $RPM_BUILD_ROOT%{_bindir}/rails
-cat <<EOF > $RPM_BUILD_ROOT%{ruby_sitelibdir}/railties_path.rb
+cat <<'EOF' > $RPM_BUILD_ROOT%{ruby_sitelibdir}/railties_path.rb
RAILTIES_PATH = "%{_datadir}/%{pkgname}"
EOF
@@ -104,7 +108,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.26 2008/10/12 10:25:36 glen
+- update to 2.0.4
+
Revision 1.25 2008/10/12 10:11:42 glen
- v2.0.2
- spec redone based on altlinux spec
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/rails.spec?r1=1.25&r2=1.26&f=u
More information about the pld-cvs-commit
mailing list