# template: smart_proxy_plugin %global gem_name smart_proxy_pulp %global plugin_name pulp %global foreman_proxy_min_version 2.3 %global foreman_proxy_dir %{_datadir}/foreman-proxy %global foreman_proxy_statedir %{_sharedstatedir}/foreman-proxy %global foreman_proxy_bundlerd_dir %{foreman_proxy_dir}/bundler.d %global foreman_proxy_settingsd_dir %{_sysconfdir}/foreman-proxy/settings.d Name: rubygem-%{gem_name} Version: 3.4.0 Release: 1.20241121132124963170.pr43.6.gee7e3c1%{?dist} Summary: Basic Pulp support for Foreman Smart-Proxy License: GPLv3 URL: https://github.com/theforeman/smart-proxy-pulp-plugin Source0: smart_proxy_pulp-3.4.0.gem # start specfile generated dependencies Requires: foreman-proxy >= %{foreman_proxy_min_version} Requires: ruby >= 2.7 Requires: ruby < 4 BuildRequires: ruby >= 2.7 BuildRequires: ruby < 4 BuildRequires: rubygems-devel BuildArch: noarch Provides: foreman-proxy-plugin-%{plugin_name} = %{version} # end specfile generated dependencies %description Basic Pulp support for Foreman Smart-Proxy. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n smart_proxy_pulp-3.4.0 %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}/ # bundler file mkdir -p %{buildroot}%{foreman_proxy_bundlerd_dir} mv %{buildroot}%{gem_instdir}/bundler.d/%{plugin_name}.rb \ %{buildroot}%{foreman_proxy_bundlerd_dir} # sample config mkdir -p %{buildroot}%{foreman_proxy_settingsd_dir} mv %{buildroot}%{gem_instdir}/settings.d/pulpcore.yml.example \ %{buildroot}%{foreman_proxy_settingsd_dir}/pulpcore.yml %files %dir %{gem_instdir} %config(noreplace) %attr(0640, root, foreman-proxy) %{foreman_proxy_settingsd_dir}/pulpcore.yml %license %{gem_instdir}/LICENSE %exclude %{gem_instdir}/bundler.d %{gem_libdir} %exclude %{gem_instdir}/settings.d %{foreman_proxy_bundlerd_dir}/%{plugin_name}.rb %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %changelog * Thu Nov 21 2024 Packit - 3.4.0-1.20241121132124963170.pr43.6.gee7e3c1 - mark *_url settings as required and remove their default values (Evgeni Golov) - drop admin_only cert type (Evgeni Golov) - spdx gpl tag (Evgeni Golov) - fetch branch from ENV (Evgeni Golov) - unique description (Evgeni Golov) - add GHA based CI (Evgeni Golov) * Mon Oct 14 2024 Foreman Packaging Automation - 3.4.0-1 - Update to 3.4.0 * Fri Oct 11 2024 Evgeni Golov 3.3.0-2 - Regenerate spec based on latest template to drop SCL remains * Mon Jan 08 2024 Foreman Packaging Automation - 3.3.0-1 - Update to 3.3.0 * Mon May 09 2022 Eric D. Helms - 3.2.0-3 - Drop unused smart_proxy_dynflow_core_bundlerd_dir macro * Mon Jan 10 2022 Evgeni Golov - 3.2.0-2 - use versioned obsoletes for proxy plugins * Thu Sep 02 2021 Eric D. Helms - 3.2.0-1 - Release rubygem-smart_proxy_pulp 3.2.0 * Tue Jun 22 2021 Eric D. Helms - 3.1.0-1 - Release rubygem-smart_proxy_pulp 3.1.0 * Wed Apr 07 2021 Eric D. Helms - 3.0.0-1 - Release 3.0.0 * Tue Apr 06 2021 Eric D. Helms - 2.1.0-4 - Rebuild for Ruby 2.7 * Mon Jun 22 2020 Evgeni Golov - 2.1.0-3 - Fix bundler.d location on EL8 * Tue May 26 2020 Adam Ruzicka 2.1.0-2 - Move local state to /var/lib * Tue May 19 2020 Justin Sherrill 2.1.0-1 - Update to 2.1.0 * Tue May 12 2020 Adam Ruzicka - 2.0.0-3 - Change localstatedir to sharedstatedir * Wed Jan 08 2020 Eric D. Helms - 2.0.0-2 - Build for SCL * Tue Jan 07 2020 Justin Sherrill 2.0.0-1 - Update to 2.0.0 * Mon Jan 06 2020 Justin Sherrill 1.6.0-1 - Update to 1.6.0 * Thu Sep 26 2019 Eric D. Helms - 1.5.0-2 - Update to SCL based template * Wed Sep 18 2019 Justin Sherrill 1.5.0-1 - Update to 1.5.0 * Fri Mar 08 2019 Justin Sherrill 1.4.1-1 - Updated samrt_proxy_pulp to version 1.4.1 * Tue Sep 06 2016 Dominic Cleal 1.3.0-1 - Updated smart_proxy_pulp to version 1.3.0 (dmitri@appliedlogic.ca) * Fri Jul 15 2016 Dominic Cleal 1.2.2-1 - Update rubygem-smart_proxy_pulp to 1.2.2 (dmitri@appliedlogic.ca) * Thu Jun 09 2016 Dominic Cleal 1.2.1-1 - Updated rubygem-smart_proxy_pulp to version 1.2.1 (dmitri@appliedlogic.ca) * Wed Jan 27 2016 Dmitri Dolguikh 1.2.0-1 - Updated smart_proxy_pulp gem to version 1.2.0 * Wed Mar 18 2015 Marek Hulan 1.0.1-2 - Fixes the overriding of config file (mhulan@redhat.com) * Thu Aug 07 2014 Dominic Cleal 1.0.1-1 - Add pulpnode.yml config file (dcleal@redhat.com) - Updated smart_proxy_pulp gem to version 1.0.1 (dmitri@appliedlogic.ca) - bumping smart_proxy_pulp version to 1.0.1 (jsherril@redhat.com) * Wed Jul 23 2014 Dominic Cleal 1.0.0-2 - Fix -doc requirement on main package (dcleal@redhat.com) * Wed Jul 23 2014 Dmitri Dolguikh - new package built with tito