Blame SPECS/rubygem-fast_gettext.spec

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