]> git.pld-linux.org Git - packages/file.git/blobdiff - file.spec
up to 5.42
[packages/file.git] / file.spec
index b114b1746af04fbb5478671f2962d32744793dc9..a0cad01ad542623c0e0fcca94bbdfbe5de685b90 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} aarch64
+%undefine      with_seccomp
+%endif
 
 Summary:       A utility for determining file types
 Summary(cs.UTF-8):     Program pro zjišťování typu souborů
@@ -29,12 +34,12 @@ Summary(uk.UTF-8):  Утиліта для визначення типів фай
 Summary(zh_CN.UTF-8):  判定文件类型的工具。
 Summary(zh_TW.UTF-8):  用於決定檔案類型的一個工具程式。
 Name:          file
-Version:       5.40
+Version:       5.42
 Release:       1
 License:       distributable
 Group:         Applications/File
 Source0:       ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
-# Source0-md5: 72540ea1cc8c6e1dee35d6100ec66589
+# Source0-md5: 4d4f70c3b08a8a70d8baf67f085d7e92
 Source1:       http://ftp1.pld-linux.org/people/glen/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5: 6a45bcaefd19b94db36a1b2b7c5b806b
 Source2:       %{name}-zisofs.magic
@@ -212,6 +217,7 @@ Summary:    Header files for libmagic library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libmagic
 Group:         Development/Libraries
 Requires:      libmagic = %{version}-%{release}
+Requires:      libseccomp-devel
 Requires:      zlib-devel
 
 %description -n libmagic-devel
@@ -298,9 +304,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}
@@ -371,7 +375,7 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog COPYING README
+%doc ChangeLog COPYING
 %attr(755,root,root) %{_bindir}/file
 %{_datadir}/file
 %{_datadir}/misc/magic
This page took 0.037924 seconds and 4 git commands to generate.