1
0
forked from cockpit/cockpit
Klaus Kämpf 2015-10-14 12:43:49 +00:00 committed by Git OBS Bridge
parent ed0a784742
commit 8ed811c5af

View File

@ -180,7 +180,11 @@ Summary: Cockpit Web Service
Requires: glib-networking
Requires: openssl
Requires: glib2 >= 2.37.4
%if 0%{?suse_version}
Requires: libssh4 >= %{libssh_version}
%else
Requires: libssh >= %{libssh_version}
%endif
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
@ -309,6 +313,22 @@ cat subscriptions.list docker.list networkmanager.list >> shell.list
%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} "%{_builddir}/%{?buildsubdir}"
%endif
# .css, .html, and .html are minified/gzipped but somehow the originals remain
%if 0%{?suse_version}
rm -rf %{buildroot}%{_datadir}/%{name}/*/*.{css,js,mustache}
rm -rf %{buildroot}%{_datadir}/%{name}/*/index.html
rm -rf %{buildroot}%{_datadir}/%{name}/*/console.html
rm -rf %{buildroot}%{_datadir}/%{name}/*/operation.html
rm -rf %{buildroot}%{_datadir}/%{name}/*/shell.html
rm -rf %{buildroot}%{_datadir}/%{name}/*/logs.html
rm -rf %{buildroot}%{_datadir}/%{name}/*/terminal.html
rm -rf %{buildroot}%{_datadir}/%{name}/*/services.html
rm -rf %{buildroot}%{_datadir}/%{name}/kubernetes/views/*body.html
rm -rf %{buildroot}%{_datadir}/%{name}/kubernetes/views/*bar.html
rm -rf %{buildroot}%{_datadir}/%{name}/kubernetes/views/*page.html
rm -rf %{buildroot}%{_datadir}/%{name}/kubernetes/views/*panel.html
%endif
# Redefine how debug info is built to slip in our extra debug files
%define __debug_install_post \
%{find_debug_info} \
@ -420,7 +440,11 @@ test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
%package shell
Summary: Cockpit Shell user interface package
Requires: %{name}-bridge = %{version}-%{release}
%if 0%{?suse_version}
Requires: shadow
%else
Requires: shadow-utils
%endif
Requires: grep
Requires: libpwquality
Requires: /usr/bin/date
@ -450,7 +474,11 @@ This package contains the Cockpit shell UI assets.
Summary: Cockpit user interface for storage, using Storaged
Requires: storaged >= 2.1.1
Requires: storaged-lvm2 >= 2.1.1
%if 0%{?suse_version}
Requires: multipath-tools
%else
Requires: device-mapper-multipath
%endif
BuildArch: noarch
%description storaged