Changes of Revision 3
[-] | Added | rubygem-rails-2_0.spec |
x 1
2 +# 3 +# spec file for package rubygem-rails-2_0 (Version 2.0.2) 4 +# 5 +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 +Name: rubygem-rails-2_0 15 +Version: 2.0.2 16 +Release: 0 17 +# 18 +%define mod_name rails 19 +%define mod_branch 2_0 20 +# 21 +Group: Development/Languages/Ruby 22 +License: X11/MIT 23 +# 24 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 +BuildRequires: rubygems_with_buildroot_patch 26 +Requires: rubygems > 0.9 27 +Provides: rubygem-%{mod_name} = %{version}-%{release} 28 +Obsoletes: rubygem-%{mod_name} < %{version} 29 +BuildRequires: rubygem-rake >= 0.7.2 30 +BuildRequires: rubygem-activesupport-2_0 = 2.0.2 31 +BuildRequires: rubygem-activerecord-2_0 = 2.0.2 32 +BuildRequires: rubygem-actionpack-2_0 = 2.0.2 33 +BuildRequires: rubygem-actionmailer-2_0 = 2.0.2 34 +BuildRequires: rubygem-activeresource-2_0 = 2.0.2 35 +Requires: rubygem-rake >= 0.7.2 36 +Requires: rubygem-activesupport-2_0 = 2.0.2 37 +Requires: rubygem-activerecord-2_0 = 2.0.2 38 +Requires: rubygem-actionpack-2_0 = 2.0.2 39 +Requires: rubygem-actionmailer-2_0 = 2.0.2 40 +Requires: rubygem-activeresource-2_0 = 2.0.2 41 +PreReq: update-alternatives 42 +# 43 +# http://rubyforge.org/projects/rails/ 44 +Url: http://www.rubyonrails.org/ 45 +Source: http://rubyforge.org/frs/download.php/18404/rails-2.0.2.gem 46 +# 47 +Summary: A web-application framework for the MVC pattern 48 + 49 +%description 50 +Rails is a web-application framework for the MVC pattern that includes 51 +both a template engine, controller framework, and object-relational 52 +mapping package. Everything needed to develop web-apps that can run on 53 +CGI, FastCGI, and mod_ruby. 54 + 55 + 56 + 57 +Authors: 58 +-------- 59 + rails development team 60 + 61 +%prep 62 + 63 +%build 64 + 65 +%install 66 +gem install --local --build-root=%{buildroot} %{S:0} 67 +mv %{buildroot}%{_bindir}/rails{,-%{mod_branch}} 68 +%{__ln_s} rails %{buildroot}%{_bindir}/rails 69 +# make sure it installs the right version when using rails-1.1 70 +ruby -p -i.bak -e '$_.gsub!(/>= 0/, "= %{version}")' %{buildroot}%{_bindir}/rails-%{mod_branch} 71 +diff -urN %{buildroot}%{_bindir}/rails-%{mod_branch}{.bak,} || : 72 +rm %{buildroot}%{_bindir}/rails-%{mod_branch}.bak 73 + 74 +%clean 75 +%{__rm} -rf %{buildroot} 76 + 77 +%post 78 +/usr/sbin/update-alternatives --install \ 79 + %{_bindir}/rails rails %{_bindir}/rails-%{mod_branch} 20 80 + 81 +%preun 82 +if [ "$1" = 0 ] ; then 83 + /usr/sbin/update-alternatives --remove rails %{_bindir}/rails-%{mod_branch} 84 +fi 85 + 86 +%files 87 +%defattr(-,root,root,-) 88 +%ghost %config(noreplace) %{_bindir}/rails 89 +%{_bindir}/rails-%{mod_branch} 90 +%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem 91 +%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/ 92 +%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec 93 +#doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/ 94 + 95 +%changelog 96 |