1
0

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

- Only build Leap subpackage on Leap base and Tumbleweed based
  distros subpackages on Tumbleweed base

OBS-URL: https://build.opensuse.org/request/show/859828
OBS-URL: https://build.opensuse.org/package/show/Base:System/distribution-logos-openSUSE?expand=0&rev=9
This commit is contained in:
Sasi Olin 2021-01-02 11:10:22 +00:00 committed by Git OBS Bridge
parent 8c8f56ba80
commit ffccacefc1
2 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jan 2 11:06:52 UTC 2021 - Stasiek Michalski <stasiek@michalski.cc>
- Only build Leap subpackage on Leap base and Tumbleweed based
distros subpackages on Tumbleweed base
-------------------------------------------------------------------
Tue Nov 17 12:21:00 UTC 2020 - Stasiek Michalski <stasiek@michalski.cc>

View File

@ -30,6 +30,8 @@ BuildArch: noarch
%description
Logos for openSUSE Distributions
%if 0%{?sle_version}
%package Leap
Summary: Logos for openSUSE Leap
@ -43,6 +45,8 @@ BuildArch: noarch
%description Leap
Logos for openSUSE Leap
%else
%package Tumbleweed
Summary: Logos for openSUSE Tumbleweed
@ -82,6 +86,8 @@ BuildArch: noarch
%description MicroOS
Logos for openSUSE MicroOS
%endif
%prep
%setup -qn distribution-logos-master
@ -89,7 +95,11 @@ Logos for openSUSE MicroOS
# Skip build
%install
for distro in Leap Tumbleweed Kubic MicroOS; do \
%if 0%{?sle_version}
for distro in Leap; do \
%else
for distro in Tumbleweed Kubic MicroOS; do \
%endif
mkdir -p %{buildroot}%{_datadir}/pixmaps/distribution-logos; \
for file in `ls ${distro}`; do \
cp -r ${distro}/${file} %{buildroot}%{_datadir}/pixmaps/distribution-logos/${file}.${distro}; \
@ -99,9 +109,13 @@ done \
%files
%dir %{_datadir}/pixmaps/distribution-logos
%if 0%{?sle_version}
%files Leap
%{_datadir}/pixmaps/distribution-logos/*.Leap
%else
%files Tumbleweed
%{_datadir}/pixmaps/distribution-logos/*.Tumbleweed
@ -111,4 +125,6 @@ done \
%files MicroOS
%{_datadir}/pixmaps/distribution-logos/*.MicroOS
%endif
%changelog