|
@@ -3,8 +3,8 @@
|
|
|
Summary: A utility for determining file types.
|
|
|
Summary(ja): ファイルの種類を判別するユーティリティー
|
|
|
Name: file
|
|
|
-Version: 5.40
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 5.43
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Group: system
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
@@ -13,9 +13,7 @@ Packager: daisuke
|
|
|
License: BSD
|
|
|
URL: http://www.darwinsys.com/file/
|
|
|
# master site is toooooooooooooooooo slow
|
|
|
-# Source0: ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
|
|
|
-%define altver %(echo %{version} | sed -e 's/\\./_/')
|
|
|
-Source0: https://github.com/file/file/archive/FILE%{altver}.tar.gz#/file-FILE%{altver}.tar.gz
|
|
|
+Source0: http://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
|
|
|
|
|
|
# Addtional magic file for Vine
|
|
|
Source10: magic.printer-j
|
|
@@ -27,13 +25,6 @@ Patch0: file-localmagic.patch
|
|
|
Patch1: file-4.17-rpm-name.patch
|
|
|
Patch2: file-5.04-volume_key.patch
|
|
|
|
|
|
-# Upstream commit 9b0459afab309a82aa4e46f73a4e50dd641f3d39
|
|
|
-Patch3: file-5.40-magic-xzip.patch
|
|
|
-# Upstream commit f06015040e7ffb3be21bb7622f9f8291b749aaf9
|
|
|
-Patch4: file-5.40-magic-unsigned.patch
|
|
|
-# Upstream commit 7d9b0f0d853957ad88dae0f440fecd58d2740ca7
|
|
|
-Patch5: file-5.40-magic-python.patch
|
|
|
-
|
|
|
# Vine
|
|
|
Patch1000: file-5.14-magicbuild-fix.patch
|
|
|
|
|
@@ -84,6 +75,7 @@ This package contains the Python bindings to allow access to the
|
|
|
libmagic API. The libmagic library is also used by the familiar
|
|
|
file(1) command.
|
|
|
|
|
|
+
|
|
|
%package -n python3-magic
|
|
|
Summary: Python bindings for the libmagic API
|
|
|
Group: programming
|
|
@@ -103,8 +95,7 @@ file(1) command.
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n file-FILE%{altver}
|
|
|
-autoreconf -ivf
|
|
|
+%setup -q
|
|
|
%autopatch -p1
|
|
|
|
|
|
cat %{SOURCE10} >> ./magic/Localstuff
|
|
@@ -115,7 +106,7 @@ mv doc/libmagic.man_ doc/libmagic.man
|
|
|
|
|
|
|
|
|
%build
|
|
|
-autoreconf
|
|
|
+autoreconf -fiv
|
|
|
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
|
|
|
%configure --enable-fsect-man5 --disable-rpath
|
|
|
# remove hardcoded library paths from local libtool
|
|
@@ -212,6 +203,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Oct 02 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.43-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Thu Aug 12 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.40-2
|
|
|
- renumbered patches.
|
|
|
- imported Patch3-5 from upstream.
|