summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-02-04 21:17:56 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-02-05 22:03:22 -0700
commit4e3b2316b9beb4ce7b7e1f177c6c3f983f9cdede (patch)
tree16979aa7aacafc1c2b13a2a5c733ae92d6dd6cb8
parentd3fbfbb417a95ea9b17e8806ecb5827b9defb228 (diff)
downloadrubygem-rails-4e3b2316b9beb4ce7b7e1f177c6c3f983f9cdede.tar.gz
rubygem-rails-4e3b2316b9beb4ce7b7e1f177c6c3f983f9cdede.tar.xz
rubygem-rails-4e3b2316b9beb4ce7b7e1f177c6c3f983f9cdede.zip
Downgrade to Rails 2.3.15
- Downgrade to Rails 2.3.15 - RHEL 6 compatibility
-rw-r--r--.gitignore15
-rw-r--r--rubygem-rails.spec44
-rw-r--r--sources2
3 files changed, 43 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
index 1084740..254fe15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,14 +1 @@
-rails-2.3.5.gem
-/rails-2.3.8.gem
-/rails-3.0.3.gem
-/rails-3.0.5.gem
-/rails-3.0.9.gem
-/rails-3.0.10.gem
-/rails-3.0.11.gem
-/rails-3.0.13.gem
-/rails-3.0.15.gem
-/rails-3.2.6.gem
-/rails-3.2.7.gem
-/rails-3.2.8.gem
-/rails-3.2.10.gem
-/rails-3.2.11.gem
+/rails-2.3.15.gem
diff --git a/rubygem-rails.spec b/rubygem-rails.spec
index 7743d65..d274159 100644
--- a/rubygem-rails.spec
+++ b/rubygem-rails.spec
@@ -1,32 +1,49 @@
# Generated from rails-1.2.5.gem by gem2rpm -*- rpm-spec -*-
%global gem_name rails
+%if 0%{?el6}
+%global rubyabi 1.8
+%else
%global rubyabi 1.9.1
+%endif
Summary: Web-application framework
Name: rubygem-%{gem_name}
Epoch: 1
-Version: 3.2.11
+Version: 2.3.15
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://www.rubyonrails.org
Source0: http://rubygems.org/downloads/rails-%{version}.gem
Requires: ruby(rubygems) >= 1.3.4
+Requires: rubygem(rake) >= 0.8.3
Requires: rubygem(activesupport) = %{version}
Requires: rubygem(activerecord) = %{version}
Requires: rubygem(actionpack) = %{version}
Requires: rubygem(actionmailer) = %{version}
Requires: rubygem(activeresource) = %{version}
-Requires: rubygem(railties) = %{version}
-Requires: rubygem(bundler) >= 1.0
Requires: ruby(abi) = %{rubyabi}
+%if 0%{?fedora}
BuildRequires: rubygems-devel
+%else
+BuildRequires: ruby(rubygems)
+%endif
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
+# macros for RHEL6 compatibility:
+%{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)}
+%{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}}
+%{!?gem_libdir: %global gem_libdir %{gem_instdir}/lib}
+%{!?gem_cache: %global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem}
+%{!?gem_spec: %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec}
+%{!?gem_docdir: %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}}
+%{!?gem_extdir: %global gem_extdir %{_libdir}/gems/exts/%{gem_name}-%{version}}
+%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"] ')}
+
%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
@@ -45,10 +62,31 @@ gem install --local --install-dir %{buildroot}%{gem_dir} \
--force %{SOURCE0}
%files
+%dir %{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}
+%{gem_instdir}/bin
+%{gem_instdir}/builtin
+%doc %{gem_instdir}/CHANGELOG
+%{gem_instdir}/configs
+%{gem_instdir}/dispatches
+%{gem_instdir}/doc
+%{gem_instdir}/environments
+%{gem_instdir}/fresh_rakefile
+%{gem_instdir}/helpers
+%{gem_instdir}/html
+%{gem_instdir}/lib
+%doc %{gem_instdir}/MIT-LICENSE
+%{gem_instdir}/Rakefile
+%{gem_instdir}/README
+%{_bindir}/rails
+
%changelog
+* Mon Feb 04 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 1:2.3.15-1
+- Downgrade to Rails 2.3.15.
+- RHEL 6 compatibility
+
* Wed Jan 09 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.11-1
- Updated to Rails 3.2.11.
diff --git a/sources b/sources
index 451e93e..13664cd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2051ec81d9e1bfdffc2576293121e79c rails-3.2.11.gem
+b0720121fb4d8dcd393b1252a7ac6860 rails-2.3.15.gem