# Generated from arr-pm-0.0.12.gem by gem2rpm -*- rpm-spec -*- %global gem_name arr-pm %global version 0.0.12 %global release 1 Summary: Ruby RPM library (pure ruby, no lib-rpm) Name: rubygem-%{gem_name} Version: %{version} Release: %{release} Group: Development/Ruby License: Apache-2.0 URL: https://github.com/jordansissel/ruby-arr-pm Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby BuildRequires: rubygems-devel BuildArch: noarch %description This library allows to you to read and write rpm packages. Written in pure ruby because lib-rpm is not available on all systems %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 \ .gitignore .rubocop.yml \ cpio.rb \ Gemfile \ Makefile \ arr-pm.gemspec \ 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}/CHANGELOG.md %doc %{gem_instdir}/README.md %changelog * Sat Feb 01 2025 curtisy - 0.0.12-1 - Initial version of the package