--- /dev/null
+###############################################################################
+# 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