1
0

Accepting request 897883 from home:hellcp:branches:Base:System

- Add icons package to handle systemd branding better

OBS-URL: https://build.opensuse.org/request/show/897883
OBS-URL: https://build.opensuse.org/package/show/Base:System/distribution-logos-openSUSE?expand=0&rev=11
This commit is contained in:
Sasi Olin 2021-06-06 16:38:13 +00:00 committed by Git OBS Bridge
parent ffccacefc1
commit 2533bb2a34
2 changed files with 32 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jun 6 16:37:14 UTC 2021 - Sasi Olin <hel@lcp.world>
- Add icons package to handle systemd branding better
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 2 11:06:52 UTC 2021 - Stasiek Michalski <stasiek@michalski.cc> Sat Jan 2 11:06:52 UTC 2021 - Stasiek Michalski <stasiek@michalski.cc>

View File

@ -2,7 +2,7 @@
# spec file for package distribution-logos-openSUSE # spec file for package distribution-logos-openSUSE
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 Stasiek Michalski <hellcp@opensuse.org>. # Copyright (c) 2021 Sasi Olin <hellcp@opensuse.org>.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -25,6 +25,7 @@ Release: 0
Url: https://github.com/openSUSE/distribution-logos Url: https://github.com/openSUSE/distribution-logos
Source: distribution-logos-master.zip Source: distribution-logos-master.zip
BuildRequires: unzip BuildRequires: unzip
BuildRequires: hicolor-icon-theme
BuildArch: noarch BuildArch: noarch
%description %description
@ -88,6 +89,20 @@ Logos for openSUSE MicroOS
%endif %endif
%package icons
Summary: Icons with distribution logos
Requires: distribution-logos
Provides: systemd-icon-branding
Obsoletes: systemd-icon-branding-openSUSE < 20200107
Provides: systemd-icon-branding-openSUSE = 20200107
Conflicts: systemd-icon-branding-openSUSE
BuildArch: noarch
%description icons
Icons with openSUSE distribution logos.
%prep %prep
%setup -qn distribution-logos-master %setup -qn distribution-logos-master
@ -95,16 +110,22 @@ Logos for openSUSE MicroOS
# Skip build # Skip build
%install %install
export NO_BRP_STALE_LINK_ERROR=yes
mkdir -p %{buildroot}%{_datadir}/pixmaps/distribution-logos
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{scalable,symbolic}/apps
%if 0%{?sle_version} %if 0%{?sle_version}
for distro in Leap; do \ for distro in Leap; do \
%else %else
for distro in Tumbleweed Kubic MicroOS; do \ for distro in Tumbleweed Kubic MicroOS; do \
%endif %endif
mkdir -p %{buildroot}%{_datadir}/pixmaps/distribution-logos; \
for file in `ls ${distro}`; do \ for file in `ls ${distro}`; do \
cp -r ${distro}/${file} %{buildroot}%{_datadir}/pixmaps/distribution-logos/${file}.${distro}; \ cp -r ${distro}/${file} %{buildroot}%{_datadir}/pixmaps/distribution-logos/${file}.${distro}; \
done; \ done; \
done \ cp -r ${distro}/square-hicolor.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/distributor-logo-${distro}.svg; \
cp -r ${distro}/square-symbolic.svg %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/distributor-logo-${distro}-symbolic.svg; \
done
ln -sf %{_datadir}/pixmaps/distribution-logos/square-hicolor.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/distributor-logo.svg
ln -sf %{_datadir}/pixmaps/distribution-logos/square-symbolic.svg %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/distributor-logo-symbolic.svg
%files %files
%dir %{_datadir}/pixmaps/distribution-logos %dir %{_datadir}/pixmaps/distribution-logos
@ -127,4 +148,7 @@ done \
%endif %endif
%files icons
%{_datadir}/icons/hicolor/*
%changelog %changelog