diff --git a/0003-Improve-detection-of-application.patch b/0003-Improve-detection-of-application.patch new file mode 100644 index 0000000000000000000000000000000000000000..b591dae4f405901be2563710cd1b54f7714b7645 --- /dev/null +++ b/0003-Improve-detection-of-application.patch @@ -0,0 +1,57 @@ +From cbf370982ae2fd1e024c13a511cf670fe68e9e2b Mon Sep 17 00:00:00 2001 +From: Alex Henrie +Date: Sun, 2 Jun 2024 15:55:44 -0600 +Subject: [PATCH 1/2] Remove "sqsh" magic from application/vnd.squashfs + +All SquashFS files begin with "hsqs". None have "sqsh". + +https://dr-emann.github.io/squashfs/ +--- + data/freedesktop.org.xml.in | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in +index a9cbab17..144f6b42 100644 +--- a/data/freedesktop.org.xml.in ++++ b/data/freedesktop.org.xml.in +@@ -8489,7 +8489,6 @@ command to generate the output files. + Squashfs filesystem image + + +- + + + +-- +GitLab + + +From 815b520eb01992a05d41a5434f1227a8be101e15 Mon Sep 17 00:00:00 2001 +From: Alex Henrie +Date: Sun, 2 Jun 2024 15:58:06 -0600 +Subject: [PATCH 2/2] Recognize *.sfs, *.sqfs, and *.squashfs as + application/vnd.squashfs + +https://github.com/plougher/squashfs-tools/issues/259 +--- + data/freedesktop.org.xml.in | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in +index 144f6b42..f6e3b652 100644 +--- a/data/freedesktop.org.xml.in ++++ b/data/freedesktop.org.xml.in +@@ -8491,7 +8491,10 @@ command to generate the output files. + + + ++ ++ + ++ + + + +-- +GitLab + diff --git a/shared-mime-info.spec b/shared-mime-info.spec index f340354781efe85ec808ca12b0c8220401e0e498..3f8e8d467b35e157688e0065c159d7cb9679350b 100644 --- a/shared-mime-info.spec +++ b/shared-mime-info.spec @@ -1,6 +1,6 @@ Name: shared-mime-info Version: 2.4 -Release: 2 +Release: 3 Summary: Shared MIME information database License: GPL-2.0-or-later URL: https://freedesktop.org/wiki/Software/shared-mime-info/ @@ -9,6 +9,7 @@ Source1: mimeapps.list Patch0: 0001-Remove-sub-classing-from-OO.o-mime-types.patch Patch1: 0002-Fix-build-with-libxml2-2.12.0.patch +Patch2: 0003-Improve-detection-of-application.patch BuildRequires: gcc gcc-c++ gettext intltool perl-XML-Parser meson itstool xmlto BuildRequires: pkgconfig(gio-2.0) @@ -77,6 +78,9 @@ update-mime-database -n %{_datadir}/mime &> /dev/null ||: %{_mandir}/man1/* %changelog +* Wed Dec 04 2024 shenzhongwei - 2.4-3 +- Improve detection of application/vnd.squashfs + * Wed Aug 07 2024 Funda Wang - 2.4-2 - Remove locale files rather than exclude them - fix build with libxml 2.12