# Generated from mustermann-1.0.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name mustermann # Circular dependency with rubygem-sinatra %{?_with_bootstrap: %global bootstrap 1} Name: rubygem-%{gem_name} Version: 1.0.0 Release: 2%{?dist} Summary: Use patterns like regular expressions License: MIT URL: https://github.com/sinatra/mustermann Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Support and mustermann-contrib routines required by test suite. # git clone https://github.com/sinatra/mustermann.git && cd mustermann # git checkout v1.0.0 && tar czvf mustermann-1.0.0-support.tgz support/ Source1: mustermann-1.0.0-support.tgz # tar czvf mustermann-1.0.0-mustermann-contrib.tgz mustermann-contrib/ Source2: mustermann-1.0.0-mustermann-contrib.tgz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.2.0 BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec-its) %if ! 0%{?bootstrap} BuildRequires: rubygem(sinatra) %endif BuildRequires: rubygem(rack-test) BuildArch: noarch %description library implementing patterns that behave like regular expressions. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} -b 1 -b 2 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.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}/ %if ! 0%{?bootstrap} # Run the test suite %check # We don't ship tool. sed -i "/^require 'tool\/warning_filter'/ s/^/#/" \ %{_builddir}/support/lib/support/env.rb # We don't test coverage. sed -i "/^require 'support\/coverage'/ s/^/#/" \ %{_builddir}/support/lib/support.rb pushd .%{gem_instdir} rspec -I%{_builddir}/{support,mustermann-contrib}/lib spec popd %endif %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_instdir}/mustermann.gemspec %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %{gem_instdir}/bench %{gem_instdir}/spec %changelog * Thu Jul 27 2017 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jun 09 2017 Jun Aruga - 1.0.0-1 - Initial package