From c74596b660cc9b7f8321b69faa16f7f17abc7feb Mon Sep 17 00:00:00 2001 From: Jozef Zigmund Date: Mon, 22 Nov 2010 16:23:11 +0100 Subject: [PATCH] Added spec file --- .gitignore | 1 + rubygem-i18n.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 58 insertions(+) create mode 100644 rubygem-i18n.spec diff --git a/.gitignore b/.gitignore index e69de29..8706e39 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/i18n-0.4.2.gem diff --git a/rubygem-i18n.spec b/rubygem-i18n.spec new file mode 100644 index 0000000..0cec727 --- /dev/null +++ b/rubygem-i18n.spec @@ -0,0 +1,56 @@ +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname i18n +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} + +Summary: New wave Internationalization support for Ruby +Name: rubygem-%{gemname} +Version: 0.4.2 +Release: 2%{?dist} +Group: Development/Languages +License: MIT and (GPLv2 or Ruby) +URL: http://github.com/svenfuchs/i18n +Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem +Requires: rubygems +Requires: ruby(abi) = 1.8 +BuildRequires: rubygems +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +Ruby Internationalization and localization solution. + + +%prep + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gemdir} +gem install --local --install-dir %{buildroot}%{gemdir} \ + --force --rdoc %{SOURCE0} +chmod -x %{buildroot}%{geminstdir}/MIT-LICENSE +chmod -x %{buildroot}%{geminstdir}/lib/i18n.rb + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%dir %{geminstdir} +%{geminstdir}/lib +%doc %{geminstdir}/README.textile +%doc %{geminstdir}/MIT-LICENSE +%doc %{geminstdir}/CHANGELOG.textile +%doc %{gemdir}/doc/%{gemname}-%{version} +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + + +%changelog +* Thu Nov 18 2010 Jozef Zigmund - 0.4.2-2 +- Add GPLv2 or Ruby License +- Files MIT-LICENSE, geminstdir/lib/i18n.rb are non executable now + +* Thu Nov 11 2010 Jozef Zigmund - 0.4.2-1 +- Initial package diff --git a/sources b/sources index e69de29..cd4969c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +be9b3a47b16d0bf29256ff55d6babe09 i18n-0.4.2.gem