# Generated from i18n-tasks-1.0.14.gem by gem2rpm -*- rpm-spec -*- %global gem_name i18n-tasks Name: rubygem-%{gem_name} Version: 1.0.14 Release: 1%{?dist} Summary: Manage localization and translation with the awesome power of static analysis License: MIT URL: https://github.com/glebm/i18n-tasks Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.6 BuildRequires: ruby < 4.0 # BuildRequires: rubygem(overcommit) >= 0.58.0 # BuildRequires: rubygem(overcommit) < 0.59 # BuildRequires: rubygem(rspec) >= 3.3 # BuildRequires: rubygem(rspec) < 4 # BuildRequires: rubygem(rubocop) >= 1.50.1 # BuildRequires: rubygem(rubocop) < 1.51 # BuildRequires: rubygem(rubocop-rake) >= 0.6.0 # BuildRequires: rubygem(rubocop-rake) < 0.7 # BuildRequires: rubygem(rubocop-rspec) >= 2.19.0 # BuildRequires: rubygem(rubocop-rspec) < 2.20 # BuildRequires: rubygem(simplecov) # BuildRequires: rubygem(yard) # BuildRequires: rubygem(deepl-rb) >= 2.1.0 # BuildRequires: rubygem(easy_translate) >= 0.5.1 # BuildRequires: rubygem(yandex-translator) >= 0.3.3 BuildArch: noarch %description i18n-tasks helps you find and manage missing and unused translations. It analyses code statically for key usages, such as `I18n.t('some.key')`, in order to report keys that are missing or unused, pre-fill missing keys (optionally from Google Translate), and remove unused keys. %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 # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/i18n-tasks %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/bin %{gem_instdir}/config %{gem_libdir} %{gem_instdir}/templates %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/i18n-tasks.gemspec %changelog * Mon May 13 2024 mockbuilder - 1.0.14-1 - Initial package