]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
libloc: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Mar 2025 22:36:25 +0000 (22:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Mar 2025 22:36:25 +0000 (22:36 +0000)
Well, you all know what this is.

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

diff --git a/libloc/libloc.nm b/libloc/libloc.nm
new file mode 100644 (file)
index 0000000..4d37ed0
--- /dev/null
@@ -0,0 +1,107 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libloc
+version    = 0.9.18
+release    = 1
+
+groups     = System/Libraries
+url        = https://www.ipfire.org/location
+license    = LGPLv2.1
+summary    = libloc is a library for fast and efficient IP address location
+
+description
+       libloc is a library for fast and efficient IP address location
+end
+
+source_dl  = https://source.ipfire.org/releases/libloc/
+
+build
+       requires
+               asciidoc
+               autoconf
+               automake
+               intltool
+               gettext-devel
+               libtool
+               lua-devel
+               openssl-devel
+               pkg-config
+               python3-devel
+               systemd-devel
+               zlib-devel
+       end
+
+       prepare_cmds
+               ./autogen.sh
+       end
+
+       configure_options += \
+               --enable-debug \
+               --enable-lua \
+               --disable-perl
+
+       test
+               make check
+       end
+
+       install_cmds
+               # Remove the importer because we don't have all the required Python modules
+               rm -vf %{BUILDROOT}%{bindir}/location-importer
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-data
+               summary = Data files for libloc
+
+               # Install this with the main library
+               supplements
+                       libloc
+               end
+
+               files
+                       %{sharedstatedir}/location
+               end
+       end
+
+       package %{name}-tools
+               summary = Command line tools for libloc
+
+               requires += python3-location = %{thisver}
+
+               files
+                       %{bindir}
+                       %{datadir}/bash-completion
+                       %{mandir}/man1
+                       %{mandir}/man8
+                       %{unitdir}
+               end
+       end
+
+       package lua-location
+               summary = Lua bindings for libloc
+
+               files
+                       %{libdir}/lua
+               end
+       end
+
+       package python3-location
+               template PYTHON3
+
+               requires += libloc = %{thisver}
+       end
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end