aboutsummaryrefslogtreecommitdiff
path: root/packages/squashfs-tools-ng.spec
diff options
context:
space:
mode:
authorSébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>2020-10-26 19:11:14 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2020-10-27 11:49:57 +0100
commit51c0c5694f6d8c752663f0a515f3b9e1cf081c66 (patch)
tree0b66cdeb997b502b0d04c670987341b3a1916e5b /packages/squashfs-tools-ng.spec
parentb32e30b071aa54c02daacfb345e8a48880ae6428 (diff)
Fix multiple issues in RPM package builder
* 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 <seb•ɑƬ•chezwam•ɖɵʈ•org>
Diffstat (limited to 'packages/squashfs-tools-ng.spec')
-rw-r--r--packages/squashfs-tools-ng.spec6
1 files 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