From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] shared-mime-info: New package. Date: Mon, 05 Dec 2022 21:03:39 +0100 Message-ID: <20221205200339.143850-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1190683904736058835==" List-Id: --===============1190683904736058835== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- shared-mime-info/shared-mime-info.nm | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 shared-mime-info/shared-mime-info.nm diff --git a/shared-mime-info/shared-mime-info.nm b/shared-mime-info/shared-m= ime-info.nm new file mode 100644 index 000000000..580d35a6b --- /dev/null +++ b/shared-mime-info/shared-mime-info.nm @@ -0,0 +1,59 @@ +############################################################################= ### +# IPFire.org - An Open Source Firewall Solution = # +# Copyright (C) - IPFire Development Team = # +############################################################################= ### + +name =3D shared-mime-info +version =3D 2.2 +release =3D 1 + +url =3D http://freedesktop.org/Software/shared-mime-info +license =3D GPLv2+ +summary =3D Shared MIME information database + +description + This is the freedesktop.org shared MIME info database. + + Many programs and desktops use the MIME system to represent the types of + files. Frequently, it is necessary to work out the correct MIME type for + a file. This is generally done by examining the file's name or contents, + and looking up the correct MIME type in a database. +end + +source_dl =3D https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive= /%{version}/ + +build + requires + glib2-devel + libxml2-devel + meson >=3D 0.55.3 + end + + build + %{meson} \ + -Dupdate-mimedb=3Dtrue + + %{meson_build} + + end + + install + %{meson_install} + end +end + +packages + package %{name} + script postin + update-mime-database -n %{datadir}/mime &> /dev/null ||: + end + + script postup + update-mime-database -n %{datadir}/mime &> /dev/null ||: + end + end + + package %{name}-debuginfo + template DEBUGINFO + end +end --=20 2.30.2 --===============1190683904736058835==--