Author: glen Date: Sun Oct 12 10:11:47 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - v2.0.2 - spec redone based on altlinux spec
---- Files affected: SPECS: rails.spec (1.24 -> 1.25) ---- Diffs: ================================================================ Index: SPECS/rails.spec diff -u SPECS/rails.spec:1.24 SPECS/rails.spec:1.25 --- SPECS/rails.spec:1.24 Mon Sep 29 11:27:37 2008 +++ SPECS/rails.spec Sun Oct 12 12:11:42 2008 @@ -1,46 +1,39 @@ # $Revision$, $Date$ -# TODO -# - error:php-pear-Text_Highlighter-0.6.5-1 (cnfl rails = 0.12.1-1) conflicts with installed rails-0.12.1-1 -Summary: Ruby on Rails setup scripts -Summary(pl.UTF-8): Skrypty instalacyjne Ruby on Rails +%define pkgname rails +Summary: Web-application framework with template engine, control-flow layer, and ORM Name: rails -Version: 1.0.0 -Release: 1 -License: GPL +Version: 2.0.2 +Release: 0.1 +License: MIT Group: Development/Languages -Source0: http://rubyforge.org/frs/download.php/7654/%{name}-%{version}.tgz -# Source0-md5: 6ea1941564ec1f2372a01aa8c192ad2b -Source1: %{name}-replacement-generate -Patch0: %{name}-sanity.patch -URL: http://www.rubyonrails.com/ -# http://securitytracker.com/alerts/2008/Sep/1020871.html -# upgrade to 2.1 or 1.2 with patches needed: -BuildRequires: security-upgrade +Source0: http://rubyforge.org/frs/download.php/29554/%{name}-%{version}.gem +# Source0-md5: 8a3617501716fe909f08686407ff04ce +Patch0: %{name}-paths.patch +URL: http://www.rubyonrails.org/ +BuildRequires: rake BuildRequires: rpmbuild(macros) >= 1.277 BuildRequires: ruby-devel -Requires: rake >= 0.5.4 -Requires: ruby-modules >= 1.8.4-1 -Requires: ruby-ActionMailer >= 1.1.5 -Requires: ruby-ActionPack >= 1.11.2 -Requires: ruby-ActionWebService >= 1.0.0 -Requires: ruby-ActiveRecord >= 1.13.2 -Requires: ruby-ActiveSupport >= 1.2.5 +BuildRequires: setup.rb = 3.3.1 +Requires: rake >= 0.7.2 Requires: ruby-TMail Requires: ruby-Text-Format Requires: ruby-dev-utils >= 1.0.1 Requires: ruby-extensions >= 0.6.0 +Requires: ruby-modules >= 1.8.4-1 +Requires: ruby-railties = %{version}-%{release} Obsoletes: railties Obsoletes: ruby-Rails #BuildArch: noarch %{?ruby_mod_ver_requires_eq} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%description -rails is the scripts that tie the libraries that make up Ruby on Rails -together. +# nothing to be placed there. we're not noarc only because of ruby packaging +%define _enable_debug_packages 0 -Ruby on Rails is a rapid development web application platform written -in Ruby. +%description +Rails is a framework for building web-application using CGI, FCGI, +mod_ruby, or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2, +SQL Server, or Oracle with eRuby- or Builder-based templates. %description -l pl.UTF-8 rails to skrypty wiążące biblioteki tworzące razem Ruby on Rails. @@ -48,26 +41,42 @@ Ruby on Rails to platforma WWW do szybkiego tworzenia aplikacji napisana w języku Ruby. +This package contains development tools. + +%package -n ruby-railties +Summary: Gluing the Engine to the Rails +Group: Development/Languages +Requires: ruby-ActionMailer >= 2.0.4 +Requires: ruby-ActionPack >= 2.0.4 +Requires: ruby-ActiveRecord >= 2.0.4 +Requires: ruby-ActiveResource >= 2.0.4 +Requires: ruby-ActiveSupport >= 2.0.4 + +%description -n ruby-railties +Rails is a framework for building web-application using CGI, FCGI, +mod_ruby, or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2, +SQL Server, or Oracle with eRuby- or Builder-based templates. + +This package contains railties module. + %prep -%setup -q -n %{name} +%setup -q -c +%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz +cp %{_datadir}/setup.rb . %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 + %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/bin,%{ruby_rubylibdir}/railties} - -cd vendor/rails/railties -cp -a configs fresh_rakefile dispatches environments helpers html\ - $RPM_BUILD_ROOT%{_datadir}/%{name} -cp -a bin/* \ - $RPM_BUILD_ROOT%{_datadir}/%{name}/bin -install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/bin/generate -cp README \ - $RPM_BUILD_ROOT%{_datadir}/%{name}/README -install bin/rails $RPM_BUILD_ROOT%{_bindir} -install bin/generate $RPM_BUILD_ROOT%{_bindir}/rails-generate -cp -a doc $RPM_BUILD_ROOT%{_datadir}/%{name}/doc -cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}/railties +install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{pkgname},%{ruby_sitelibdir}} +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 +RAILTIES_PATH = "%{_datadir}/%{pkgname}" +EOF %clean rm -rf $RPM_BUILD_ROOT @@ -75,8 +84,19 @@ %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* -%{_datadir}/%{name} -%{ruby_rubylibdir}/railties +%{_datadir}/%{pkgname} +%{ruby_sitelibdir}/commands* +%{ruby_sitelibdir}/tasks* +%{ruby_sitelibdir}/console_*.rb +%{ruby_sitelibdir}/*_server.rb + +%files -n ruby-railties +%defattr(644,root,root,755) +%{ruby_sitelibdir}/* +%exclude %{ruby_sitelibdir}/commands* +%exclude %{ruby_sitelibdir}/tasks* +%exclude %{ruby_sitelibdir}/console_*.rb +%exclude %{ruby_sitelibdir}/*_server.rb %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -84,100 +104,7 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ -Revision 1.24 2008/09/29 09:27:37 blues -- security note - -Revision 1.23 2007/02/12 22:09:12 glen -- tabs in preamble - -Revision 1.22 2007/02/12 01:06:30 baggins -- converted to UTF-8 - -Revision 1.21 2006/03/09 00:42:19 aredridel -- up to 1.0.0 - -Revision 1.20 2005/12/31 10:36:33 twittner -- change %%ruby_mod_ver_requires_eq to %%{?ruby_mod_ver_requires_eq} - - expand this macro only if defined to avoid parse error when appropriate - BRs is not installed yet (solution provided by glen) - -Revision 1.19 2005/12/29 16:59:47 twittner -- replace R: ruby-modules with %%ruby_mod_ver_requires_eq macro - defined as `Requires: ruby-modules(ver) = 1.8' where `1.8' is - major ruby version taken from rbconfig -- add BR: rpmbuild(macros) >= 1.277 with aforementioned macros - -Revision 1.18 2005/12/27 10:07:58 twittner -- remove redundant BR: ruby-modules (BR: ruby-devel implies it) - -Revision 1.17 2005/12/27 09:19:19 twittner -- (B)R: s/ruby/ruby-modules/, rel. 2 (mass commit through script) - -Revision 1.16 2005/12/26 23:50:12 glen -- use system ruby macros; cleanups - -Revision 1.15 2005/10/25 18:46:27 aredridel -- updated deps - -Revision 1.14 2005/10/25 18:44:22 aredridel -- use install(1) instead of cp(1) where possible - -Revision 1.13 2005/10/25 18:24:41 aredridel -- up to 0.14.1 - -Revision 1.12 2005/07/10 13:05:13 glen -- php-pear-Text_Highlighter cnfl rails - -Revision 1.11 2005/07/09 21:18:53 aredridel -- R: rake >= 0.5.4 - -Revision 1.10 2005/07/09 21:10:03 aredridel -- up to 0.13.0 - -Revision 1.9 2005/07/09 18:31:18 aredridel -- add replacement generate - -Revision 1.8 2005/05/11 19:32:40 aredridel -- R: ruby-TMail - -Revision 1.7 2005/05/11 19:23:08 aredridel -- added R: ruby-Text-Format -- requires ruby >= 1.8.2-4, for fixed perms on digest/md5.so - -Revision 1.6 2005/04/21 03:16:04 aredridel -- up to 0.12.1 - -Revision 1.5 2005/04/03 21:42:54 aredridel -- complete - -Revision 1.4 2005/04/03 20:45:48 aredridel -- up to 0.11.1 - -Revision 1.3 2005/03/20 11:37:16 qboosh -- Obsoletes: railties, added pl desc - -Revision 1.2 2005/03/20 08:41:41 aredridel -- works - -Revision 1.1 2005/03/20 07:40:12 aredridel -- mv railties.spec rails.spec -- up to 0.10.1 -- NFY - -Revision 1.6 2005/03/04 19:31:34 qboosh -- added Obsoletes for removed ruby-Rails - -Revision 1.5 2005/01/22 19:38:10 qboosh -- pl, cleanups - -Revision 1.4 2005/01/22 06:44:05 aredridel -- include libs correctly - -Revision 1.3 2005/01/22 06:24:44 aredridel -- more deps - -Revision 1.2 2005/01/22 06:17:39 aredridel -- deps +Revision 1.25 2008/10/12 10:11:42 glen +- v2.0.2 +- spec redone based on altlinux spec -Revision 1.1 2005/01/22 06:06:33 aredridel -- added, not finished yet ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/rails.spec?r1=1.24&r2=1.25&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
