[rubygem-railties] - Fix Comment 11 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c11 - Take LICENSE file

minn minn at fedoraproject.org
Fri Feb 4 15:19:27 UTC 2011


commit e43b874c35795a59f0e9d7b47936cd7a1c0a6995
Author: minn <Minnikhanov at gmail.com>
Date:   Fri Feb 4 18:18:30 2011 +0300

    - Fix Comment 11 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c11
    - Take LICENSE file from upstream.

 .gitignore            |    1 +
 MIT-LICENSE           |   20 +++++++++
 rubygem-railties.spec |  105 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 4 files changed, 127 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..29fd01d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/railties-3.0.3.gem
diff --git a/MIT-LICENSE b/MIT-LICENSE
new file mode 100644
index 0000000..86bcb23
--- /dev/null
+++ b/MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2004-2010 David Heinemeier Hansson
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/rubygem-railties.spec b/rubygem-railties.spec
new file mode 100644
index 0000000..46d6d59
--- /dev/null
+++ b/rubygem-railties.spec
@@ -0,0 +1,105 @@
+# Generated from railties-3.0.3.gem by gem2rpm -*- rpm-spec -*-
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname railties
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global download_path http://rubygems.org/downloads/
+%global rubyabi 1.8
+
+Summary: Tools for creating, working with, and running Rails applications
+Name: rubygem-%{gemname}
+Version: 3.0.3
+Release: 7%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://www.rubyonrails.org
+Source0: %{download_path}%{gemname}-%{version}.gem
+# ** Take LICENSE file from upstream. **
+# wget --no-check-certificate https://github.com/rails/rails/raw/master/railties/MIT-LICENSE
+Source1: http://github.com/rails/rails/raw/master/railties/MIT-LICENSE
+Requires: ruby(abi) = %{rubyabi}
+Requires: rubygems
+Requires: rubygem(rake) >= 0.8.7
+Requires: rubygem(thor) >= 0.14.4
+Requires: rubygem(thor) < 0.15
+Requires: rubygem(activesupport) = 3.0.3
+Requires: rubygem(actionpack) = 3.0.3
+BuildRequires: rubygems
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+Rails internals: application bootup, plugins, generators, and rake tasks.
+Railties is responsible to glue all frameworks together. Overall, it:
+* handles all the bootstrapping process for a Rails application;
+* manager rails command line interface;
+* provides Rails generators core;
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+%description doc
+This package contains documentation for %{name}.
+
+%prep
+%setup -q -c -T
+%{__mkdir_p} .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+            --force -V --rdoc %{SOURCE0}
+%{__rm} -Rf .%{geminstdir}/.yardoc
+
+# move LICENSE file into place
+%{__mv} -f %{SOURCE1} .%{geminstdir}/
+
+# May by only for v.3.0.3-6
+#  
+# Some stylesheet seems to be mistakingly marked as executable in the upstream
+# source
+find .%{geminstdir} -name *.css -type f -perm /a+x -exec %{__chmod} -v 644 {} \;
+
+%build
+
+%install
+%{__mkdir_p} %{buildroot}%{gemdir}
+%{__cp} -a .%{gemdir}/* %{buildroot}%{gemdir}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/lib
+%{geminstdir}/guides
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%doc %{geminstdir}/CHANGELOG
+%doc %{geminstdir}/README.rdoc
+%doc %{geminstdir}/MIT-LICENSE
+
+%files doc
+%defattr(-, root, root, -)
+%{gemdir}/doc/%{gemname}-%{version}
+
+%changelog
+* Wed Feb 02 2011  <Minnikhanov at gmail.com> - 3.0.3-7
+- Fix Comment 11 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c11
+- Take LICENSE file from upstream.
+
+* Mon Jan 31 2011  <Minnikhanov at gmail.com> - 3.0.3-6
+- Fix Comment 9 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c9
+- Temporarily test suite is blocked.
+
+* Thu Jan 27 2011  <Minnikhanov at gmail.com> - 3.0.3-5
+- Fix Comment 7 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c7 
+
+* Tue Jan 25 2011  <Minnikhanov at gmail.com> - 3.0.3-4
+- Fix Comment 5 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c5 
+
+* Mon Jan 24 2011  <Minnikhanov at gmail.com> - 3.0.3-3
+- Fix Comment 3 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c3 
+
+* Sun Jan 23 2011  <Minnikhanov at gmail.com> - 3.0.3-2
+- Fix Comment 1 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c1 
+
+* Fri Jan 07 2011  <Minnikhanov at gmail.com> - 3.0.3-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..2828820 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e6211331f06fe408e2c42f5ce7503160  railties-3.0.3.gem


More information about the scm-commits mailing list