import cockpit-appstream-263-1.el8
This commit is contained in:
parent
1c6bf1ea63
commit
8b0a5dfc05
@ -1,2 +1,2 @@
|
|||||||
360ffc52d80001825cf85bfd4b6bcfcfed436b7a SOURCES/cockpit-261.tar.xz
|
ace90af278ee844eb845a157afa20219bde7a0d7 SOURCES/cockpit-263.tar.xz
|
||||||
1e7b584f0dbd12ad845136a5465199bfc5e9e7e9 SOURCES/cockpit-machines-260.tar.xz
|
bf525401872bfd96e3f172724711e0db46402af5 SOURCES/cockpit-machines-261.tar.xz
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
SOURCES/cockpit-261.tar.xz
|
SOURCES/cockpit-263.tar.xz
|
||||||
SOURCES/cockpit-machines-260.tar.xz
|
SOURCES/cockpit-machines-261.tar.xz
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This spec file has been automatically updated
|
# This spec file has been automatically updated
|
||||||
Version: 261
|
Version: 263
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014-2020 Red Hat, Inc.
|
# Copyright (C) 2014-2020 Red Hat, Inc.
|
||||||
@ -31,7 +31,7 @@ Release: 1%{?dist}
|
|||||||
# by tools/gen-spec-dependencies during "make dist", but keep a hardcoded fallback
|
# by tools/gen-spec-dependencies during "make dist", but keep a hardcoded fallback
|
||||||
%define required_base 122
|
%define required_base 122
|
||||||
|
|
||||||
%define machines_version 260
|
%define machines_version 261
|
||||||
|
|
||||||
# we generally want CentOS packages to be like RHEL; special cases need to check %{centos} explicitly
|
# we generally want CentOS packages to be like RHEL; special cases need to check %{centos} explicitly
|
||||||
%if 0%{?centos}
|
%if 0%{?centos}
|
||||||
@ -81,8 +81,7 @@ Source1: https://github.com/cockpit-project/cockpit-machines/releases/dow
|
|||||||
# Ship custom SELinux policy (but not for cockpit-appstream)
|
# Ship custom SELinux policy (but not for cockpit-appstream)
|
||||||
%if "%{name}" == "cockpit"
|
%if "%{name}" == "cockpit"
|
||||||
%define selinuxtype targeted
|
%define selinuxtype targeted
|
||||||
%define with_selinux 1
|
%define selinux_configure_arg --enable-selinux-policy=%{selinuxtype}
|
||||||
%define selinux_policy_version %(rpm --quiet -q selinux-policy && rpm -q --queryformat "%{V}-%{R}" selinux-policy || echo 1)
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -129,10 +128,8 @@ BuildRequires: gdb
|
|||||||
# For documentation
|
# For documentation
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
|
|
||||||
%if 0%{?with_selinux}
|
|
||||||
BuildRequires: selinux-policy
|
BuildRequires: selinux-policy
|
||||||
BuildRequires: selinux-policy-devel
|
BuildRequires: selinux-policy-devel
|
||||||
%endif
|
|
||||||
|
|
||||||
# This is the "cockpit" metapackage. It should only
|
# This is the "cockpit" metapackage. It should only
|
||||||
# Require, Suggest or Recommend other cockpit-xxx subpackages
|
# Require, Suggest or Recommend other cockpit-xxx subpackages
|
||||||
@ -160,7 +157,7 @@ Recommends: subscription-manager-cockpit
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--disable-silent-rules \
|
%{?selinux_configure_arg} \
|
||||||
--with-cockpit-user=cockpit-ws \
|
--with-cockpit-user=cockpit-ws \
|
||||||
--with-cockpit-ws-instance-user=cockpit-wsinstance \
|
--with-cockpit-ws-instance-user=cockpit-wsinstance \
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@ -171,13 +168,7 @@ Recommends: subscription-manager-cockpit
|
|||||||
--disable-ssh \
|
--disable-ssh \
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
make -j$(nproc) %{?extra_flags} all
|
%make_build
|
||||||
|
|
||||||
%if 0%{?with_selinux}
|
|
||||||
make -f /usr/share/selinux/devel/Makefile cockpit.pp
|
|
||||||
rm -f cockpit.pp.bz2
|
|
||||||
bzip2 -9 cockpit.pp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
@ -204,14 +195,6 @@ install -p -m 644 tools/cockpit.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit
|
|||||||
rm -f %{buildroot}/%{_libdir}/cockpit/*.so
|
rm -f %{buildroot}/%{_libdir}/cockpit/*.so
|
||||||
install -D -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/
|
install -D -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/
|
||||||
|
|
||||||
%if 0%{?with_selinux}
|
|
||||||
install -D -m 644 %{name}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
|
||||||
install -D -m 644 -t %{buildroot}%{_mandir}/man8 selinux/%{name}_session_selinux.8cockpit
|
|
||||||
install -D -m 644 -t %{buildroot}%{_mandir}/man8 selinux/%{name}_ws_selinux.8cockpit
|
|
||||||
# create this directory in the build root so that %ghost sees the desired mode
|
|
||||||
install -d -m 700 %{buildroot}%{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{name}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# only ship deprecated PatternFly API for stable releases
|
# only ship deprecated PatternFly API for stable releases
|
||||||
%if 0%{?rhel} <= 8
|
%if 0%{?rhel} <= 8
|
||||||
ln -s cockpit.css.gz %{buildroot}/%{_datadir}/cockpit/base1/patternfly.css.gz
|
ln -s cockpit.css.gz %{buildroot}/%{_datadir}/cockpit/base1/patternfly.css.gz
|
||||||
@ -447,10 +430,8 @@ Summary: Cockpit Web Service
|
|||||||
Requires: glib-networking
|
Requires: glib-networking
|
||||||
Requires: openssl
|
Requires: openssl
|
||||||
Requires: glib2 >= 2.50.0
|
Requires: glib2 >= 2.50.0
|
||||||
%if 0%{?with_selinux}
|
Requires: (selinux-policy >= %{_selinux_policy_version} if selinux-policy-%{selinuxtype})
|
||||||
Requires: (selinux-policy >= %{selinux_policy_version} if selinux-policy-%{selinuxtype})
|
|
||||||
Requires(post): (policycoreutils if selinux-policy-%{selinuxtype})
|
Requires(post): (policycoreutils if selinux-policy-%{selinuxtype})
|
||||||
%endif
|
|
||||||
Conflicts: firewalld < 0.6.0-1
|
Conflicts: firewalld < 0.6.0-1
|
||||||
Recommends: sscg >= 2.3
|
Recommends: sscg >= 2.3
|
||||||
Recommends: system-logos
|
Recommends: system-logos
|
||||||
@ -505,13 +486,10 @@ authentication via sssd/FreeIPA.
|
|||||||
%{_libexecdir}/cockpit-certificate-helper
|
%{_libexecdir}/cockpit-certificate-helper
|
||||||
%attr(4750, root, cockpit-wsinstance) %{_libexecdir}/cockpit-session
|
%attr(4750, root, cockpit-wsinstance) %{_libexecdir}/cockpit-session
|
||||||
%{_datadir}/cockpit/branding
|
%{_datadir}/cockpit/branding
|
||||||
|
%{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
||||||
%if 0%{?with_selinux}
|
%{_mandir}/man8/%{name}_session_selinux.8cockpit.*
|
||||||
%{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
%{_mandir}/man8/%{name}_ws_selinux.8cockpit.*
|
||||||
%{_mandir}/man8/%{name}_session_selinux.8cockpit.*
|
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{name}
|
||||||
%{_mandir}/man8/%{name}_ws_selinux.8cockpit.*
|
|
||||||
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{name}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%pre ws
|
%pre ws
|
||||||
getent group cockpit-ws >/dev/null || groupadd -r cockpit-ws
|
getent group cockpit-ws >/dev/null || groupadd -r cockpit-ws
|
||||||
@ -519,19 +497,15 @@ getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d /nonexisting
|
|||||||
getent group cockpit-wsinstance >/dev/null || groupadd -r cockpit-wsinstance
|
getent group cockpit-wsinstance >/dev/null || groupadd -r cockpit-wsinstance
|
||||||
getent passwd cockpit-wsinstance >/dev/null || useradd -r -g cockpit-wsinstance -d /nonexisting -s /sbin/nologin -c "User for cockpit-ws instances" cockpit-wsinstance
|
getent passwd cockpit-wsinstance >/dev/null || useradd -r -g cockpit-wsinstance -d /nonexisting -s /sbin/nologin -c "User for cockpit-ws instances" cockpit-wsinstance
|
||||||
|
|
||||||
%if 0%{?with_selinux}
|
|
||||||
if %{_sbindir}/selinuxenabled 2>/dev/null; then
|
if %{_sbindir}/selinuxenabled 2>/dev/null; then
|
||||||
%selinux_relabel_pre -s %{selinuxtype}
|
%selinux_relabel_pre -s %{selinuxtype}
|
||||||
fi
|
fi
|
||||||
%endif
|
|
||||||
|
|
||||||
%post ws
|
%post ws
|
||||||
%if 0%{?with_selinux}
|
|
||||||
if [ -x %{_sbindir}/selinuxenabled ]; then
|
if [ -x %{_sbindir}/selinuxenabled ]; then
|
||||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
||||||
%selinux_relabel_post -s %{selinuxtype}
|
%selinux_relabel_post -s %{selinuxtype}
|
||||||
fi
|
fi
|
||||||
%endif
|
|
||||||
|
|
||||||
# set up dynamic motd/issue symlinks on first-time install; don't bring them back on upgrades if admin removed them
|
# set up dynamic motd/issue symlinks on first-time install; don't bring them back on upgrades if admin removed them
|
||||||
if [ "$1" = 1 ]; then
|
if [ "$1" = 1 ]; then
|
||||||
@ -557,12 +531,10 @@ fi
|
|||||||
%systemd_preun cockpit.socket cockpit.service
|
%systemd_preun cockpit.socket cockpit.service
|
||||||
|
|
||||||
%postun ws
|
%postun ws
|
||||||
%if 0%{?with_selinux}
|
|
||||||
if [ -x %{_sbindir}/selinuxenabled ]; then
|
if [ -x %{_sbindir}/selinuxenabled ]; then
|
||||||
%selinux_modules_uninstall -s %{selinuxtype} %{name}
|
%selinux_modules_uninstall -s %{selinuxtype} %{name}
|
||||||
%selinux_relabel_post -s %{selinuxtype}
|
%selinux_relabel_post -s %{selinuxtype}
|
||||||
fi
|
fi
|
||||||
%endif
|
|
||||||
%systemd_postun_with_restart cockpit.socket cockpit.service
|
%systemd_postun_with_restart cockpit.socket cockpit.service
|
||||||
|
|
||||||
# -------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------
|
||||||
@ -744,6 +716,11 @@ via PackageKit.
|
|||||||
|
|
||||||
# The changelog is automatically generated and merged
|
# The changelog is automatically generated and merged
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 17 2022 Martin Pitt <mpitt@redhat.com> - 263-1
|
||||||
|
- Overview: Show scheduled shutdowns
|
||||||
|
- Networking: Add firewall service description
|
||||||
|
- Shell: Fix browser history
|
||||||
|
|
||||||
* Tue Jan 25 2022 Matej Marusak <mmarusak@redhat.com> - 261-1
|
* Tue Jan 25 2022 Matej Marusak <mmarusak@redhat.com> - 261-1
|
||||||
- storage: Unmounting or deleting a busy filesystem is now supported
|
- storage: Unmounting or deleting a busy filesystem is now supported
|
||||||
- Tests improvements and stabilization
|
- Tests improvements and stabilization
|
||||||
|
Loading…
Reference in New Issue
Block a user