# Generated from backports-3.13.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name backports Name: rubygem-%{gem_name} Version: 3.13.0 Release: 1%{?dist} Summary: Backports of Ruby features for older Ruby License: MIT URL: http://github.com/marcandre/backports Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch %description Essential backports that enable many of the nice features of Ruby for earlier versions. %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} 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}/ %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %{gem_instdir}/.gitmodules %exclude %{gem_instdir}/.irbrc %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/LICENSE.txt %exclude %{gem_instdir}/backports.gemspec %{gem_instdir}/default.mspec %{gem_instdir}/frozen_old_spec %{gem_libdir} %{gem_instdir}/set_version %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/.document %doc %{gem_instdir}/CHANGELOG.rdoc %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/spec %{gem_instdir}/test %changelog * Fri Apr 05 2019 mockbuilder - 3.13.0-1 - Initial package