56 lines
1.5 KiB
RPMSpec
56 lines
1.5 KiB
RPMSpec
%global gem_name i18n
|
|
Name: rubygem-%{gem_name}
|
|
Version: 1.1.1
|
|
Release: 1
|
|
Summary: New wave Internationalization support for Ruby
|
|
License: MIT and (BSD or Ruby)
|
|
URL: http://github.com/svenfuchs/i18n
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
BuildRequires: ruby ruby(release) rubygems-devel rubygem(minitest) rubygem(mocha)
|
|
BuildRequires: rubygem(test_declarative) rubygem(concurrent-ruby)
|
|
BuildArch: noarch
|
|
%description
|
|
Ruby Internationalization and localization solution.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
%build
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
%gem_install
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
|
|
LANG=C.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%license %{gem_instdir}/MIT-LICENSE
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/README.md
|
|
%{gem_instdir}/gemfiles
|
|
%{gem_instdir}/test
|
|
|
|
%changelog
|
|
* Wed Aug 19 2020 tuShenmei <tushenmei@huawei.com> - 1.1.1-1
|
|
- package init
|