2019-04-18 08:13:59 +02:00
|
|
|
#
|
|
|
|
# spec file for package distribution-logos-openSUSE
|
|
|
|
#
|
2019-10-18 09:08:07 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2021-06-06 18:38:13 +02:00
|
|
|
# Copyright (c) 2021 Sasi Olin <hellcp@opensuse.org>.
|
2019-04-18 08:13:59 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-18 09:08:07 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-04-18 08:13:59 +02:00
|
|
|
#
|
|
|
|
|
2019-10-18 09:08:07 +02:00
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
Name: distribution-logos-openSUSE
|
|
|
|
Summary: Logos for openSUSE Distros
|
2019-10-18 09:08:07 +02:00
|
|
|
License: CC-BY-SA-4.0
|
2020-11-17 13:24:26 +01:00
|
|
|
Version: 20201117
|
2019-04-18 08:13:59 +02:00
|
|
|
Release: 0
|
|
|
|
Url: https://github.com/openSUSE/distribution-logos
|
|
|
|
Source: distribution-logos-master.zip
|
|
|
|
BuildRequires: unzip
|
2021-06-06 18:38:13 +02:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2019-04-18 08:13:59 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Logos for openSUSE Distributions
|
|
|
|
|
2021-01-02 12:10:22 +01:00
|
|
|
%if 0%{?sle_version}
|
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%package Leap
|
|
|
|
Summary: Logos for openSUSE Leap
|
|
|
|
|
|
|
|
Obsoletes: distribution-logos
|
|
|
|
Provides: distribution-logos
|
|
|
|
Conflicts: distribution-logos
|
|
|
|
|
|
|
|
RemovePathPostfixes: .Leap
|
|
|
|
BuildArch: noarch
|
2019-10-18 09:08:07 +02:00
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%description Leap
|
|
|
|
Logos for openSUSE Leap
|
|
|
|
|
2021-01-02 12:10:22 +01:00
|
|
|
%else
|
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%package Tumbleweed
|
|
|
|
Summary: Logos for openSUSE Tumbleweed
|
|
|
|
|
|
|
|
Obsoletes: distribution-logos
|
|
|
|
Provides: distribution-logos
|
|
|
|
Conflicts: distribution-logos
|
|
|
|
|
|
|
|
RemovePathPostfixes: .Tumbleweed
|
|
|
|
BuildArch: noarch
|
2019-10-18 09:08:07 +02:00
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%description Tumbleweed
|
|
|
|
Logos for openSUSE Tumbleweed
|
|
|
|
|
|
|
|
%package Kubic
|
|
|
|
Summary: Logos for openSUSE Kubic
|
|
|
|
|
|
|
|
Obsoletes: distribution-logos
|
|
|
|
Provides: distribution-logos
|
|
|
|
Conflicts: distribution-logos
|
|
|
|
|
|
|
|
RemovePathPostfixes: .Kubic
|
|
|
|
BuildArch: noarch
|
2019-10-18 09:08:07 +02:00
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%description Kubic
|
|
|
|
Logos for openSUSE Kubic
|
|
|
|
|
|
|
|
%package MicroOS
|
|
|
|
Summary: Logos for openSUSE MicroOS
|
|
|
|
|
|
|
|
Obsoletes: distribution-logos
|
|
|
|
Provides: distribution-logos
|
|
|
|
Conflicts: distribution-logos
|
|
|
|
|
|
|
|
RemovePathPostfixes: .MicroOS
|
|
|
|
BuildArch: noarch
|
2019-10-18 09:08:07 +02:00
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%description MicroOS
|
|
|
|
Logos for openSUSE MicroOS
|
|
|
|
|
2021-01-02 12:10:22 +01:00
|
|
|
%endif
|
|
|
|
|
2021-06-06 18:38:13 +02:00
|
|
|
%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.
|
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%prep
|
|
|
|
%setup -qn distribution-logos-master
|
|
|
|
|
|
|
|
%build
|
|
|
|
# Skip build
|
|
|
|
|
|
|
|
%install
|
2021-06-06 18:38:13 +02:00
|
|
|
export NO_BRP_STALE_LINK_ERROR=yes
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps/distribution-logos
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{scalable,symbolic}/apps
|
2021-01-02 12:10:22 +01:00
|
|
|
%if 0%{?sle_version}
|
|
|
|
for distro in Leap; do \
|
|
|
|
%else
|
|
|
|
for distro in Tumbleweed Kubic MicroOS; do \
|
|
|
|
%endif
|
2019-04-18 08:13:59 +02:00
|
|
|
for file in `ls ${distro}`; do \
|
|
|
|
cp -r ${distro}/${file} %{buildroot}%{_datadir}/pixmaps/distribution-logos/${file}.${distro}; \
|
|
|
|
done; \
|
2021-06-06 18:38:13 +02:00
|
|
|
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
|
2019-04-18 08:13:59 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{_datadir}/pixmaps/distribution-logos
|
|
|
|
|
2021-01-02 12:10:22 +01:00
|
|
|
%if 0%{?sle_version}
|
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%files Leap
|
|
|
|
%{_datadir}/pixmaps/distribution-logos/*.Leap
|
|
|
|
|
2021-01-02 12:10:22 +01:00
|
|
|
%else
|
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%files Tumbleweed
|
|
|
|
%{_datadir}/pixmaps/distribution-logos/*.Tumbleweed
|
|
|
|
|
|
|
|
%files Kubic
|
|
|
|
%{_datadir}/pixmaps/distribution-logos/*.Kubic
|
|
|
|
|
|
|
|
%files MicroOS
|
|
|
|
%{_datadir}/pixmaps/distribution-logos/*.MicroOS
|
|
|
|
|
2021-01-02 12:10:22 +01:00
|
|
|
%endif
|
|
|
|
|
2021-06-06 18:38:13 +02:00
|
|
|
%files icons
|
|
|
|
%{_datadir}/icons/hicolor/*
|
|
|
|
|
2019-04-18 08:13:59 +02:00
|
|
|
%changelog
|