## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated from process_executer-1.1.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name process_executer Name: rubygem-%{gem_name} Version: 1.1.0 Release: %autorelease Summary: An API for executing commands in a sub process License: MIT URL: https://github.com/main-branch/process_executer Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # SOURCE1 contains the upstream tag of the project from github # in particular this includes the spec directory which was not # included in the gemfile. Source1: https://github.com/main-branch/%{gem_name}/archive/v%{version}/%{gem_name}-%{version}.tar.gz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 3.0.0 BuildRequires: rubygem(rspec) BuildRequires: rubygem(simplecov) BuildArch: noarch %description An API for executing commands in a sub process. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc An API for executing commands in a sub process %prep %setup -q -n %{gem_name}-%{version} # unpack only the spec files from SOURCE1. tar zxf %{SOURCE1} %{gem_name}-%{version}/spec --strip-components 1 # Skip coverage test formatter, not available sed -i "s/require 'simplecov-lcov'//" spec/spec_helper.rb sed -i "s/, SimpleCov::Formatter::LcovFormatter//" spec/spec_helper.rb %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.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 rspec spec %files %dir %{gem_instdir} %exclude %{gem_instdir}/.markdownlint.yml %exclude %{gem_instdir}/.rubocop.yml %exclude %{gem_instdir}/.tool-versions %exclude %{gem_instdir}/.yardopts %license %{gem_instdir}/LICENSE.md %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/process_executer.gemspec %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 24 2024 Steve Traylen - 1.1.0-1 - First fedora release rhbz#2283324 ## END: Generated by rpmautospec