# Generated from gettext_i18n_rails-0.2.20.gem by gem2rpm -*- rpm-spec -*- %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.3.6 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: ruby Requires: rubygem(fast_gettext) Requires: rubygem(rails) Requires: rubygem(gettext) Requires: rubygem(ruby_parser) BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(rubygems) BuildRequires: ruby 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 * Mon Jan 02 2012 Bohuslav Kabrda - 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 - 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 - 0.2.20-1 - Initial package