From 51c0c5694f6d8c752663f0a515f3b9e1cf081c66 Mon Sep 17 00:00:00 2001 From: Sébastien Gross Date: Mon, 26 Oct 2020 19:11:14 +0100 Subject: Fix multiple issues in RPM package builder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * suse_version macro were mission the question mark prefix. * replace el macro by centos macro. * Add dependency to SELinux. Signed-off-by: Sébastien Gross --- packages/squashfs-tools-ng.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/squashfs-tools-ng.spec b/packages/squashfs-tools-ng.spec index d16b66a..81add75 100644 --- a/packages/squashfs-tools-ng.spec +++ b/packages/squashfs-tools-ng.spec @@ -1,7 +1,7 @@ ## Spec file to build squashf-tools-ng RPM package. # OpenSUSE has no dist macro -%if 0%{suse_version} > 0 +%if 0%{?suse_version} > 0 %global dist .sles%{suse_version} %endif @@ -37,7 +37,7 @@ this package from the original: SELinux labels. -%if 0%{?el} > 7 || 0%{?fedora} >= 32 || 0%{?suse_version} >= 1500 +%if 0%{?centos} > 7 || 0%{?fedora} >= 32 || 0%{?suse_version} >= 1500 %global use_zstd 1 %endif @@ -49,6 +49,7 @@ BuildRequires: automake BuildRequires: autoconf BuildRequires: libtool BuildRequires: doxygen +BuildRequires: libselinux-devel BuildRequires: zlib-devel BuildRequires: xz-devel BuildRequires: lzo-devel @@ -74,6 +75,7 @@ Requires: xz Requires: lzo Requires: libattr Requires: lz4 +Requires: libselinux #Recommends: squashfs-tools -- cgit v1.2.3