# explicitly define, as we build on top of an scl, not inside with scl_package %{?scl:%global scl_prefix %{scl}-} %global homedir %{_datarootdir}/%{name} %global confdir common %global release 1 Name: katello Version: 4.13.0 Release: %{?prerelease:0.}%{release}%{?prerelease}%{?dist} Summary: A package for managing application life-cycle for Linux systems BuildArch: noarch Group: Applications/Internet License: GPLv2 URL: https://theforeman.org/plugins/katello Source1: katello-debug.sh Source11: katello-change-hostname Source13: katello-change-hostname.8.asciidoc Source16: hostname-change.rb Source17: helper.rb Source18: katello.cron BuildRequires: asciidoc BuildRequires: util-linux Requires: %{name}-common = %{version}-%{release} Requires: foreman-installer-%{name} Requires: %{?scl_prefix}rubygem-katello Requires: candlepin >= 2.0 Requires: candlepin-selinux >= 2.0 Requires: rubygem-foreman_maintain >= 0.2.2 %description Provides a package for managing application life-cycle for Linux systems. %prep %build #man pages mkdir -p ./manpages cp %{SOURCE13} ./manpages pushd ./manpages a2x -d manpage -f manpage katello-change-hostname.8.asciidoc gzip -f9 katello-change-hostname.8 popd %install mkdir -p %{buildroot}/%{_mandir}/man8 #copy cron scripts to be scheduled install -d -m0755 %{buildroot}%{_sysconfdir}/cron.d install -m 644 %{SOURCE18} %{buildroot}%{_sysconfdir}/cron.d/katello # symlink script libraries mkdir -p %{buildroot}%{_datarootdir}/katello install -m 644 %{SOURCE16} %{buildroot}%{_datarootdir}/katello/hostname-change.rb install -m 644 %{SOURCE17} %{buildroot}%{_datarootdir}/katello/helper.rb # install important scripts mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_sbindir} install -Dp -m0755 %{SOURCE11} %{buildroot}%{_sbindir}/katello-change-hostname install -Dp -m0755 %{SOURCE1} %{buildroot}/usr/share/foreman/script/foreman-debug.d/katello-debug.sh # install tab completion scripts install -d %{buildroot}/etc/bash_completion.d # install man page install -m 644 ./manpages/katello-change-hostname.8.gz %{buildroot}/%{_mandir}/man8 %clean %{__rm} -rf ./manpages %{__rm} -rf %{buildroot} %files %config(missingok) %{_sysconfdir}/cron.d/katello # ------ Common ------------------ %package common BuildArch: noarch Summary: Common runtime components of %{name} Requires: rubygem-highline %description common Common runtime components of %{name} %files common %{_sbindir}/katello-change-hostname %{_mandir}/man8/katello-change-hostname.8* %{_datarootdir}/katello/hostname-change.rb %{_datarootdir}/katello/helper.rb # ------ Debug ---------------- %package debug Summary: Katello Debug utilities Group: Applications/System Requires: bash Requires: foreman-debug Requires: findutils Requires: coreutils Requires: /bin/ps %description debug Useful utilities for debug info collecting %files debug %{_datadir}/foreman/script/foreman-debug.d/katello-debug.sh %package -n foreman-proxy-content Summary: Provides a federation of katello services BuildArch: noarch Requires: findutils Requires: foreman-installer-%{name} Requires: rubygem-foreman_maintain >= 0.2.2 Requires: %{name}-common = %{version}-%{release} Obsoletes: katello-capsule %description -n foreman-proxy-content Provides a federation of katello services %files -n foreman-proxy-content # the files section is empty, but without it no RPM will be generated %changelog * Thu Jun 27 2024 Odilon Sousa - 4.13.0-1 - Release katello 4.13.0 * Thu May 30 2024 Zach Huntington-Meath - 4.13.0-0.1.rc1 - Release katello 4.13.0rc1 * Mon Feb 26 2024 Quinn James - 4.13.0-0.1.master - Bump version to 4.13.0 * Wed Jan 10 2024 Evgeni Golov - 4.12.0-0.2.master - Don't require katello-debug - Drop katello-debug -> mktemp requirement, it's part of coreutils * Mon Nov 27 2023 Ian Ballou - 4.12.0-0.1.master - Bump version to 4.12.0 * Fri Sep 29 2023 Eric D. Helms - 4.11.0-0.2.master - Remove cert RPMs from change hostname * Mon Aug 28 2023 David Moore - 4.11.0-0.1.master - Bump version to 4.11.0 * Fri Aug 11 2023 Ian Ballou - 4.10.0-0.2.master - Remove katello-agent references (qpid) from katello-debug * Wed May 24 2023 William Bradford Clark - 4.10.0-0.1.master - Bump version to 4.10.0 * Tue Feb 21 2023 Lucy Fu - 4.9.0-0.1.master - Bump version to 4.9.0 * Tue Dec 06 2022 Evgeni Golov - 4.8.0-0.2.master - Fixes #35756 - do not use --disable-system-checks as it is gone * Thu Nov 10 2022 Evgeni Golov - 4.8.0-0.1.master - Bump version to 4.8.0 * Mon Aug 15 2022 Ewoud Kohl van Wijngaarden - 4.7.0-0.1.master - Update to version 4.7 * Thu Jul 14 2022 Chris Roberts - 4.6.0-0.5.master - Fixes #34898 - Add ACS refresh cron job * Tue Jun 07 2022 Evgeni Golov - 4.6.0-0.4.master - Fixes #35028 - drop the infrastructure facet when renaming * Tue May 17 2022 Nagoor Shaik - 4.6.0-0.3.master - Incorrect argument error handling in katello-change-hostname * Fri May 13 2022 Evgeni Golov - 4.6.0-0.2.master - Fixes #34896 - properly detect default_program in k-c-h * Thu May 12 2022 Partha Aji 4.6.0-0.1.master - bump for 4.6 * Wed Feb 16 2022 Justin Sherrill 4.5.0-0.1.master - bump for 4.5 * Tue Dec 07 2021 Evgeni Golov - 4.4.0-0.3.master - Fixes #34099 - only restart puppetserver if it is present * Tue Dec 07 2021 Evgeni Golov - 4.4.0-0.2.master - Fixes #34098 - correctly print proxy type in Puppet message * Wed Nov 17 2021 Chris Roberts - 4.4.0-0.1.master - 4.4.0 version bump * Wed Oct 20 2021 Eric D. Helms - 4.3.0-0.4.master - Mention Puppet options separately for change hostname * Mon Oct 18 2021 Eric D. Helms - 4.3.0-0.3.master - Remove dropped parameter in change-hostname - Fix broken branding caused by empty last_scenario * Tue Sep 28 2021 William Bradford Clark 4.3.0-0.2.master - Bump release for hostname-change.rb to suggest new puppet::server_foreman_url on proxy server * Mon Aug 09 2021 Justin Sherrill 4.3.0-0.1.master - 4.3.0 version bump * Thu May 06 2021 Eric D. Helms - 4.2.0-0.1.master - Update to 4.2.0 * Wed Apr 28 2021 Eric D. Helms - 4.1.0-0.6.master - Do not require qpid-tools in katello-debug * Thu Apr 08 2021 Eric D. Helms - 4.1.0-0.5.master - Drop requirement on Hammer CLI packages * Mon Mar 29 2021 Eric D. Helms - 4.1.0-0.4.master - Drop qpid install requires * Fri Mar 19 2021 Pablo N. Hess - 4.1.0-0.3.master - Fixes #32125 - katello-change-hostname now looks for hammer config before changing it * Fri Mar 05 2021 Chris Roberts - 4.1.0-0.2.master - Update katello-debug with correct qpid commands * Wed Mar 03 2021 Ewoud Kohl van Wijngaarden - 4.1.0-0.1.master - Bump to 4.1 * Mon Feb 15 2021 Ewoud Kohl van Wijngaarden - 4.0.0-0.10.master - Drop Pulp 2 from katello-debug * Thu Feb 11 2021 Eric D. Helms - 4.0.0-0.9.master - Drop container-selinux workaround, fixed in pulpcore-selinux * Thu Feb 04 2021 Eric D. Helms - 4.0.0-0.8.master - Drop all Pulp 2 and MongoDB requires * Tue Feb 02 2021 Eric D. Helms - 4.0.0-0.7.master - Require qpid and dispatch-router on EL8 and EL7 * Tue Feb 02 2021 Eric D. Helms - 4.0.0-0.6.master - Delete truststore with katello-change-hostname * Mon Feb 01 2021 Eric D. Helms - 4.0.0-0.5.master - Require container-selinux on EL8 until https://github.com/pulp/pulpcore-selinux/pull/33 is released * Mon Feb 01 2021 Ewoud Kohl van Wijngaarden - 4.0.0-0.4.master - Drop katello-{backup,restore} stubs * Fri Jan 29 2021 Eric D. Helms - 4.0.0-0.3.master - Only install pulp-selinux on Katello server * Mon Jan 11 2021 Jonathon Turel - 4.0.0-0.2.master - Fixes #31598 - Don't recreate AAAA record as A * Wed Nov 04 2020 Jonathon Turel - 4.0.0-0.1.master - Bump version to 4.0.0 * Tue Oct 06 2020 Samir Jha - 3.18.0-0.4.master - Get dynaconf list into foreman-debug * Thu Sep 24 2020 Danny Synk - 3.18.0-0.3.master - Use case-insensitive sed for hostname change * Tue Aug 11 2020 Jeremy Lenz - 3.18.0-0.2.master - Fixes #30584: fix NoMethodError in change-hostname after foreman-installer fails * Tue Aug 11 2020 Eric D. Helms - 3.18.0-0.1.master - Bump to 3.18.0 * Tue Aug 04 2020 Justin Sherrill 3.17.0-0.1.master - change version to 3.17.0 - Add artemis broker.xml and tomcat config files to debug collection - move pulp-selinux requires to -common for foreman proxy install * Mon Apr 20 2020 Eric D. Helms - 3.16.0-0.3.master - Only require mongo and pulp on EL7 * Tue Mar 10 2020 Jonathon Turel 3.16.0-0.2.master - Bump release for satellite-change-hostname supporting DNS updates * Tue Feb 11 2020 James Jeffers 3.16.0-0.1.master - Bump to 3.16.0 * Wed Jan 29 2020 Samir Jha 3.15.0-0.5.master - Rename pulp_service_files * Mon Jan 20 2020 Samir Jha - 3.15.0-0.4.master - Add pulp3 debug info to katello-debug * Mon Nov 18 2019 Evgeni Golov - 3.15.0-0.3.master - Unify prerelease macro handling * Mon Nov 04 2019 Chris Roberts 3.15.0-0.2.master - Remove CSR reference from hostname-change * Fri Nov 01 2019 Jonathon Turel - 3.15.0-0.1.master - Bump to 3.15.0 * Tue Oct 29 2019 Eric D. Helms - 3.14.0-0.5.master - Drop katello-service subpackage in favor of foreman-maintain * Mon Oct 28 2019 Eric D. Helms - 3.14.0-0.4.master - Drop psql requirement on -debug and let foreman-debug handle * Tue Sep 03 2019 Eric D. Helms - 3.14.0-0.3.master - Drop katello-remove * Tue Aug 13 2019 Lukas Zapletal - 3.14.0-0.2.master - Updated katello-debug.sh * Wed Aug 07 2019 Evgeni Golov - 3.14.0-0.1.master - Bump version to 3.14 * Sun Jul 21 2019 Jonathon Turel 3.13.0-0.4.master - katello-change-hostname: clean puppet certs - katello-change-hostname: s/foreman-proxy-content-certs-tar/certs-tar-file/ * Fri Jun 07 2019 Lukas Zapletal 3.13.0-0.3.master - BZ#1710625 - updated qpidd debug paths * Tue May 07 2019 Evgeni Golov - 3.13.0-0.2.master - delete new candlepin keystore paths in katello-change-hostname * Tue Apr 23 2019 Evgeni Golov - 3.13.0-0.1.master - Bump version to 3.13-master * Mon Jan 28 2019 Evgeni Golov - 3.12.0-0.3.master - Refs #25576 - add an empty files section to make foreman-proxy-content build * Fri Jan 25 2019 Evgeni Golov - 3.12.0-0.2.master - Refs #25576 - drop the Puppet cleanup cron, this is done inside Pulp now * Wed Jan 16 2019 Eric D. Helms - 3.12.0-0.1.master - Bump version to 3.12 * Fri Nov 30 2018 Eric D. Helms - 3.11.0-1 - Bump version to 3.11 * Mon Nov 19 2018 Evgeni Golov - 3.10.0-6 - Move rubygem-katello and rubygem-hammer* requires to katello * Tue Nov 13 2018 Evgeni Golov - 3.10.0-5 - Drop rubygem-highline from foreman-proxy-content requires * Mon Nov 12 2018 Evgeni Golov - 3.10.0-4 - Make katello-common truly common and move specific files to katello itself. This allows foreman-proxy-content to depend on k-common. * Tue Oct 23 2018 sokeeffe - 3.10.0-3 - Split out Katello and Smart Proxy Cron * Mon Oct 22 2018 Chris Roberts - 3.10.0-2 - Change katello-remove to support wildcards and cleanup * Thu Oct 18 2018 Eric D. Helms - 3.10.0-1 - Bump version to 3.10 * Wed Oct 10 2018 Eric D. Helms - 3.9.0-11 - Cleanup spec requires * Tue Oct 09 2018 Eric D. Helms - 3.9.0-10 - Drop java requirement * Tue Sep 11 2018 Eric D. Helms - 3.9.0-9 - Drop hammer requirement from katello-debug * Mon Sep 03 2018 Ewoud Kohl van Wijngaarden - 3.9.0-8 - Use foreman-maintain instead of katello-service in debug * Sun Sep 02 2018 Ewoud Kohl van Wijngaarden - 3.9.0-7 - Use foreman-maintain instead of katello-service in debug * Mon Jul 30 2018 John Mitsch - 3.9.0-6 - k-c-h Check hostname is not current hostname * Wed Jul 25 2018 Jonathon Turel - 3.9.0-5 - Obsolete the python-gofer-qpid obsolete * Wed Jul 25 2018 Jonathon Turel - 3.9.0-4 - Obsolete python-gofer-qpid * Tue Jul 24 2018 Eric D. Helms - 3.9.0-3 - Add prerelease macro support * Thu Jul 19 2018 Chris Roberts - 3.9.0-2.nightly - Updated katello-debug to remove qpid resource mgr command * Wed Jul 18 2018 Eric D. Helms 3.9.0-1.nightly - Bump to 3.9 * Wed Jun 27 2018 Eric D. Helms - 3.8.0-4.nightly - rebuilt * Wed Jun 20 2018 Chris Roberts - 3.8.0-3.nightly - Reverted rh-mongodb34-syspaths due to MongoDB 2.6 dependency error * Mon Jun 04 2018 John Mitsch - 3.8.0-2.nightly - Redirect katello-service to foreman-maintain * Sun Jun 03 2018 Chris Roberts - 3.7.0-6.nightly - Added rh-mongodb34-syspaths to deps to bypass scl enable bash * Wed May 23 2018 John Mitsch - 3.7.0-5.nightly - Remove katello-backup and katello-restore and require foreman-maintain * Fri May 11 2018 Chris Roberts - 3.7.0-4.nightly - removed el6 references and service-wait * Thu Apr 19 2018 Eric D. Helms - 3.7.0-3.nightly - rebuilt * Tue Jan 16 2018 Eric D. Helms 3.7.0-1.nightly - new package built with tito