Update .spec to include CentOS branding.
This commit is contained in:
parent
424d109053
commit
eb9a866aa4
@ -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 <ykohut@almalinux.org> - 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 <pstodulk@redhat.com> - 2.6.2-1
|
||||
- Rebased to upstream version 2.6.2
|
||||
- enable the httpd_run_preupgrade SELinux boolean permanently for Web UI
|
||||
|
Loading…
Reference in New Issue
Block a user