summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lutterkort <lutter@fedoraproject.org>2007-11-29 23:37:44 +0000
committerDavid Lutterkort <lutter@fedoraproject.org>2007-11-29 23:37:44 +0000
commit1e3f4e88c44bcf44869a6e16279d647d663fecf4 (patch)
tree36d9d26470e3676f0cdb30a0954005580d7a7277
parent480177d1db98b3bb2a34d22e89a099e990962b0d (diff)
downloadrubygem-rails-1e3f4e88c44bcf44869a6e16279d647d663fecf4.tar.gz
rubygem-rails-1e3f4e88c44bcf44869a6e16279d647d663fecf4.tar.xz
rubygem-rails-1e3f4e88c44bcf44869a6e16279d647d663fecf4.zip
New package
-rw-r--r--.cvsignore1
-rw-r--r--rubygem-rails.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.cvsignore b/.cvsignore
index e69de29..58303c6 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+rails-1.2.6.gem
diff --git a/rubygem-rails.spec b/rubygem-rails.spec
new file mode 100644
index 0000000..b181bc0
--- /dev/null
+++ b/rubygem-rails.spec
@@ -0,0 +1,91 @@
+# Generated from rails-1.2.5.gem by gem2rpm -*- rpm-spec -*-
+%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define gemname rails
+%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary: Web-application framework
+Name: rubygem-%{gemname}
+Version: 1.2.6
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://www.rubyonrails.org
+Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: rubygems
+Requires: rubygem(rake) >= 0.7.2
+Requires: rubygem(activesupport) = 1.4.4
+Requires: rubygem(activerecord) = 1.15.6
+Requires: rubygem(actionpack) = 1.13.6
+Requires: rubygem(actionmailer) = 1.3.6
+Requires: rubygem(actionwebservice) = 1.2.6
+BuildRequires: rubygems
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%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.
+
+
+%prep
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+gem install --local --install-dir %{buildroot}%{gemdir} \
+ --force %{SOURCE0}
+mkdir -p %{buildroot}/%{_bindir}
+mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
+rmdir %{buildroot}%{gemdir}/bin
+find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
+
+# Cleanup some upstream packaging oddities, mostly to make rpmlint happy
+sed -i '1i#! /usr/bin/ruby\n' %{buildroot}%{geminstdir}/bin/rails
+
+for f in dispatches/dispatch.fcgi dispatches/dispatch.rb \
+ dispatches/gateway.cgi lib/commands/ncgi/listener \
+ lib/commands/ncgi/tracker
+do
+ sed -i -e '1c#! /usr/bin/ruby' %{buildroot}%{geminstdir}/$f
+ chmod 755 %{buildroot}%{geminstdir}/$f
+done
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/bin
+%{geminstdir}/builtin
+%doc %{geminstdir}/CHANGELOG
+%{geminstdir}/configs
+%{geminstdir}/dispatches
+%{geminstdir}/doc
+%{geminstdir}/environments
+%{geminstdir}/fresh_rakefile
+%{geminstdir}/helpers
+%{geminstdir}/html
+%{geminstdir}/lib
+%doc %{geminstdir}/MIT-LICENSE
+%{geminstdir}/Rakefile
+%doc %{geminstdir}/README
+%{_bindir}/rails
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+
+%changelog
+* Thu Nov 29 2007 David Lutterkort <dlutter@redhat.com> - 1.2.6-1
+- Don't copy files into _docdir, mark them as doc in the geminstdir
+
+* Tue Nov 13 2007 David Lutterkort <dlutter@redhat.com> - 1.2.5-2
+- Fix buildroot
+
+* Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.2.5-1
+- Initial package
diff --git a/sources b/sources
index e69de29..f6d4c82 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4c4a58ef8e703199f97ddb15791e2541 rails-1.2.6.gem