]> git.pld-linux.org Git - packages/file.git/commitdiff
add seccomp bcond so it's possible to disable on %{x8664} auto/th/file-5.40-1
authorJan Palus <atler@pld-linux.org>
Mon, 19 Apr 2021 13:46:13 +0000 (15:46 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 19 Apr 2021 13:49:59 +0000 (15:49 +0200)
`file -z *jar` results in "invalid system call"

file.spec

index b114b1746af04fbb5478671f2962d32744793dc9..aa76a82e2a67ee0b9df1a94b914d081cf9ee1fa9 100644 (file)
--- a/file.spec
+++ b/file.spec
@@ -4,6 +4,11 @@
 %bcond_without python3         # CPython 3.x python-magic module
 %bcond_without static_libs     # static library
 %bcond_without tests           # unit tests
+%bcond_without seccomp         # SECCOMP support
+
+%ifnarch %{x8664}
+%undefine      with_seccomp
+%endif
 
 Summary:       A utility for determining file types
 Summary(cs.UTF-8):     Program pro zjišťování typu souborů
@@ -298,9 +303,7 @@ cp -a python py3
 %{__autoheader}
 %{__automake}
 %configure \
-%ifnarch %{x8664}
-       --disable-libseccomp \
-%endif
+       %{!?with_seccomp:--disable-libseccomp} \
        --disable-silent-rules \
        --enable-fsect-man5 \
        %{?with_static_libs:--enable-static}
This page took 0.167434 seconds and 4 git commands to generate.