Update .spec to include CentOS branding.
This commit is contained in:
parent
424d109053
commit
eb9a866aa4
@ -15,12 +15,14 @@
|
|||||||
|
|
||||||
Name: preupgrade-assistant
|
Name: preupgrade-assistant
|
||||||
Version: 2.6.2
|
Version: 2.6.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Preupgrade Assistant advises on feasibility of system upgrade or migration
|
Summary: Preupgrade Assistant advises on feasibility of system upgrade or migration
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
|
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Patch1: 1-preupgrade-assistant-centospkgs.patch
|
||||||
|
Patch2: 2-preupgrade-assistant-no-variants.patch
|
||||||
%if %{build_ui}
|
%if %{build_ui}
|
||||||
Source1: Django-%{django_version}.tar.gz
|
Source1: Django-%{django_version}.tar.gz
|
||||||
Source2: south-%{south_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
|
produces a report, which assists you in performing the upgrade itself
|
||||||
by outlining potential problem areas and by offering suggestions about
|
by outlining potential problem areas and by offering suggestions about
|
||||||
mitigating any possible incompatibilities. The Preupgrade Assistant
|
mitigating any possible incompatibilities. The Preupgrade Assistant
|
||||||
utility is a Red Hat Upgrade Tool prerequisite for completing a successful
|
utility is a CentOS Upgrade Tool prerequisite for completing a successful
|
||||||
in-place upgrade to the next major version of Red Hat Enterprise Linux.
|
in-place upgrade to the next major version of CentOS Linux.
|
||||||
|
|
||||||
%if %{build_ui}
|
%if %{build_ui}
|
||||||
%package ui
|
%package ui
|
||||||
@ -94,6 +96,8 @@ OpenSCAP is generated automatically.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{name}-%{version} -q
|
%setup -n %{name}-%{version} -q
|
||||||
|
%patch1 -p0
|
||||||
|
%patch2 -p0
|
||||||
|
|
||||||
%if %{build_ui}
|
%if %{build_ui}
|
||||||
# Unpack UI-related tarballs
|
# 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
|
if [ "$1" == 1 ]; then
|
||||||
# allow httpd to run preupgrade ui
|
# allow httpd to run preupgrade ui
|
||||||
setsebool httpd_run_preupgrade on
|
setsebool httpd_run_preupgrade on
|
||||||
|
setsebool -P httpd_run_preupgrade on
|
||||||
fi
|
fi
|
||||||
# restart apache
|
# restart apache
|
||||||
service httpd condrestart
|
service httpd condrestart
|
||||||
@ -226,6 +231,7 @@ service httpd condrestart
|
|||||||
if [ "$1" == 0 ]; then
|
if [ "$1" == 0 ]; then
|
||||||
# disallow httpd to run preupgrade ui
|
# disallow httpd to run preupgrade ui
|
||||||
setsebool httpd_run_preupgrade off
|
setsebool httpd_run_preupgrade off
|
||||||
|
setsebool -P httpd_run_preupgrade off
|
||||||
# restart apache
|
# restart apache
|
||||||
service httpd condrestart
|
service httpd condrestart
|
||||||
fi
|
fi
|
||||||
@ -277,6 +283,9 @@ fi
|
|||||||
%attr(0644,root,root) %{_mandir}/man1/preupg-diff.*
|
%attr(0644,root,root) %{_mandir}/man1/preupg-diff.*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Jul 21 2020 Petr Stodulka <pstodulk@redhat.com> - 2.6.2-1
|
||||||
- Rebased to upstream version 2.6.2
|
- Rebased to upstream version 2.6.2
|
||||||
- enable the httpd_run_preupgrade SELinux boolean permanently for Web UI
|
- enable the httpd_run_preupgrade SELinux boolean permanently for Web UI
|
||||||
|
Loading…
Reference in New Issue
Block a user