spec: Support SUSE specic BuildRequires
This commit is contained in:
parent
6cb34f6fe3
commit
4218c056ad
1 changed files with 7 additions and 0 deletions
|
|
@ -7,10 +7,17 @@ License: LGPL-2.1-or-later
|
||||||
Source0: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-%{version}.tar.xz
|
Source0: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||||
Source1: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-node-%{version}.tar.xz
|
Source1: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-node-%{version}.tar.xz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if ! 0%{?suse_version}
|
||||||
ExclusiveArch: %{nodejs_arches} noarch
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
%endif
|
||||||
BuildRequires: nodejs
|
BuildRequires: nodejs
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
# Suse's package has a different name
|
||||||
|
BuildRequires: appstream-glib
|
||||||
|
%else
|
||||||
BuildRequires: libappstream-glib
|
BuildRequires: libappstream-glib
|
||||||
|
%endif
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 8
|
%if 0%{?rhel} && 0%{?rhel} <= 8
|
||||||
BuildRequires: libappstream-glib-devel
|
BuildRequires: libappstream-glib-devel
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue