# Generated from ruby2_keywords-0.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name ruby2_keywords Name: rubygem-%{gem_name} Version: 0.0.2 Release: 1%{?dist}.1 Summary: Shim library for Module#ruby2_keywords License: Ruby URL: https://github.com/ruby/ruby2_keywords Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch %description Shim library for Module#ruby2_keywords. %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 gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # There's no test suite popd %files %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %license %{gem_instdir}/README.md %files doc %doc %{gem_docdir} %{gem_instdir}/ruby2_keywords.gemspec %changelog * Wed Feb 12 2020 Pavel Valena - 0.0.2-1 - Initial package