[rubygem-gettext_i18n_rails] Initial import (#738590)

Bohuslav Kabrda bkabrda at fedoraproject.org
Wed Jan 4 14:53:20 UTC 2012


commit 65046fefb123ee4ec1dc36419ecb74467ddfdb31
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Jan 4 15:52:54 2012 +0100

    Initial import (#738590)

 .gitignore                      |    1 +
 rubygem-gettext_i18n_rails.spec |  104 +++++++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 3 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3788411 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gettext_i18n_rails-0.4.0.gem
diff --git a/rubygem-gettext_i18n_rails.spec b/rubygem-gettext_i18n_rails.spec
new file mode 100644
index 0000000..b28b953
--- /dev/null
+++ b/rubygem-gettext_i18n_rails.spec
@@ -0,0 +1,104 @@
+%global gemname gettext_i18n_rails
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: Simple FastGettext Rails integration
+Name: rubygem-%{gemname}
+Version: 0.4.0
+Release: 1%{?dist}
+Group: Development/Languages
+# The previously bundled rubygem-gettext_extractor was "retired" and the file
+# in this package is now the official upstream: https://github.com/retoo/ruby_gettext_extractor/issues/4
+# Also, the license is now only Public Domain, because the official upstream is here and
+# the ruby_gettext_extractor.rb file no longer contains additional licensing information.
+License: Public Domain
+URL: http://github.com/grosser/gettext_i18n_rails
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems) 
+Requires: rubygem(fast_gettext)
+Requires: rubygem(rails)
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems)
+BuildRequires: rubygem(fast_gettext)
+BuildRequires: rubygem(rspec-core)
+# Tests don't test everything, so BR: rubygem(rails) is not needed, these are enough
+BuildRequires: rubygem(actionpack)
+BuildRequires: rubygem(activesupport)
+BuildRequires: rubygem(activerecord)
+BuildRequires: rubygem(actionmailer)
+BuildRequires: rubygem(sqlite3)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+Translate via FastGettext, use any other I18n backend as extension/fallback.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+            --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* \
+        %{buildroot}%{gemdir}/
+
+
+%check
+pushd .%{geminstdir}
+rspec spec/
+popd
+
+%files
+%dir %{geminstdir}
+%{geminstdir}/lib
+%{geminstdir}/VERSION
+%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%doc %{geminstdir}/Readme.md
+
+%files doc
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%{geminstdir}/Rakefile
+%{geminstdir}/Gemfile
+%{geminstdir}/Gemfile.lock
+%{geminstdir}/init.rb
+%{geminstdir}/spec
+%{geminstdir}/gettext_i18n_rails.gemspec
+
+%changelog
+* Wed Jan 04 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.4.0-1
+- New version.
+- Modified Requires and BuildRequires according to new version.
+
+* Mon Jan 02 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.3.6-1
+- Update to the latest version.
+- Changed license to Public Domain only.
+- Moved init.rb to doc subpackage, as it is not needed for runtime.
+- Fixed dependencies according to the gemspec in this version.
+
+* Wed Oct 26 2011 Bohuslav Kabrda <bkabrda at redhat.com> - 0.3.0-1
+- Upgraded to the latest version.
+- Removed the patch that fixed failing tests (fixed in new version).
+- Clarified the license.
+- Moved Readme.md to the main package, as it contains licensing information.
+- Moved VERSION to the main package and unmarked it as a doc, as it's needed for runtime.
+
+* Wed Sep 14 2011 Bohuslav Kabrda <bkabrda at redhat.com> - 0.2.20-1
+- Initial package
diff --git a/sources b/sources
index e69de29..96abade 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fb73ee81bdc543bd7e4b04265d907497  gettext_i18n_rails-0.4.0.gem


More information about the scm-commits mailing list