From: Michael Tremer Date: Mon, 6 Jan 2025 22:35:16 +0000 (+0000) Subject: libpsl: New package X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6b52073408418257211a35c92f109eba03491bb;p=ipfire-3.x.git libpsl: New package Signed-off-by: Michael Tremer --- diff --git a/libpsl/libpsl.nm b/libpsl/libpsl.nm new file mode 100644 index 000000000..7bbf46bff --- /dev/null +++ b/libpsl/libpsl.nm @@ -0,0 +1,57 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +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