# Generated from clamp-1.3.2.gem by gem2rpm -*- rpm-spec -*- %define gem_name clamp %define version 1.3.2 %define release 1 Summary: a minimal framework for command-line utilities Name: rubygem-%{gem_name} Version: %{version} Release: %{release} Group: Development/Ruby License: MIT URL: https://github.com/mdub/clamp Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby BuildRequires: rubygems-devel BuildArch: noarch %description Clamp provides an object-model for command-line utilities. It handles parsing of command-line options, and generation of usage help %package doc Summary: Documentation for %{name} # Directory ownership issue Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -n %{gem_name}-%{version} mv ../%{gem_name}-%{version}.gemspec . %build gem build ./%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ # cleanup pushd %{buildroot}%{gem_instdir} rm -rf \ .autotest .editorconfig \ .gitignore .travis.yml \ .rubocop.yml .rspec \ Gemfile Guardfile \ Rakefile \ clamp.gemspec \ examples \ spec %{nil} popd %files %dir %{gem_instdir} %exclude %{gem_cache} %{gem_libdir} %{gem_spec} %license %{gem_instdir}/LICENSE %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %doc %{gem_instdir}/CHANGES.md %changelog * Sat Feb 01 2025 curtisy - 1.3.2-1 - Initial version of the package