# Generated from text2048-0.10.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name text2048 Name: rubygem-%{gem_name} Version: 0.10.2 Release: 1%{?dist} Summary: Text mode 2048 game License: GPL3 URL: http://github.com/yasuhito/text2048 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 # BuildRequires: rubygem(guard) >= 2.6.1 # BuildRequires: rubygem(guard) < 2.7 # BuildRequires: rubygem(guard-bundler) >= 2.0.0 # BuildRequires: rubygem(guard-bundler) < 2.1 # BuildRequires: rubygem(guard-cucumber) >= 1.4.1 # BuildRequires: rubygem(guard-cucumber) < 1.5 # BuildRequires: rubygem(guard-rspec) >= 4.2.9 # BuildRequires: rubygem(guard-rspec) < 4.3 # BuildRequires: rubygem(inch) >= 0.4.6 # BuildRequires: rubygem(inch) < 0.5 # BuildRequires: rubygem(yard) >= 0.8.7.4 # BuildRequires: rubygem(yard) < 0.8.8 # BuildRequires: rubygem(codeclimate-test-reporter) # BuildRequires: rubygem(coveralls) >= 0.7.0 # BuildRequires: rubygem(coveralls) < 0.8 # BuildRequires: rubygem(cucumber) >= 1.3.15 # BuildRequires: rubygem(cucumber) < 1.4 # BuildRequires: rubygem(flay) >= 2.5.0 # BuildRequires: rubygem(flay) < 2.6 # BuildRequires: rubygem(flog) >= 4.2.1 # BuildRequires: rubygem(flog) < 4.3 # BuildRequires: rubygem(reek) >= 1.3.7 # BuildRequires: rubygem(reek) < 1.4 # BuildRequires: rubygem(rspec-given) >= 3.5.4 # BuildRequires: rubygem(rspec-given) < 3.6 # BuildRequires: rubygem(rubocop) >= 0.23.0 # BuildRequires: rubygem(rubocop) < 0.24 BuildArch: noarch %description Text mode 2048 game in Ruby. %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} # cucumber popd %files %dir %{gem_instdir} %{_bindir}/2048 %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CONTRIBUTING.md %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/features %{gem_instdir}/spec %{gem_instdir}/text2048.gemspec %changelog * Wed Aug 25 2021 mockbuilder - 0.10.2-1 - Initial package