]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
libpsl: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Jan 2025 22:35:16 +0000 (22:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Jan 2025 22:35:16 +0000 (22:35 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
libpsl/libpsl.nm [new file with mode: 0644]

diff --git a/libpsl/libpsl.nm b/libpsl/libpsl.nm
new file mode 100644 (file)
index 0000000..7bbf46b
--- /dev/null
@@ -0,0 +1,57 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libpsl
+version    = 0.21.5
+release    = 1
+
+groups     = Application/Internet
+url        = https://rockdaboot.github.io/libpsl/
+license    = MIT
+summary    = C library for the Public Suffix List
+
+description
+       A Public Suffix List is a collection of Top Level Domains (TLDs)
+       suffixes. TLDs include Global Top Level Domains (gTLDs) like .com
+       and .net; Country Top Level Domains (ccTLDs) like .de and .cn; and
+       Brand Top Level Domains like .apple and .google. Brand TLDs allows
+       users to register their own top level domain that exist at the same
+       level as ICANN's gTLDs.
+end
+
+source_dl  = https://github.com/rockdaboot/libpsl/releases/download/%{version}/
+
+build
+       requires
+               libidn2-devel
+               libunistring-devel
+       end
+
+       # Fix Python path
+       prepare_cmds
+               sed -e "s/env python/&3/" -i src/psl-make-dafsa
+       end
+
+       configure_options += \
+               --enable-builtin=libidn2 \
+               --enable-runtime=libidn2 \
+               --disable-static
+
+       test
+               LD_LIBRARY_PATH=$(pwd)/src/.libs make check
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end