]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
libinih: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Dec 2022 17:52:45 +0000 (17:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Dec 2022 17:52:45 +0000 (17:52 +0000)
Required by xfsprogs.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
libinih/libinih.nm [new file with mode: 0644]

diff --git a/libinih/libinih.nm b/libinih/libinih.nm
new file mode 100644 (file)
index 0000000..e72c76b
--- /dev/null
@@ -0,0 +1,56 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libinih
+version    = 56
+release    = 1
+thisapp    = inih-r%{version}
+
+groups     = System/Libraries
+url        = https://github.com/benhoyt/inih
+license    = BSD
+summary    = Simple .INI file parser in C, good for embedded systems
+
+description
+       inih (INI Not Invented Here) is a simple .INI file parser written in C.
+       It's only a couple of pages of code, and it was designed to be small
+       and simple, so it's good for embedded systems. It's also more or less
+       compatible with Python's ConfigParser style of .INI files, including
+       RFC 822-style multi-line syntax and name: value entries.
+end
+
+source_dl  = https://github.com/benhoyt/inih/archive/refs/tags/r%{version}.tar.gz#/
+
+build
+       requires
+               meson
+               ninja
+       end
+
+       build
+               %{meson} \
+                       -Ddefault_library=shared \
+                       -Ddistro_install=true \
+                       -Dwith_INIReader=true
+
+               %{meson_build}
+       end
+
+       install
+               %{meson_install}
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end