# Generated from readline-0.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name readline Name: rubygem-%{gem_name} Version: 0.0.2 Release: 1%{?dist} Summary: It's a loader for "readline" License: Ruby license URL: https://github.com/ruby/readline Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: ruby-default-gems Requires: ruby-default-gems BuildArch: noarch %description This is just a loader for "readline". If Ruby has "readline-ext" gem that is a native extension, this gem will load it first. If Ruby doesn't have the "readline-ext" gem this gem will load "reline" that is a compatible library with "readline-ext" gem and is implemented by pure 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} # Require ruby-default-gems instead %gemspec_remove_dep -g reline %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %files %dir %{gem_instdir} %{gem_instdir}/BSDL %license %{gem_instdir}/COPYING %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %changelog * Thu Aug 06 2020 Pavel Valena - 0.0.2-1 - Initial package