public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] shared-mime-info: New package.
@ 2022-12-05 20:03 Stefan Schantl
  0 siblings, 0 replies; only message in thread
From: Stefan Schantl @ 2022-12-05 20:03 UTC (permalink / raw)
  To: development

[-- 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-05 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05 20:03 [PATCH] shared-mime-info: New package Stefan Schantl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox