From eb9a866aa43d335242198a75b392fbf92f76907e Mon Sep 17 00:00:00 2001 From: Yuriy Kohut Date: Thu, 11 Apr 2024 12:10:28 +0300 Subject: [PATCH] Update .spec to include CentOS branding. --- SPECS/preupgrade-assistant.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/SPECS/preupgrade-assistant.spec b/SPECS/preupgrade-assistant.spec index d9f34d7..a6a24fe 100644 --- a/SPECS/preupgrade-assistant.spec +++ b/SPECS/preupgrade-assistant.spec @@ -15,12 +15,14 @@ Name: preupgrade-assistant Version: 2.6.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Preupgrade Assistant advises on feasibility of system upgrade or migration Group: System Environment/Libraries License: GPLv3+ Source0: %{name}-%{version}.tar.gz +Patch1: 1-preupgrade-assistant-centospkgs.patch +Patch2: 2-preupgrade-assistant-no-variants.patch %if %{build_ui} Source1: Django-%{django_version}.tar.gz Source2: south-%{south_version}.tar.gz @@ -63,8 +65,8 @@ Preupgrade Assistant is also capable of migrating the system. It then produces a report, which assists you in performing the upgrade itself by outlining potential problem areas and by offering suggestions about mitigating any possible incompatibilities. The Preupgrade Assistant -utility is a Red Hat Upgrade Tool prerequisite for completing a successful -in-place upgrade to the next major version of Red Hat Enterprise Linux. +utility is a CentOS Upgrade Tool prerequisite for completing a successful +in-place upgrade to the next major version of CentOS Linux. %if %{build_ui} %package ui @@ -94,6 +96,8 @@ OpenSCAP is generated automatically. %prep %setup -n %{name}-%{version} -q +%patch1 -p0 +%patch2 -p0 %if %{build_ui} # Unpack UI-related tarballs @@ -215,6 +219,7 @@ su apache - -s /bin/bash -c "preupg-ui-manage collectstatic --noinput" >/dev/nul if [ "$1" == 1 ]; then # allow httpd to run preupgrade ui setsebool httpd_run_preupgrade on + setsebool -P httpd_run_preupgrade on fi # restart apache service httpd condrestart @@ -226,6 +231,7 @@ service httpd condrestart if [ "$1" == 0 ]; then # disallow httpd to run preupgrade ui setsebool httpd_run_preupgrade off + setsebool -P httpd_run_preupgrade off # restart apache service httpd condrestart fi @@ -277,6 +283,9 @@ fi %attr(0644,root,root) %{_mandir}/man1/preupg-diff.* %changelog +* Tue Apr 2 2024 Yuriy Kohut - 2.6.2-2 +- Add CentOS branding with patches: 1-preupgrade-assistant-centospkgs.patch, 2-preupgrade-assistant-no-variants.patch + * Tue Jul 21 2020 Petr Stodulka - 2.6.2-1 - Rebased to upstream version 2.6.2 - enable the httpd_run_preupgrade SELinux boolean permanently for Web UI