|
@@ -4,7 +4,7 @@ Summary: A utility for determining file types.
|
|
|
Summary(ja): ファイルの種類を判別するユーティリティー
|
|
|
Name: file
|
|
|
Version: 5.40
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
Group: system
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
@@ -24,8 +24,15 @@ Source10: magic.printer-j
|
|
|
Patch0: file-localmagic.patch
|
|
|
|
|
|
# not yet upstream
|
|
|
-Patch3: file-4.17-rpm-name.patch
|
|
|
-Patch4: file-5.04-volume_key.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
|
|
@@ -98,13 +105,7 @@ file(1) command.
|
|
|
%prep
|
|
|
%setup -q -n file-FILE%{altver}
|
|
|
autoreconf -ivf
|
|
|
-# Don't use -b -- it will lead to problems when compiling magic file!
|
|
|
-%patch0 -p1
|
|
|
-%patch3 -p1
|
|
|
-%patch4 -p1
|
|
|
-
|
|
|
-# Vine
|
|
|
-%patch1000 -p1
|
|
|
+%autopatch -p1
|
|
|
|
|
|
cat %{SOURCE10} >> ./magic/Localstuff
|
|
|
|
|
@@ -161,10 +162,17 @@ cd python
|
|
|
# cp %SOURCE1 .%{_datadir}/magic.mime
|
|
|
#}
|
|
|
|
|
|
-# remove unuse files
|
|
|
+# remove unused files
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
+%ifarch x86_64
|
|
|
+%check
|
|
|
+export LD_LIBRARY_PATH=$PWD/src/.libs
|
|
|
+make -C tests check
|
|
|
+%endif
|
|
|
+
|
|
|
+
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
@@ -204,6 +212,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Aug 12 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.40-2
|
|
|
+- renumbered patches.
|
|
|
+- imported Patch3-5 from upstream.
|
|
|
+
|
|
|
* Wed Apr 21 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.40-1
|
|
|
- new upstream release.
|
|
|
- dropped ldconfig scriptlets.
|