forked from cockpit/cockpit
- Merge SUSE branding into cockpit package
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=108
This commit is contained in:
10
cockpit.spec
10
cockpit.spec
@@ -55,6 +55,7 @@ Release: 0
|
||||
Source0: cockpit-%{version}.tar
|
||||
Source1: cockpit.pam
|
||||
Source2: cockpit-rpmlintrc
|
||||
Source3: cockpit-suse-theme-fe08b35.tar
|
||||
Source99: README.packaging
|
||||
Source98: package-lock.json
|
||||
Source97: node_modules.spec.inc
|
||||
@@ -182,7 +183,7 @@ Requires: subscription-manager-cockpit
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n cockpit-%{version}
|
||||
%setup -q -n cockpit-%{version} -a 3
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
@@ -236,6 +237,13 @@ install -p -m 644 tools/cockpit.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit
|
||||
rm -f %{buildroot}/%{_libdir}/cockpit/*.so
|
||||
install -D -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/cockpit/branding/suse
|
||||
pushd cockpit-suse-theme-*
|
||||
cp src/css-overrides.css %{buildroot}%{_datadir}/cockpit/branding/suse
|
||||
cp src/fonts.css %{buildroot}%{_datadir}/cockpit/branding/suse
|
||||
cp -a src/fonts %{buildroot}%{_datadir}/cockpit/branding/suse
|
||||
popd
|
||||
|
||||
# only ship deprecated PatternFly API for stable releases
|
||||
%if 0%{?rhel} == 8
|
||||
if [ -f %{buildroot}/%{_datadir}/cockpit/base1/cockpit.css.gz ]; then
|
||||
|
Reference in New Issue
Block a user