diff --git a/.rubygem-fast_gettext.metadata b/.rubygem-fast_gettext.metadata new file mode 100644 index 0000000..91c1c28 --- /dev/null +++ b/.rubygem-fast_gettext.metadata @@ -0,0 +1 @@ +be8e57c16885e70ea98a7c623357c0ccc7ae6330 SOURCES/fast_gettext-1.2.0.gem diff --git a/SOURCES/fast_gettext-2.0.3-spec.tar.gz b/SOURCES/fast_gettext-2.0.3-spec.tar.gz new file mode 100644 index 0000000..1580c6d Binary files /dev/null and b/SOURCES/fast_gettext-2.0.3-spec.tar.gz differ diff --git a/SPECS/rubygem-fast_gettext.spec b/SPECS/rubygem-fast_gettext.spec new file mode 100644 index 0000000..5d9fea2 --- /dev/null +++ b/SPECS/rubygem-fast_gettext.spec @@ -0,0 +1,150 @@ +# Generated from fast_gettext-0.5.13.gem by gem2rpm -*- rpm-spec -*- +%global gem_name fast_gettext + +# Turning off tests until all the dependencies are in EPEL8 +%bcond_with tests + +Name: rubygem-%{gem_name} +Version: 1.2.0 +Release: 9%{?dist} +Summary: A simple, fast, memory-efficient and threadsafe implementation of GetText +# fast_gettext is MIT. However the files in lib/vendor directory +# are LGPL, BSD or Ruby licensed. +# https://github.com/grosser/fast_gettext/issues/50 +License: MIT and (BSD or Ruby) and (LGPLv2+ or BSD or Ruby) +URL: https://github.com/grosser/fast_gettext +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/grosser/fast_gettext.git && cd fast_gettext +# git checkout v1.2.0 && tar czvf fast_gettext-1.2.0-specs.tar.gz spec/ +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +%if %{with tests} +Source1: %{gem_name}-%{version}-specs.tar.gz +BuildRequires: rubygem(activerecord) +BuildRequires: rubygem(rspec) +BuildRequires: rubygem(sqlite3) +%endif +BuildArch: noarch + +%description +A simple, fast, memory-efficient and threadsafe implementation of GetText. + + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name}. + +%prep +%setup -q -c -T +%gem_install -n %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +chmod a+x %{buildroot}%{gem_libdir}/fast_gettext/vendor/string.rb +%if %{with tests} +%check +pushd .%{gem_instdir} + +tar xzf %{SOURCE1} + +# Do not use bundler, since it tries to install unnecessary gems. +sed -i -e 's/bundle exec //' spec/fast_gettext/vendor/iconv_spec.rb +sed -i -e 's/bundle exec //' spec/fast_gettext/vendor/string_spec.rb + +LANG=C.UTF-8 rspec spec + +popd +%endif + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/Readme.md +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG + +%changelog +* Thu Jan 23 2020 Breno Brand Fernandes - 1.2.0-9 +- Made the tests optional, until all the dependencies are in EPEL8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.2.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.2.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1.2.0-6 +- Use C.UTF-8 locale + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Sat Jul 14 2018 Fedora Release Engineering - 1.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 1.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Aug 11 2016 Vít Ondruch - 1.2.0-1 +- Update to fast_gettext 1.2.0. + +* Thu Feb 04 2016 Fedora Release Engineering - 0.9.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 24 2015 Vít Ondruch - 0.9.2-1 +- Update to fast_gettext 0.9.2. + +* Thu Jun 18 2015 Fedora Release Engineering - 0.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 19 2014 Vít Ondruch - 0.8.1-1 +- Update to fast_gettext 0.8.1. + +* Sun Jun 08 2014 Fedora Release Engineering - 0.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Aug 19 2013 Vít Ondruch - 0.7.1-1 +- Update to fast_gettext 0.7.1. + +* Sun Aug 04 2013 Fedora Release Engineering - 0.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Mar 07 2013 Vít Ondruch - 0.7.0-1 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 +- Update to fast_gettext 0.7.0. + +* Thu Feb 14 2013 Fedora Release Engineering - 0.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 0.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Feb 02 2012 Vít Ondruch - 0.6.1-3 +- Rebuilt for Ruby 1.9.3. + +* Sat Jan 14 2012 Fedora Release Engineering - 0.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Oct 17 2011 Vít Ondruch - 0.6.1-1 +- Update to fast_gettext 6.1. + +* Mon Aug 01 2011 Vít Ondruch - 0.5.13-1 +- Initial package