rubygem-i18n
This commit is contained in:
parent
0c6e2c43f6
commit
ef0f12697e
BIN
i18n-1.1.1.gem
Normal file
BIN
i18n-1.1.1.gem
Normal file
Binary file not shown.
55
rubygem-i18n.spec
Normal file
55
rubygem-i18n.spec
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
%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
|
||||||
5
rubygem-i18n.yaml
Normal file
5
rubygem-i18n.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
version_control: github
|
||||||
|
src_repo: ruby-i18n/i18n
|
||||||
|
tag_prefix: "i18n-"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user