forked from cockpit/cockpit
fix requires for SUSE
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=24
This commit is contained in:
parent
ed0a784742
commit
8ed811c5af
28
cockpit.spec
28
cockpit.spec
@ -180,7 +180,11 @@ 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%{?suse_version}
|
||||||
|
Requires: libssh4 >= %{libssh_version}
|
||||||
|
%else
|
||||||
Requires: libssh >= %{libssh_version}
|
Requires: libssh >= %{libssh_version}
|
||||||
|
%endif
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): 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}"
|
%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
|
%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
|
# Redefine how debug info is built to slip in our extra debug files
|
||||||
%define __debug_install_post \
|
%define __debug_install_post \
|
||||||
%{find_debug_info} \
|
%{find_debug_info} \
|
||||||
@ -420,7 +440,11 @@ test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
|
|||||||
%package shell
|
%package shell
|
||||||
Summary: Cockpit Shell user interface package
|
Summary: Cockpit Shell user interface package
|
||||||
Requires: %{name}-bridge = %{version}-%{release}
|
Requires: %{name}-bridge = %{version}-%{release}
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
Requires: shadow
|
||||||
|
%else
|
||||||
Requires: shadow-utils
|
Requires: shadow-utils
|
||||||
|
%endif
|
||||||
Requires: grep
|
Requires: grep
|
||||||
Requires: libpwquality
|
Requires: libpwquality
|
||||||
Requires: /usr/bin/date
|
Requires: /usr/bin/date
|
||||||
@ -450,7 +474,11 @@ This package contains the Cockpit shell UI assets.
|
|||||||
Summary: Cockpit user interface for storage, using Storaged
|
Summary: Cockpit user interface for storage, using Storaged
|
||||||
Requires: storaged >= 2.1.1
|
Requires: storaged >= 2.1.1
|
||||||
Requires: storaged-lvm2 >= 2.1.1
|
Requires: storaged-lvm2 >= 2.1.1
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
Requires: multipath-tools
|
||||||
|
%else
|
||||||
Requires: device-mapper-multipath
|
Requires: device-mapper-multipath
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description storaged
|
%description storaged
|
||||||
|
Loading…
Reference in New Issue
Block a user