[rubygem-fast_gettext] Initial import (#727155).

Vít Ondruch vondruch at fedoraproject.org
Thu Oct 20 12:48:59 UTC 2011


commit fc69efff456f16aabdc74f077495f3d34583499d
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Aug 1 15:00:19 2011 +0200

    Initial import (#727155).

 .gitignore                |    1 +
 rubygem-fast_gettext.spec |   93 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 95 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..dc0322d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fast_gettext-0.6.1.gem
diff --git a/rubygem-fast_gettext.spec b/rubygem-fast_gettext.spec
new file mode 100644
index 0000000..b716574
--- /dev/null
+++ b/rubygem-fast_gettext.spec
@@ -0,0 +1,93 @@
+# Generated from fast_gettext-0.5.13.gem by gem2rpm -*- rpm-spec -*-
+%global gemname fast_gettext
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: A simple, fast, memory-efficient and threadsafe implementation of GetText
+Name: rubygem-%{gemname}
+Version: 0.6.1
+Release: 1%{?dist}
+Group: Development/Languages
+# fast_gettext is Public Domain. However the files in lib/vendor directory
+# are GPLv2+ or Ruby licensed.
+License: Public Domain and (GPLv2+ or Ruby)
+URL: http://github.com/grosser/fast_gettext
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+Requires: ruby
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems)
+BuildRequires: ruby
+# Use rspec-core until rspec are not migrated to RSpec 2.x
+BuildRequires: rubygem(rspec-core)
+BuildRequires: rubygem(activerecord)
+BuildRequires: rubygem(sqlite3)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+A simple, fast, memory-efficient and threadsafe implementation of GetText
+
+
+%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}
+
+# Kill shebang.
+sed -i '1,1d' .%{geminstdir}/lib/fast_gettext/vendor/string.rb
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* \
+        %{buildroot}%{gemdir}/
+
+%check
+pushd .%{geminstdir}
+# Do not use bundler, since it tries to install unnecessary gems.
+sed -i -e 's/bundle exec//' spec/fast_gettext/vendor/iconv_spec.rb
+rspec spec
+popd
+
+%files
+%dir %{geminstdir}
+%exclude %{geminstdir}/.travis.yml
+%exclude %{geminstdir}/Gemfile*
+%doc %{geminstdir}/Readme.md
+%exclude %{geminstdir}/fast_gettext.gemspec
+%{geminstdir}/lib
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%doc %{geminstdir}/CHANGELOG
+%{geminstdir}/Rakefile
+%{geminstdir}/VERSION
+%{geminstdir}/benchmark
+%doc %{geminstdir}/examples
+%{geminstdir}/spec
+%doc %{gemdir}/doc/%{gemname}-%{version}
+
+
+%changelog
+* Mon Oct 17 2011 Vít Ondruch <vondruch at redhat.com> - 0.6.1-1
+- Update to fast_gettext 6.1.
+
+* Mon Aug 01 2011 Vít Ondruch <vondruch at redhat.com> - 0.5.13-1
+- Initial package
diff --git a/sources b/sources
index e69de29..6f19e25 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bbbf6919650cd26c4c61e1ab2b053641  fast_gettext-0.6.1.gem


More information about the scm-commits mailing list