From patchwork Mon Dec 5 20:03:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6280 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4NQvd96pWZz3wgN for ; Mon, 5 Dec 2022 20:03:57 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4NQvd921vfzYj; Mon, 5 Dec 2022 20:03:57 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4NQvd91FG5z30BH; Mon, 5 Dec 2022 20:03:57 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4NQvd81JVpz2xPk for ; Mon, 5 Dec 2022 20:03:56 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4NQvd72wgXzQT; Mon, 5 Dec 2022 20:03:55 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1670270635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0gI6whbOw/nORn2Ea3G0CR1z3dDIOzyi49gM6s5tSMI=; b=GU613rh1CiU2EBNWvLsLAjHVabzi17YQ7yBjTofAVQrtYm5Ciq20F1mGQoCdgeU/zXAh7P C50tsWaVcuOV3bBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1670270635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0gI6whbOw/nORn2Ea3G0CR1z3dDIOzyi49gM6s5tSMI=; b=JJq6JsHEZcKhxlygld7CWws8TSKXTUGq2PbIKZ4PahIKKFe9vwPdw+TTDCBhglk0lBhKT1 /sm+m4XQOYfhAsCK4yK9EvYpPlufHZZkr/5UYYmiHNXMSEFijQew8bET6Loi6zTCbxKSDh HMLO6mgCEGFmQkjmJIItrUTWsbUObvP04u1pzROlMOm8SGMfYeJPwIJArjR1yiP5YLrjlx mYgjRXodIjb8YUeCcyESzW/n+3tbX/Ffld3t4fv2DNr05mvrwPEiIl6D80YRDX6EU708k7 tzSSGuJJUp9Celma1GYvI793pQfm9qyA4KTtZDmrRSndeZa791RCoQ/1W9NkKA== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] shared-mime-info: New package. Date: Mon, 5 Dec 2022 21:03:39 +0100 Message-Id: <20221205200339.143850-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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-mime-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 = shared-mime-info +version = 2.2 +release = 1 + +url = http://freedesktop.org/Software/shared-mime-info +license = GPLv2+ +summary = 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 = https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/%{version}/ + +build + requires + glib2-devel + libxml2-devel + meson >= 0.55.3 + end + + build + %{meson} \ + -Dupdate-mimedb=true + + %{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