Blame SPECS/rubygem-i18n.spec

42a1ef
%{?scl:%scl_package rubygem-%{gem_name}}
42a1ef
%{!?scl:%global pkg_name %{name}}
42a1ef
42a1ef
%global gem_name i18n
42a1ef
42a1ef
Summary: New wave Internationalization support for Ruby
42a1ef
Name: %{?scl_prefix}rubygem-%{gem_name}
42a1ef
Version: 0.7.0
42a1ef
Release: 4%{?dist}
42a1ef
Group: Development/Languages
42a1ef
License: MIT and (BSD or Ruby)
42a1ef
URL: http://github.com/svenfuchs/i18n
42a1ef
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
42a1ef
# Fixes Ruby 2.2 test failures related to frozen objects.
42a1ef
# https://github.com/svenfuchs/i18n/pull/305
42a1ef
Patch0: rubygem-i18n-0.7.0-Ignore-metadata-for-frozen-classes.patch
42a1ef
42a1ef
Requires: %{?scl_prefix_ruby}ruby(rubygems)
42a1ef
Requires: %{?scl_prefix_ruby}ruby(release)
42a1ef
BuildRequires: %{?scl_prefix_ruby}ruby
42a1ef
BuildRequires: %{?scl_prefix_ruby}ruby(release)
42a1ef
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
42a1ef
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
42a1ef
BuildRequires: %{?scl_prefix}rubygem(mocha)
42a1ef
BuildRequires: %{?scl_prefix}rubygem(test_declarative)
42a1ef
BuildArch: noarch
42a1ef
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
42a1ef
42a1ef
%description
42a1ef
Ruby Internationalization and localization solution.
42a1ef
42a1ef
%package doc
42a1ef
Summary: Documentation for %{pkg_name}
42a1ef
Group: Documentation
42a1ef
Requires:%{?scl_prefix}%{pkg_name} = %{version}-%{release}
42a1ef
42a1ef
%description doc
42a1ef
Documentation for %{pkg_name}.
42a1ef
42a1ef
%prep
42a1ef
%{?scl:scl enable %{scl} - << \EOF}
42a1ef
gem unpack %{SOURCE0}
42a1ef
%{?scl:EOF}
42a1ef
%setup -q -D -T -n %{gem_name}-%{version}
42a1ef
%{?scl:scl enable %{scl} - << \EOF}
42a1ef
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
42a1ef
%{?scl:EOF}
42a1ef
42a1ef
%patch0 -p1
42a1ef
42a1ef
%build
42a1ef
%{?scl:scl enable %{scl} - << \EOF}
42a1ef
gem build %{gem_name}.gemspec
42a1ef
%gem_install
42a1ef
%{?scl:EOF}
42a1ef
42a1ef
42a1ef
%install
42a1ef
mkdir -p %{buildroot}%{gem_dir}
42a1ef
cp -a .%{gem_dir}/* \
42a1ef
        %{buildroot}%{gem_dir}/
42a1ef
42a1ef
%check
42a1ef
pushd .%{gem_instdir}
42a1ef
42a1ef
# Bundler just complicates everything in our case, remove it.
42a1ef
sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
42a1ef
42a1ef
# Tests are failing without LANG environment is set.
42a1ef
# https://github.com/svenfuchs/i18n/issues/115
42a1ef
42a1ef
%{?scl:scl enable %{scl} - << \EOF}
42a1ef
LANG=en_US.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
42a1ef
%{?scl:EOF}
42a1ef
popd
42a1ef
42a1ef
%files
42a1ef
%dir %{gem_instdir}
42a1ef
%{gem_libdir}
42a1ef
%doc %{gem_instdir}/README.md
42a1ef
%doc %{gem_instdir}/MIT-LICENSE
42a1ef
%{gem_cache}
42a1ef
%{gem_spec}
42a1ef
42a1ef
%files doc
42a1ef
%{gem_instdir}/test
42a1ef
%{gem_instdir}/gemfiles
42a1ef
%doc %{gem_docdir}
42a1ef
42a1ef
%changelog
42a1ef
* Sat Feb 20 2016 Pavel Valena <pvalena@redhat.com> - 0.7.0-4
42a1ef
- Add scl macros
42a1ef
42a1ef
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
42a1ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
42a1ef
42a1ef
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
42a1ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
42a1ef
42a1ef
* Tue Jan 20 2015 Vít Ondruch <vondruch@redhat.com> - 0.7.0-1
42a1ef
- Update to i18n 0.7.0.
42a1ef
42a1ef
* Tue Jul 22 2014 Josef Stribny <jstribny@redhat.com> - 0.6.11-1
42a1ef
- Update to i18n 0.6.11
42a1ef
42a1ef
* Wed Jun 18 2014 Josef Stribny <jstribny@redhat.com> - 0.6.9-4
42a1ef
- Fix test suite compatibility with minitest 5
42a1ef
42a1ef
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.9-3
42a1ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
42a1ef
42a1ef
* Tue Feb 04 2014 Josef Stribny <jstribny@redhat.com> - 0.6.9-2
42a1ef
- Fix license: Ruby is now licensed under BSD or Ruby
42a1ef
42a1ef
* Mon Dec 09 2013 Vít Ondruch <vondruch@redhat.com> - 0.6.9-1
42a1ef
- Update to i18n 0.6.9.
42a1ef
  - Fix CVE-2013-4491.
42a1ef
42a1ef
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-2
42a1ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
42a1ef
42a1ef
* Wed Jul 24 2013 Josef Stribny <jstribny@redhat.com> - 0.6.4-1
42a1ef
- Update to i18n 0.6.4.
42a1ef
42a1ef
* Tue Feb 26 2013 Vít Ondruch <vondruch@redhat.com> - 0.6.1-3
42a1ef
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
42a1ef
42a1ef
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
42a1ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
42a1ef
42a1ef
* Fri Oct 26 2012 Vít Ondruch <vondruch@redhat.com> - 0.6.1-1
42a1ef
- Update to I18n 0.6.1.
42a1ef
42a1ef
* Wed Jul 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.0-1
42a1ef
- Update to I18n 0.6.0.
42a1ef
- Removed unneeded %%defattr usage.
42a1ef
42a1ef
* Thu Jan 19 2012 Vít Ondruch <vondruch@redhat.com> - 0.5.0-3
42a1ef
- Rebuilt for Ruby 1.9.3.
42a1ef
- Enabled test suite.
42a1ef
42a1ef
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
42a1ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
42a1ef
42a1ef
* Thu Mar 24 2011 Vít Ondruch <vondruch@redhat.com> - 0.5.0-1
42a1ef
- Update to i18n 0.5.0.
42a1ef
- Documentation moved into subpackage.
42a1ef
- Removed unnecessary cleanup.
42a1ef
- Preparetion for test suite execution during build.
42a1ef
42a1ef
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
42a1ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
42a1ef
42a1ef
* Thu Nov 18 2010 Jozef Zigmund <jzigmund@redhat.com> - 0.4.2-2
42a1ef
- Add GPLv2 or Ruby License
42a1ef
- Files MIT-LICENSE, geminstdir/lib/i18n.rb are non executable now
42a1ef
42a1ef
* Thu Nov 11 2010 Jozef Zigmund <jzigmund@redhat.com> - 0.4.2-1
42a1ef
- Initial package