1
0
forked from cockpit/cockpit

- Fix libexecdir for leap and sle (bsc#1223533)

- Fix systemd units folder for leap and sle (bsc#1226541)

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=192
This commit is contained in:
2024-08-08 10:48:31 +00:00
committed by Git OBS Bridge
parent 3d9fd349c1
commit 08a644cfac
3 changed files with 26 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ Patch102: 0002-selinux-temporary-remove-setroubleshoot-section.patch
# For anything based on SLES 15 codebase (including Leap, SLE Micro)
Patch103: 0004-leap-gnu18-removal.patch
Patch104: selinux_libdir.patch
Patch105: fix-libexecdir.patch
%define build_all 1
%if 0%{?rhel} == 8 && 0%{?epel} == 0 && !0%{?build_all}
@@ -235,6 +236,7 @@ BuildRequires: python3-tox-current-env
%if 0%{?suse_version} == 1500
%patch -P 103 -p1
%patch -P 104 -p0
%patch -P 105 -p1
%endif
cp %SOURCE1 tools/cockpit.pam
@@ -306,6 +308,12 @@ cp src/fonts.css %{buildroot}%{_datadir}/cockpit/branding/suse
cp -a src/fonts %{buildroot}%{_datadir}/cockpit/branding/suse
popd
%if 0%{?suse_version} == 1500
sed -i -e 's#"/lib/systemd/system#"%{_unitdir}#' \
%{buildroot}%{_datadir}/cockpit/packagekit/manifest.json \
%{buildroot}%{_datadir}/cockpit/pcp/manifest.json
%endif
# Build the package lists for resource packages
# cockpit-bridge is the basic dependency for all cockpit-* packages, so centrally own the page directory
echo '%dir %{_datadir}/cockpit' > base.list