# template: hammer_plugin %global gem_name hammer_cli_foreman_rh_cloud %global plugin_name foreman_rh_cloud %global hammer_confdir %{_sysconfdir}/hammer Name: rubygem-%{gem_name} Version: 1.0.5 Release: 1.20250908192129209431.master.3.g0dc1950%{?dist} Summary: Foreman Rh Cloud plugin for Hammer CLI License: GPLv3+ URL: https://github.com/theforeman/hammer-cli-foreman-rh-cloud Source0: hammer_cli_foreman_rh_cloud-1.0.5.gem # start specfile generated dependencies Requires: ruby >= 2.7 Requires: ruby < 4 BuildRequires: ruby >= 2.7 BuildRequires: ruby < 4 BuildRequires: rubygems-devel BuildArch: noarch Provides: hammer-cli-plugin-%{plugin_name} = %{version} # end specfile generated dependencies %description Foreman Rh Cloud plugin for Hammer CLI. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n hammer_cli_foreman_rh_cloud-1.0.5 %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}/ mkdir -p %{buildroot}%{hammer_confdir}/cli.modules.d install -m 0644 .%{gem_instdir}/config/%{plugin_name}.yml \ %{buildroot}%{hammer_confdir}/cli.modules.d/%{plugin_name}.yml %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_libdir} %{gem_instdir}/locale %exclude %{gem_cache} %{gem_spec} %config(noreplace) %{hammer_confdir}/cli.modules.d/%{plugin_name}.yml %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %doc %{gem_instdir}/config %{gem_instdir}/test %changelog * Mon Sep 08 2025 Packit - 1.0.5-1.20250908192129209431.master.3.g0dc1950 - Update .packit.yaml (Chris Roberts) - build commits into @theforeman/develop copr (Chris Roberts) - Add mutex_m gem to Gemfile to fix test failures (Chris Roberts) * Wed Sep 03 2025 Chris Roberts - 1.0.5-1 - Update to 1.0.5 * Tue Apr 01 2025 chrobert - 1.0.4-1 - Update to 1.0.4 * Thu Sep 19 2024 Chris Roberts - 1.0.3-1 - Update to 1.0.3 * Mon Oct 09 2023 Chris Roberts 1.0.2-1 - Update to 1.0.2 * Thu Oct 28 2021 Shimon Shtein 1.0.1-1 - Add rubygem-hammer_cli_foreman_rh_cloud generated by gem2rpm using the hammer_plugin template