# Generated from cucumber-expressions-6.0.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name cucumber-expressions Name: rubygem-%{gem_name} Version: 6.0.1 Release: 2%{?dist}.1 Summary: A simpler alternative to Regular Expressions License: MIT URL: https://github.com/cucumber/cucumber-expressions-ruby#readme Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 BuildRequires: %{_bindir}/rspec BuildRequires: rubygem(rspec-expectations) BuildArch: noarch %description Cucumber Expressions - a simpler alternative to Regular Expressions. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %if 0%{?rhel} <= 7 gem unpack %{SOURCE0} gem specification %{SOURCE0} -l --ruby > %{gem_name}-%{version}.gemspec %endif %setup -q -D -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}/ %check pushd .%{gem_instdir} rspec spec popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE %{gem_instdir}/Makefile %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/cucumber-expressions.gemspec %{gem_instdir}/examples.txt %{gem_instdir}/spec %changelog * Sat Feb 02 2019 Fedora Release Engineering - 6.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jul 30 2018 jackorp - 6.0.1-1 - Initial package