import cockpit-appstream-197.3-1.el8

This commit is contained in:
CentOS Sources 2019-11-05 13:16:30 -05:00 committed by Andrew Lukoshko
parent 8b8ac6ff8c
commit f99cfb2586
4 changed files with 109 additions and 220 deletions

View File

@ -1 +1 @@
e9e50d119f97b47cae1d2e35640712167e3fd264 SOURCES/cockpit-184.1.tar.xz ba6d222ec1115455d8670de907de08bf98a1b42e SOURCES/cockpit-197.3.tar.xz

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/cockpit-184.1.tar.xz SOURCES/cockpit-197.3.tar.xz

View File

@ -0,0 +1,27 @@
From 09c7c37d2ac2e6ff6c8259bd2d99dceec6a46d4c Mon Sep 17 00:00:00 2001
From: Martin Pitt <mpitt@redhat.com>
Date: Thu, 5 Sep 2019 11:11:18 +0200
Subject: [PATCH] test: Fix rhsmd cleanup in check-packagekit
When disabling /usr/libexec/rhsmd (on RHEL images), re-enable it at the
end of the test. This unbreaks running more than one check-packagekit
test on an external testbed.
---
test/verify/check-packagekit | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/verify/check-packagekit b/test/verify/check-packagekit
index 47641875f..415aa9565 100755
--- a/test/verify/check-packagekit
+++ b/test/verify/check-packagekit
@@ -48,6 +48,7 @@
# On other OSes (Fedora/CentOS) we expect sub-man to be disabled in yum, so it should not get in the way there
if self.machine.image.startswith("rhel"):
self.machine.execute("mv /usr/libexec/rhsmd /usr/libexec/rhsmd.disabled")
+ self.addCleanup(self.machine.execute, "mv /usr/libexec/rhsmd.disabled /usr/libexec/rhsmd")
# only the yum backend properly recognizes "enhancement" severity; apt
# does not have that metadata and PackageKit-dnf does not parse it
--
2.21.0

View File

