[rubygem-rails-api] Update rubygem-rails-api to 0.1.0-6 Resolves: #990422 - fix macro in comment Resolves: #990422 - Des

Miroslav Suchý msuchy at fedoraproject.org
Mon Aug 5 13:49:24 UTC 2013


commit 170fc6f1f6dc31aa212b45bcf0529703fe599ce7
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Mon Aug 5 15:49:14 2013 +0200

    Update rubygem-rails-api to 0.1.0-6
    Resolves: #990422 - fix macro in comment
    Resolves: #990422 - Description should end up with a dot.
    Resolves: #990422 - include LICENSE
    Resolves: #990422 - use new url

 .gitignore             |    2 +
 LICENSE                |   22 ++++++++++
 rubygem-rails-api.spec |  110 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    2 +
 4 files changed, 136 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4204ee1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/rails-api-0.1.0.gem
+/LICENSE
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..117ce75
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Santiago Pastorino and Carlos Antonio da Silva
+
+MIT License
+
+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.
diff --git a/rubygem-rails-api.spec b/rubygem-rails-api.spec
new file mode 100644
index 0000000..3acf88a
--- /dev/null
+++ b/rubygem-rails-api.spec
@@ -0,0 +1,110 @@
+%global gem_name rails-api
+
+Name: rubygem-%{gem_name}
+Version: 0.1.0
+Release: 6%{?dist}
+Summary: Rails for API only Applications
+Group: Development/Languages
+License: MIT
+URL: https://github.com/rails-api/rails-api
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# https://github.com/rails-api/rails-api/issues/99
+Source1: LICENSE
+Requires: ruby(release)
+Requires: ruby(rubygems) >= 1.3.6
+Requires: rubygem(actionpack) >= 3.2.11
+Requires: rubygem(railties) >= 3.2.11
+Requires: rubygem(tzinfo) => 0.3.31
+Requires: rubygem(tzinfo) < 0.4
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel >= 1.3.6
+BuildRequires: ruby 
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+#test
+BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(rails)
+
+%description
+Rails::API is a subset of a normal Rails application,
+created for applications that don't require all
+functionality that a complete Rails application provides.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n  %{gem_name}-%{version}
+
+cp -a %{SOURCE1} ./
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
+# by default, so that we can move it into the buildroot in %%install
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+
+mkdir -p %{buildroot}%{_bindir}
+cp -pa .%{_bindir}/* \
+        %{buildroot}%{_bindir}/
+
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+
+%check
+pushd .%{gem_instdir}
+sed -i '/require.*bundler/d' test/test_helper.rb
+#generators are omited because it generate application which use bundler
+testrb -v -Ilib -Itest test/api_application/*_test.rb test/api_controller/*_test.rb
+popd
+
+%files
+%dir %{gem_instdir}
+%{_bindir}/rails-api
+%{gem_instdir}/bin
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+%doc %{gem_instdir}/README.md
+%doc LICENSE
+
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/test
+
+%changelog
+* Mon Aug 05 2013 Miroslav Suchý <msuchy at redhat.com> 0.1.0-6
+- 990422 - fix macro in comment
+- 990422 - Description should end up with a dot.
+- 990422 - include LICENSE
+- 990422 - use new url
+
+* Mon Jul 29 2013 Miroslav Suchý <msuchy at redhat.com> 0.1.0-5
+- BR rails
+
+* Mon Jul 29 2013 Miroslav Suchý <msuchy at redhat.com> 0.1.0-4
+- BR minitest
+
+* Mon Jul 29 2013 Miroslav Suchý <msuchy at redhat.com> 0.1.0-3
+- add tests
+
+* Mon Jul 29 2013 Miroslav Suchý <msuchy at redhat.com> 0.1.0-2
+- initial package
+
diff --git a/sources b/sources
index e69de29..da9fc31 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+f58350bc4c18d93ed866f2a5c72f48e9  rails-api-0.1.0.gem
+2d0e7b99b929870d195dce8b37a70a80  LICENSE


More information about the scm-commits mailing list