From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] shared-mime-info: New package.
Date: Mon, 05 Dec 2022 21:03:39 +0100 [thread overview]
Message-ID: <20221205200339.143850-1-stefan.schantl@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1967 bytes --]
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
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 <info(a)ipfire.org> #
+###############################################################################
+
+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
--
2.30.2
reply other threads:[~2022-12-05 20:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221205200339.143850-1-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox