# template: foreman_plugin %global gem_name foreman_expire_hosts %global plugin_name expire_hosts %global foreman_min_version 3.0.0 Name: rubygem-%{gem_name} Version: 8.2.0 Release: 1%{?foremandist}%{?dist} Summary: Foreman plugin for limiting host lifetime License: GPLv3 URL: https://github.com/theforeman/foreman_expire_hosts Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: %{gem_name}.cron.d # start specfile generated dependencies Requires: foreman >= %{foreman_min_version} BuildRequires: foreman-plugin >= %{foreman_min_version} Requires: ruby BuildRequires: ruby BuildRequires: rubygems-devel BuildArch: noarch Provides: foreman-plugin-%{plugin_name} = %{version} # end specfile generated dependencies %description A Foreman plugin that allows hosts to expire at a configurable date. Hosts will be shut down and automatically deleted after a grace period. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %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}%{_sysconfdir}/cron.d/ mv %{buildroot}%{gem_instdir}/extra/*.cron %{buildroot}%{_sysconfdir}/cron.d/%{gem_name} %foreman_bundlerd_file %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_instdir}/app %{gem_instdir}/config %{gem_instdir}/db %{gem_instdir}/extra %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %{foreman_bundlerd_plugin} %config(noreplace) %{_sysconfdir}/cron.d/%{gem_name} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %{gem_instdir}/test %posttrans %{foreman_plugin_log} %changelog * Fri May 31 2024 David Ochner 8.2.0-1 - Update to 8.2.0 * Mon Mar 06 2023 Foreman Packaging Automation 8.1.0-1 - Update to 8.1.0 * Mon Oct 24 2022 Marek Hulan 8.0.0-1 - Update to 8.0.0 * Mon May 09 2022 Evgeni Golov - 7.0.4-4 - log plugin installation in posttrans * Fri Apr 22 2022 Eric D. Helms - 7.0.4-3 - Stop generaing apipie cache * Tue Apr 06 2021 Eric D. Helms - 7.0.4-2 - Rebuild plugins for Ruby 2.7 * Tue Feb 02 2021 Manuel Laug - 7.0.4-1 - Update foreman_expire_hosts to 7.0.4 * Mon Mar 16 2020 Timo Goebel - 7.0.1-1 - Update foreman_expire_hosts to 7.0.1 * Tue Jan 07 2020 Eric D. Helms - 7.0.0-2 - Drop migrate, seed and restart posttans * Tue Dec 10 2019 Timo Goebel - 7.0.0-1 - Update foreman_expire_hosts to 7.0.0 * Fri Aug 30 2019 Timo Goebel - 6.0.2-1 - Update foreman_expire_hosts to 6.0.2 * Mon Jul 01 2019 Timo Goebel - 6.0.1-1 - Update foreman_expire_hosts to 6.0.1 * Fri Mar 08 2019 Timo Goebel - 6.0.0-1 - Update foreman_expire_hosts to 6.0.0 * Fri Sep 07 2018 Eric D. Helms - 5.1.0-4 - Rebuild for Rails 5.2 and Ruby 2.5 * Wed May 30 2018 Ewoud Kohl van Wijngaarden - 5.1.0-3 - Correct cron.d location * Sun May 27 2018 Ewoud Kohl van Wijngaarden - 5.1.0-2 - Regenerate spec file based on the current template * Thu Apr 26 2018 Timo Goebel - 5.1.0-1 - Update foreman_expire_hosts to 5.1.0 * Mon Jan 22 2018 Ewoud Kohl van Wijngaarden 5.0.0-1 - Update foreman_expire_hosts to 5.0.0 (mail@timogoebel.name) - Correct non-existing date (ewoud@kohlvanwijngaarden.nl) * Mon Dec 11 2017 Ewoud Kohl van Wijngaarden 4.0.0-1 - Update foreman_expire_hosts to 4.0.0 (mail@timogoebel.name) - Use HTTPS URLs for github and rubygems (ewoud@kohlvanwijngaarden.nl) - Set proper download URLs for rubygems (komidore64@gmail.com) * Mon Apr 24 2017 Dominic Cleal 3.0.0-1 - Update foreman_expire_hosts to 3.0.0 (mail@timogoebel.name) * Wed Feb 22 2017 Dominic Cleal 2.2.0-1 - Update foreman_expire_hosts to 2.2.0 (mail@timogoebel.name) * Wed Dec 21 2016 Dominic Cleal 2.1.2-1 - Update foreman_expire_hosts to 2.1.2 (timo.goebel@dm.de) * Mon Oct 24 2016 Dominic Cleal 2.1.1-1 - Update foreman_expire_hosts to 2.1.1 (timo.goebel@dm.de) * Thu Oct 20 2016 Dominic Cleal 2.1.0-1 - Update foreman_expire_hosts to 2.1.0 (timo.goebel@dm.de) * Thu Jul 07 2016 Timo Goebel 2.0.2-1 - release v2.0.2 * Fri Jun 17 2016 Timo Goebel 2.0.1-1 - release v2.0.1 * Tue Jun 07 2016 Timo Goebel 2.0.0-1 - initial packaging