# Generated from highline-2.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name highline Name: rubygem-%{gem_name} Version: 2.0.2 Release: 1%{?dist} Summary: HighLine is a high-level command-line IO library License: Ruby URL: https://github.com/JEG2/highline Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 # BuildRequires: rubygem(minitest) BuildArch: noarch %description A high-level IO library that provides validation, type conversion, and more for command-line interfaces. HighLine also includes a complete menu system that can crank out anything from simple list selection to complete shells with just minutes of work. %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} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.rubocop.yml %{gem_instdir}/.simplecov %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/COPYING %license %{gem_instdir}/LICENSE %{gem_instdir}/TODO %{gem_instdir}/appveyor.yml %exclude %{gem_instdir}/highline.gemspec %{gem_libdir} %{gem_instdir}/site %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/AUTHORS %doc %{gem_instdir}/Changelog.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %doc %{gem_instdir}/doc %{gem_instdir}/examples %changelog * Tue Apr 09 2019 mockbuilder - 2.0.2-1 - Initial package