@ -1,5 +1,5 @@
# This spec file has been automatically updated # This spec file has been automatically updated
Version: 184.1 Version: 197.3
Release: 1%{?dist} Release: 1%{?dist}
# #
# This file is maintained at the following location: # This file is maintained at the following location:
@ -44,35 +44,9 @@ Release: 1%{?dist}
# build optional extensions like cockpit-docker # build optional extensions like cockpit-docker
%define build_optional 1 %define build_optional 1
# cockpit's firewall service definition moved to firewalld
%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8
%define firewalld_service 0
%else
%define firewalld_service 1
%endif
%define __lib lib %define __lib lib
# on RHEL 7.x we build subscriptions; superseded later by %if 0%{?rhel}
# external subscription-manager-cockpit
%if (0%{?rhel} >= 7 && 0%{?rhel} < 8) && 0%{?centos} == 0
%define build_subscriptions 1
%endif
# cockpit-kubernetes is RHEL 7 and Fedora < 30 only, and 64 bit arches only
%if (0%{?fedora} && 0%{?fedora} < 30) || (0%{?rhel} >= 7 && 0%{?rhel} < 8)
%ifarch aarch64 x86_64 ppc64le s390x
%define build_kubernetes 1
%endif
%endif
%if 0%{?rhel} >= 8
%global go_scl_prefix go-toolset-7-
%else
%global go_scl_prefix %{nil}
%endif
%if 0%{?rhel} >= 7
%define vdo_on_demand 1 %define vdo_on_demand 1
%endif %endif
@ -87,6 +61,7 @@ Source0: cockpit-%{version}.tar.gz
%else %else
Source0: https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.xz Source0: https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.xz
%endif %endif
Patch0001: 0001-test-Fix-rhsmd-cleanup-in-check-packagekit.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gio-unix-2.0)
@ -95,29 +70,26 @@ BuildRequires: pkgconfig(polkit-agent-1) >= 0.105
BuildRequires: pam-devel BuildRequires: pam-devel
BuildRequires: autoconf automake BuildRequires: autoconf automake
%if 0%{?fedora} || 0%{?rhel} >= 8
BuildRequires: /usr/bin/python3 BuildRequires: /usr/bin/python3
%else
BuildRequires: /usr/bin/python2
%endif
BuildRequires: intltool BuildRequires: intltool
%if %{defined build_dashboard} %if %{defined build_dashboard}
BuildRequires: libssh-devel >= 0.7.1 BuildRequires: libssh-devel >= 0.7.1
%endif %endif
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: gnutls-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: krb5-devel BuildRequires: krb5-devel
BuildRequires: libxslt-devel BuildRequires: libxslt-devel
BuildRequires: docbook-style-xsl BuildRequires: docbook-style-xsl
BuildRequires: glib-networking BuildRequires: glib-networking
BuildRequires: sed BuildRequires: sed
BuildRequires: git
BuildRequires: glib2-devel >= 2.37.4 BuildRequires: glib2-devel >= 2.37.4
BuildRequires: systemd-devel BuildRequires: systemd-devel
BuildRequires: pcp-libs-devel BuildRequires: pcp-libs-devel
BuildRequires: krb5-server BuildRequires: krb5-server
BuildRequires: gdb BuildRequires: gdb
BuildRequires: openssh-clients
# For documentation # For documentation
BuildRequires: xmlto BuildRequires: xmlto
@ -130,42 +102,21 @@ Requires: cockpit-ws
Requires: cockpit-system Requires: cockpit-system
# Optional components # Optional components
%if 0%{?fedora} || 0%{?rhel} >= 8
%if 0%{?rhel} == 0 %if 0%{?rhel} == 0
Recommends: cockpit-dashboard Recommends: cockpit-dashboard
%ifarch x86_64 %{arm} aarch64 ppc64le i686 s390x %ifarch x86_64 %{arm} aarch64 ppc64le i686 s390x
Recommends: (cockpit-docker if /usr/bin/docker) Recommends: (cockpit-docker if /usr/bin/docker)
%endif %endif
%endif
Recommends: (cockpit-networkmanager if NetworkManager) Recommends: (cockpit-networkmanager if NetworkManager)
Recommends: (cockpit-storaged if udisks2) Recommends: (cockpit-storaged if udisks2)
Recommends: cockpit-packagekit Recommends: cockpit-packagekit
%if 0%{?rhel} >= 8 && 0%{?centos} == 0
Recommends: subscription-manager-cockpit Recommends: subscription-manager-cockpit
%endif
Suggests: cockpit-pcp Suggests: cockpit-pcp
%if 0%{?build_kubernetes}
Suggests: cockpit-kubernetes
%endif
Suggests: cockpit-selinux Suggests: cockpit-selinux
%endif %endif
%prep %prep
%setup -q -n cockpit-%{version} %autosetup -S patch -p1 -n cockpit-%{version}
# Apply patches using git in order to support binary patches. Note that
# we also reset mtimes since patches should be "complete" and include both
# generated and source file changes
# Keep this in sync with tools/debian/rules.
if [ -n "%{patches}" ]; then
git init
git config user.email "unused@example.com" && git config user.name "Unused"
git config core.autocrlf false && git config core.safecrlf false && git config gc.auto 0
git add -f . && git commit -a -q -m "Base" && git tag -a initial --message="initial"
git am --whitespace=nowarn %{patches}
touch -r $(git diff --name-only initial..HEAD) .git Makefile.in
rm -rf .git
fi
%build %build
exec 2>&1 exec 2>&1
@ -173,9 +124,6 @@ exec 2>&1
--disable-silent-rules \ --disable-silent-rules \
--with-cockpit-user=cockpit-ws \ --with-cockpit-user=cockpit-ws \
--with-selinux-config-type=etc_t \ --with-selinux-config-type=etc_t \
%if 0%{?rhel} >= 7 && 0%{?rhel} < 8
--without-storaged-iscsi-sessions \
%endif
--with-appstream-data-packages='[ "appstream-data" ]' \ --with-appstream-data-packages='[ "appstream-data" ]' \
--with-nfs-client-package='"nfs-utils"' \ --with-nfs-client-package='"nfs-utils"' \
%{?vdo_on_demand:--with-vdo-package='"vdo"'} %{?vdo_on_demand:--with-vdo-package='"vdo"'}
@ -191,29 +139,17 @@ make install-tests DESTDIR=%{buildroot}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
install -p -m 644 tools/cockpit.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit 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
%if 0%{?firewalld_service} == 0 # shipped in firewalld since 0.6, everywhere in Fedora/RHEL 8
rm -f %{buildroot}/%{_prefix}/%{__lib}/firewalld/services/cockpit.xml rm -f %{buildroot}/%{_prefix}/%{__lib}/firewalld/services/cockpit.xml
%endif
install -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/ install -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/
# On RHEL we don't yet show options for changing language
%if 0%{?rhel}
echo '{ "linguas": null }' > %{buildroot}%{_datadir}/cockpit/shell/override.json
%endif
# Build the package lists for resource packages # Build the package lists for resource packages
echo '%dir %{_datadir}/cockpit/base1' > base.list echo '%dir %{_datadir}/cockpit/base1' > base.list
find %{buildroot}%{_datadir}/cockpit/base1 -type f >> base.list find %{buildroot}%{_datadir}/cockpit/base1 -type f >> base.list
echo '%{_sysconfdir}/cockpit/machines.d' >> base.list echo '%{_sysconfdir}/cockpit/machines.d' >> base.list
echo %{buildroot}%{_datadir}/polkit-1/actions/org.cockpit-project.cockpit-bridge.policy >> base.list echo %{buildroot}%{_datadir}/polkit-1/actions/org.cockpit-project.cockpit-bridge.policy >> base.list
# RHEL 7 needs to keep cockpit-ssh in dashboard for backwards compat
%if 0%{?rhel} == 7
find %{buildroot}%{_datadir}/cockpit/ssh -type f >> dashboard.list
echo '%{_libexecdir}/cockpit-ssh' >> dashboard.list
%else
find %{buildroot}%{_datadir}/cockpit/ssh -type f >> base.list find %{buildroot}%{_datadir}/cockpit/ssh -type f >> base.list
echo '%{_libexecdir}/cockpit-ssh' >> base.list echo '%{_libexecdir}/cockpit-ssh' >> base.list
%endif
%if %{defined build_dashboard} %if %{defined build_dashboard}
echo '%dir %{_datadir}/cockpit/dashboard' >> dashboard.list echo '%dir %{_datadir}/cockpit/dashboard' >> dashboard.list
@ -247,13 +183,6 @@ find %{buildroot}%{_datadir}/cockpit/kdump -type f >> kdump.list
echo '%dir %{_datadir}/cockpit/sosreport' > sosreport.list echo '%dir %{_datadir}/cockpit/sosreport' > sosreport.list
find %{buildroot}%{_datadir}/cockpit/sosreport -type f >> sosreport.list find %{buildroot}%{_datadir}/cockpit/sosreport -type f >> sosreport.list
%if %{defined build_subscriptions}
echo '%dir %{_datadir}/cockpit/subscriptions' >> system.list
find %{buildroot}%{_datadir}/cockpit/subscriptions -type f >> system.list
%else
rm -rf %{buildroot}/%{_datadir}/cockpit/subscriptions
%endif
echo '%dir %{_datadir}/cockpit/storaged' > storaged.list echo '%dir %{_datadir}/cockpit/storaged' > storaged.list
find %{buildroot}%{_datadir}/cockpit/storaged -type f >> storaged.list find %{buildroot}%{_datadir}/cockpit/storaged -type f >> storaged.list
@ -269,9 +198,6 @@ find %{buildroot}%{_datadir}/cockpit/apps -type f >> packagekit.list
echo '%dir %{_datadir}/cockpit/machines' > machines.list echo '%dir %{_datadir}/cockpit/machines' > machines.list
find %{buildroot}%{_datadir}/cockpit/machines -type f >> machines.list find %{buildroot}%{_datadir}/cockpit/machines -type f >> machines.list
echo '%dir %{_datadir}/cockpit/ovirt' > ovirt.list
find %{buildroot}%{_datadir}/cockpit/ovirt -type f >> ovirt.list
echo '%dir %{_datadir}/cockpit/selinux' > selinux.list echo '%dir %{_datadir}/cockpit/selinux' > selinux.list
find %{buildroot}%{_datadir}/cockpit/selinux -type f >> selinux.list find %{buildroot}%{_datadir}/cockpit/selinux -type f >> selinux.list
@ -279,7 +205,7 @@ echo '%dir %{_datadir}/cockpit/playground' > tests.list
find %{buildroot}%{_datadir}/cockpit/playground -type f >> tests.list find %{buildroot}%{_datadir}/cockpit/playground -type f >> tests.list
%ifarch x86_64 %{arm} aarch64 ppc64le i686 s390x %ifarch x86_64 %{arm} aarch64 ppc64le i686 s390x
%if 0%{?fedora} || 0%{?rhel} < 8 %if 0%{?fedora}
echo '%dir %{_datadir}/cockpit/docker' > docker.list echo '%dir %{_datadir}/cockpit/docker' > docker.list
find %{buildroot}%{_datadir}/cockpit/docker -type f >> docker.list find %{buildroot}%{_datadir}/cockpit/docker -type f >> docker.list
%else %else
@ -291,21 +217,6 @@ rm -rf %{buildroot}/%{_datadir}/cockpit/docker
touch docker.list touch docker.list
%endif %endif
%if 0%{?build_kubernetes}
%if %{defined wip}
%else
rm %{buildroot}/%{_datadir}/cockpit/kubernetes/override.json
%endif
echo '%dir %{_datadir}/cockpit/kubernetes' > kubernetes.list
find %{buildroot}%{_datadir}/cockpit/kubernetes -type f >> kubernetes.list
%else
rm -rf %{buildroot}/%{_datadir}/cockpit/kubernetes
rm -f %{buildroot}/%{_libexecdir}/cockpit-kube-auth
rm -f %{buildroot}/%{_libexecdir}/cockpit-kube-launch
rm %{buildroot}/%{_libexecdir}/cockpit-stub
touch kubernetes.list
%endif
# when not building basic packages, remove their files # when not building basic packages, remove their files
%if 0%{?build_basic} == 0 %if 0%{?build_basic} == 0
for pkg in base1 branding motd kdump networkmanager realmd selinux shell sosreport ssh static systemd tuned users; do for pkg in base1 branding motd kdump networkmanager realmd selinux shell sosreport ssh static systemd tuned users; do
@ -329,17 +240,17 @@ rm -f %{buildroot}%{_datadir}/metainfo/cockpit.appdata.xml
# when not building optional packages, remove their files # when not building optional packages, remove their files
%if 0%{?build_optional} == 0 %if 0%{?build_optional} == 0
for pkg in apps dashboard docker kubernetes machines ovirt packagekit pcp playground storaged; do for pkg in apps dashboard docker machines packagekit pcp playground storaged; do
rm -rf %{buildroot}/%{_datadir}/cockpit/$pkg rm -rf %{buildroot}/%{_datadir}/cockpit/$pkg
done done
# files from -tests # files from -tests
rm -r %{buildroot}/%{_prefix}/%{__lib}/cockpit-test-assets %{buildroot}/%{_sysconfdir}/cockpit/cockpit.conf rm -r %{buildroot}/%{_prefix}/%{__lib}/cockpit-test-assets %{buildroot}/%{_sysconfdir}/cockpit/cockpit.conf
# files from -pcp # files from -pcp
rm -r %{buildroot}/%{_libexecdir}/cockpit-pcp %{buildroot}/%{_localstatedir}/lib/pcp/ rm -r %{buildroot}/%{_libexecdir}/cockpit-pcp %{buildroot}/%{_localstatedir}/lib/pcp/
# files from -kubernetes
rm -f %{buildroot}/%{_libexecdir}/cockpit-kube-auth %{buildroot}/%{_libexecdir}/cockpit-kube-launch %{buildroot}/%{_libexecdir}/cockpit-stub
# files from -machines # files from -machines
rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml
# files from -storaged
rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-storaged.metainfo.xml
%endif %endif
sed -i "s|%{buildroot}||" *.list sed -i "s|%{buildroot}||" *.list
@ -357,24 +268,16 @@ rm -rf %{buildroot}/usr/src/debug
cat kdump.list sosreport.list networkmanager.list selinux.list >> system.list cat kdump.list sosreport.list networkmanager.list selinux.list >> system.list
rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-sosreport.metainfo.xml rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-sosreport.metainfo.xml
rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-kdump.metainfo.xml rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-kdump.metainfo.xml
rm -f %{buildroot}%{_datadir}/pixmaps/cockpit-sosreport.png
%endif
%if 0%{?rhel}
rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-selinux.metainfo.xml rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-selinux.metainfo.xml
rm -f %{buildroot}%{_datadir}/pixmaps/cockpit-sosreport.png
%endif %endif
%if 0%{?build_basic} %if 0%{?build_basic}
%find_lang cockpit %find_lang cockpit
%endif %endif
# dwz has trouble with the go binaries
# https://fedoraproject.org/wiki/PackagingDrafts/Go
%global _dwz_low_mem_die_limit 0
%if 0%{?fedora} || 0%{?rhel} >= 8
%global _debugsource_packages 1 %global _debugsource_packages 1
%global _debuginfo_subpackages 0 %global _debuginfo_subpackages 0
%endif
%define find_debug_info %{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_include_minidebuginfo:-m} %{?_find_debuginfo_dwz_opts} %{?_find_debuginfo_opts} %{?_debugsource_packages:-S debugsourcefiles.list} "%{_builddir}/%{?buildsubdir}" %define find_debug_info %{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_include_minidebuginfo:-m} %{?_find_debuginfo_dwz_opts} %{?_find_debuginfo_opts} %{?_debugsource_packages:-S debugsourcefiles.list} "%{_builddir}/%{?buildsubdir}"
@ -409,20 +312,17 @@ troubleshooting, interactive command-line sessions, and more.
%package bridge %package bridge
Summary: Cockpit bridge server-side component Summary: Cockpit bridge server-side component
Requires: glib-networking Requires: glib-networking
%if 0%{?rhel} != 7
Provides: cockpit-ssh = %{version}-%{release} Provides: cockpit-ssh = %{version}-%{release}
# cockpit-ssh moved from dashboard to bridge in 171 # cockpit-ssh moved from dashboard to bridge in 171
Conflicts: cockpit-dashboard < 170.x Conflicts: cockpit-dashboard < 170.x
# PR #10430 dropped workaround for ws' inability to understand x-host-key challenge # PR #10430 dropped workaround for ws' inability to understand x-host-key challenge
Conflicts: cockpit-ws < 181.x Conflicts: cockpit-ws < 181.x
%endif
%description bridge %description bridge
The Cockpit bridge component installed server side and runs commands on the The Cockpit bridge component installed server side and runs commands on the
system on behalf of the web based user interface. system on behalf of the web based user interface.
%files bridge -f base.list %files bridge -f base.list
%{_datadir}/cockpit/base1/bundle.min.js.gz
%doc %{_mandir}/man1/cockpit-bridge.1.gz %doc %{_mandir}/man1/cockpit-bridge.1.gz
%{_bindir}/cockpit-bridge %{_bindir}/cockpit-bridge
%{_libexecdir}/cockpit-askpass %{_libexecdir}/cockpit-askpass
@ -452,38 +352,26 @@ Requires: libpwquality
Requires: /usr/bin/date Requires: /usr/bin/date
Provides: cockpit-realmd = %{version}-%{release} Provides: cockpit-realmd = %{version}-%{release}
Provides: cockpit-shell = %{version}-%{release} Provides: cockpit-shell = %{version}-%{release}
Obsoletes: cockpit-shell < 127
Provides: cockpit-systemd = %{version}-%{release} Provides: cockpit-systemd = %{version}-%{release}
Provides: cockpit-tuned = %{version}-%{release} Provides: cockpit-tuned = %{version}-%{release}
Provides: cockpit-users = %{version}-%{release} Provides: cockpit-users = %{version}-%{release}
%if 0%{?rhel} %if 0%{?rhel}
Provides: cockpit-networkmanager = %{version}-%{release} Provides: cockpit-networkmanager = %{version}-%{release}
Obsoletes: cockpit-networkmanager < 135 Obsoletes: cockpit-networkmanager
Requires: NetworkManager Requires: NetworkManager
Provides: cockpit-kdump = %{version}-%{release} Provides: cockpit-kdump = %{version}-%{release}
Requires: kexec-tools Requires: kexec-tools
# Optional components (only when soft deps are supported)
%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends: polkit Recommends: polkit
%endif
%if 0%{?rhel} >= 8
Recommends: NetworkManager-team Recommends: NetworkManager-team
Recommends: setroubleshoot-server >= 3.3.3 Recommends: setroubleshoot-server >= 3.3.3
%endif
Provides: cockpit-selinux = %{version}-%{release} Provides: cockpit-selinux = %{version}-%{release}
Provides: cockpit-sosreport = %{version}-%{release} Provides: cockpit-sosreport = %{version}-%{release}
%endif %endif
%if %{defined build_subscriptions}
Provides: cockpit-subscriptions = %{version}-%{release}
Requires: subscription-manager >= 1.13
%endif
# NPM modules which are also available as packages # NPM modules which are also available as packages
Provides: bundled(js-jquery) = 3.3.1 Provides: bundled(js-jquery) = 3.4.1
Provides: bundled(js-moment) = 2.22.2 Provides: bundled(js-moment) = 2.24.0
Provides: bundled(nodejs-flot) = 0.8.3 Provides: bundled(nodejs-flot) = 0.8.3
Provides: bundled(nodejs-promise) = 8.0.2 Provides: bundled(xstatic-bootstrap-datepicker-common) = 1.9.0
Provides: bundled(nodejs-requirejs) = 2.1.22
Provides: bundled(xstatic-bootstrap-datepicker-common) = 1.8.0
Provides: bundled(xstatic-patternfly-common) = 3.58.0 Provides: bundled(xstatic-patternfly-common) = 3.58.0
%description system %description system
@ -496,15 +384,9 @@ Summary: Cockpit Web Service
Requires: glib-networking Requires: glib-networking
Requires: openssl Requires: openssl
Requires: glib2 >= 2.37.4 Requires: glib2 >= 2.37.4
%if 0%{?firewalld_service}
Conflicts: firewalld >= 0.6.0-1
%else
Conflicts: firewalld < 0.6.0-1 Conflicts: firewalld < 0.6.0-1
%endif
%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends: sscg >= 2.3 Recommends: sscg >= 2.3
Recommends: system-logos Recommends: system-logos
%endif
Requires(post): systemd Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
@ -527,9 +409,6 @@ The Cockpit Web Service listens on the network, and authenticates users.
%{_unitdir}/cockpit.service %{_unitdir}/cockpit.service
%{_unitdir}/cockpit-motd.service %{_unitdir}/cockpit-motd.service
%{_unitdir}/cockpit.socket %{_unitdir}/cockpit.socket
%if 0%{?firewalld_service}
%{_prefix}/%{__lib}/firewalld/services/cockpit.xml
%endif
%{_prefix}/%{__lib}/tmpfiles.d/cockpit-tempfiles.conf %{_prefix}/%{__lib}/tmpfiles.d/cockpit-tempfiles.conf
%{_sbindir}/remotectl %{_sbindir}/remotectl
%{_libdir}/security/pam_ssh_add.so %{_libdir}/security/pam_ssh_add.so
@ -542,7 +421,7 @@ The Cockpit Web Service listens on the network, and authenticates users.
%pre ws %pre ws
getent group cockpit-ws >/dev/null || groupadd -r cockpit-ws getent group cockpit-ws >/dev/null || groupadd -r cockpit-ws
getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d / -s /sbin/nologin -c "User for cockpit-ws" cockpit-ws getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d /nonexisting -s /sbin/nologin -c "User for cockpit-ws" cockpit-ws
%post ws %post ws
%systemd_post cockpit.socket %systemd_post cockpit.socket
@ -594,10 +473,8 @@ Summary: Cockpit user interface for networking, using NetworkManager
Requires: cockpit-bridge >= 122 Requires: cockpit-bridge >= 122
Requires: cockpit-shell >= 122 Requires: cockpit-shell >= 122
Requires: NetworkManager Requires: NetworkManager
# Optional components (only when soft deps are supported) # Optional components
%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends: NetworkManager-team Recommends: NetworkManager-team
%endif
BuildArch: noarch BuildArch: noarch
%description networkmanager %description networkmanager
@ -613,9 +490,7 @@ The Cockpit component for managing networking. This package uses NetworkManager
Summary: Cockpit SELinux package Summary: Cockpit SELinux package
Requires: cockpit-bridge >= 122 Requires: cockpit-bridge >= 122
Requires: cockpit-shell >= 122 Requires: cockpit-shell >= 122
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: setroubleshoot-server >= 3.3.3 Requires: setroubleshoot-server >= 3.3.3
%endif
BuildArch: noarch BuildArch: noarch
%description selinux %description selinux
@ -644,28 +519,19 @@ Dummy package from building optional packages only; never install or publish me.
Summary: Cockpit user interface for storage, using udisks Summary: Cockpit user interface for storage, using udisks
Requires: cockpit-shell >= 122 Requires: cockpit-shell >= 122
Requires: udisks2 >= 2.6 Requires: udisks2 >= 2.6
%if 0%{?rhel} == 7
# Recommends: not supported in RHEL <= 7
Requires: udisks2-lvm2 >= 2.6
Requires: udisks2-iscsi >= 2.6
Requires: device-mapper-multipath
Requires: python
Requires: python-dbus
%else
Recommends: udisks2-lvm2 >= 2.6 Recommends: udisks2-lvm2 >= 2.6
Recommends: udisks2-iscsi >= 2.6 Recommends: udisks2-iscsi >= 2.6
Recommends: device-mapper-multipath Recommends: device-mapper-multipath
Recommends: clevis-luks Recommends: clevis-luks
Requires: %{__python3} Requires: %{__python3}
Requires: python3-dbus Requires: python3-dbus
%endif
BuildArch: noarch BuildArch: noarch
%description -n cockpit-storaged %description -n cockpit-storaged
The Cockpit component for managing storage. This package uses udisks. The Cockpit component for managing storage. This package uses udisks.
%files -n cockpit-storaged -f storaged.list %files -n cockpit-storaged -f storaged.list
%{_datadir}/metainfo/org.cockpit-project.cockpit-storaged.metainfo.xml
%package -n cockpit-tests %package -n cockpit-tests
Summary: Tests for Cockpit Summary: Tests for Cockpit
@ -673,7 +539,6 @@ Requires: cockpit-bridge >= 138
Requires: cockpit-system >= 138 Requires: cockpit-system >= 138
Requires: openssh-clients Requires: openssh-clients
Provides: cockpit-test-assets = %{version}-%{release} Provides: cockpit-test-assets = %{version}-%{release}
Obsoletes: cockpit-test-assets < 132
%description -n cockpit-tests %description -n cockpit-tests
This package contains tests and files used while testing Cockpit. This package contains tests and files used while testing Cockpit.
@ -688,17 +553,13 @@ BuildArch: noarch
Summary: Cockpit user interface for virtual machines Summary: Cockpit user interface for virtual machines
Requires: cockpit-bridge >= 122 Requires: cockpit-bridge >= 122
Requires: cockpit-system >= 122 Requires: cockpit-system >= 122
%if 0%{?rhel} == 7 Requires: libvirt-daemon-kvm
Requires: libvirt
%else
Requires: (libvirt-daemon-kvm or libvirt)
%endif
Requires: libvirt-client Requires: libvirt-client
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: libvirt-dbus >= 1.2.0 Requires: libvirt-dbus >= 1.2.0
# Optional components # Optional components
Recommends: virt-install Recommends: virt-install
%endif Recommends: libosinfo
Recommends: python3-gobject-base
%description -n cockpit-machines %description -n cockpit-machines
The Cockpit components for managing virtual machines. The Cockpit components for managing virtual machines.
@ -708,23 +569,6 @@ If "virt-install" is installed, you can also create new virtual machines.
%files -n cockpit-machines -f machines.list %files -n cockpit-machines -f machines.list
%{_datadir}/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml %{_datadir}/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml
%package -n cockpit-machines-ovirt
BuildArch: noarch
Summary: Cockpit user interface for oVirt virtual machines
Requires: cockpit-bridge >= 122
Requires: cockpit-system >= 122
%if 0%{?rhel} == 7
Requires: libvirt
%else
Requires: (libvirt-daemon-kvm or libvirt)
%endif
Requires: libvirt-client
%description -n cockpit-machines-ovirt
The Cockpit components for managing oVirt virtual machines.
%files -n cockpit-machines-ovirt -f ovirt.list
%package -n cockpit-pcp %package -n cockpit-pcp
Summary: Cockpit PCP integration Summary: Cockpit PCP integration
Requires: cockpit-bridge >= 134.x Requires: cockpit-bridge >= 134.x
@ -746,17 +590,9 @@ Cockpit support for reading PCP metrics and loading PCP archives.
%if %{defined build_dashboard} %if %{defined build_dashboard}
%package -n cockpit-dashboard %package -n cockpit-dashboard
Summary: Cockpit remote servers and dashboard Summary: Cockpit remote servers and dashboard
%if 0%{?rhel} == 7
Provides: cockpit-ssh = %{version}-%{release}
# nothing depends on the dashboard, but we can't use it with older versions of the bridge
Conflicts: cockpit-bridge < 135
# PR #10430 dropped workaround for ws' inability to understand x-host-key challenge
Conflicts: cockpit-ws < 173.1
%else
BuildArch: noarch BuildArch: noarch
Requires: cockpit-ssh >= 135 Requires: cockpit-ssh >= 135
Conflicts: cockpit-ws < 135 Conflicts: cockpit-ws < 135
%endif
%description -n cockpit-dashboard %description -n cockpit-dashboard
Cockpit support for connecting to remote servers (through ssh), Cockpit support for connecting to remote servers (through ssh),
@ -767,19 +603,14 @@ bastion hosts, and a basic dashboard.
%endif %endif
%ifarch x86_64 %{arm} aarch64 ppc64le i686 s390x %ifarch x86_64 %{arm} aarch64 ppc64le i686 s390x
%if 0%{?fedora}
%if 0%{?fedora} || 0%{?rhel} < 8
%package -n cockpit-docker %package -n cockpit-docker
Summary: Cockpit user interface for Docker containers Summary: Cockpit user interface for Docker containers
Requires: cockpit-bridge >= 122 Requires: cockpit-bridge >= 122
Requires: cockpit-shell >= 122 Requires: cockpit-shell >= 122
Requires: /usr/bin/docker Requires: /usr/bin/docker
Requires: /usr/lib/systemd/system/docker.service Requires: /usr/lib/systemd/system/docker.service
%if 0%{?fedora}
Requires: %{__python3} Requires: %{__python3}
%else
Requires: python2
%endif
%description -n cockpit-docker %description -n cockpit-docker
The Cockpit components for interacting with Docker and user interface. The Cockpit components for interacting with Docker and user interface.
@ -790,32 +621,6 @@ This package is not yet complete.
%endif %endif
%endif %endif
%if 0%{?build_kubernetes}
%package -n cockpit-kubernetes
Summary: Cockpit user interface for Kubernetes cluster
Requires: /usr/bin/kubectl
# Requires: Needs newer localization support
Requires: cockpit-bridge >= 137.x
Requires: cockpit-shell >= 137.x
BuildRequires: %{go_scl_prefix}golang-bin
BuildRequires: %{go_scl_prefix}golang-src
Provides: cockpit-stub = %{version}-%{release}
%description -n cockpit-kubernetes
The Cockpit components for visualizing and configuring a Kubernetes
cluster. Installed on the Kubernetes master. This package is not yet complete.
%if 0%{?rhel} >= 8
%enable_gotoolset7
%endif
%files -n cockpit-kubernetes -f kubernetes.list
%{_libexecdir}/cockpit-kube-auth
%{_libexecdir}/cockpit-kube-launch
%{_libexecdir}/cockpit-stub
%endif
%package -n cockpit-packagekit %package -n cockpit-packagekit
Summary: Cockpit user interface for packages Summary: Cockpit user interface for packages
BuildArch: noarch BuildArch: noarch
@ -832,6 +637,63 @@ via PackageKit.
# The changelog is automatically generated and merged # The changelog is automatically generated and merged
%changelog %changelog
* Mon Sep 09 2019 Martin Pitt <mpitt@redhat.com> - 197.3-1
- Machines: Fix race condition with handling *EVENT_UNDEFINED (rhbz#1715388)
* Tue Aug 13 2019 Martin Pitt <mpitt@redhat.com> - 197.2-1
- Machines: Stop bringing libvirt package as a dependency (rhbz#1728219)
- Machines: Implement VM installation for additional disk types
- Machines: Fix setting of volume format when adding new disks to VMs (rhbz#1732303)
- Machines: Disallow pool deletion if pool/volumes are used by any VM (rhbz#1731865)
- Check for subscription only if enabled in package manager (rhbz#1701067)
* Thu Aug 01 2019 Martin Pitt <mpitt@redhat.com> - 197.1-1
- Machines: Fix crash on deleting VM in the middle of the installation (rhbz#1715399)
- Machines: Properly refresh storage pools (rhbz#1680293)
- Machines: Fix pool types which don't support volume creation (rhbz#1731849)
- Machines: Disable PXE booting on session connection (rhbz#1731803)
* Thu Jun 27 2019 Martin Pitt <mpitt@redhat.com> - 197-1
- Machines: Support all storage pool types for new disks
- Machines: Show available space on host at VM creation
- Machines: Fix regression on network tab rhbz#1720267
* Thu Jun 13 2019 Martin Pitt <mpitt@redhat.com> - 196-1
- Machines: Support ISO source from http:// rhbz#1644267
- Machines: Select destination storage pool on creation rhbz#1658852
- Machines: Hide iscsi-direct type from create new pool dialog when not
available rhbz#1709708
- Machines: Fix handling of storage pools that failed to get active
rhbz#1715388
- Machines: Fix OS detection while changing installation source rhbz#1715409
* Sun May 05 2019 Martin Pitt <mpitt@redhat.com> - 193-1
- Machines: iSCSI direct storage pools
- Machines: Auto-detect guest operating system rhbz#1652959
- Machines: Support https://*.iso installation source rhbz#1684422
- Machines: Fix crash on VM creation with Edge browser rhbz#1692707
- Storage: The "Format" button is no longer hidden
- Storage: Improve performance with many block devices
* Thu Apr 04 2019 Martin Pitt <mpitt@redhat.com> - 191-1
- Storage: Fix pre-filling of vdo fstab options rhbz#1672935
- Machines: Add PXE boot rhbz#1680973
- Machines: Add pause/resume rhbz#1680401
- Machines: Configure boot device order rhbz#1672760
- Machines: Import existing qcow2 image rhbz#1666825
- Machines: Edit virtual memory rhbz#1676557
- Machines: Deletion of storage volumes rhbz#1668882
* Wed Mar 13 2019 Martin Pitt <mpitt@redhat.com> - 189-1
- Machines: Remove useless notifications from disk tab rhbz#1632800
- Machines: Add deletion and deactivation of storage pools/volumes
rhbz#1658847, rhbz#1668882, rhbz#1668877
- Machines: Fix preparation of disk data for disks of type volume rhbz#1661897
- Machines: Add disk format field when creating new disk xml rhbz#1662213
- Machines: Fix storage pool state after destroy/undefine rhbz#1663793
- Machines: Add import of existing images rhbz#1666825
- Machines: Enable/disable VM autostart rhbz#1670491
* Wed Jan 23 2019 Martin Pitt <mpitt@redhat.com> - 184.1-1 * Wed Jan 23 2019 Martin Pitt <mpitt@redhat.com> - 184.1-1
- storage: Always round dialog size slider input rhbz#1665955 - storage: Always round dialog size slider input rhbz#1665955