From 6071db356dd4eca8dd8d28f3d9eb55fde716f940 Mon Sep 17 00:00:00 2001 From: fu-shanqing Date: Thu, 1 Dec 2022 16:13:45 +0800 Subject: [PATCH] add subpackage psl-make-dafsa and psl --- libpsl.spec | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/libpsl.spec b/libpsl.spec index d4b4f5e..018a7d4 100644 --- a/libpsl.spec +++ b/libpsl.spec @@ -1,6 +1,6 @@ Name: libpsl Version: 0.21.1 -Release: 5 +Release: 6 Summary: C library to handle the Public Suffix List License: MIT URL: https://github.com/rockdaboot/libpsl @@ -9,10 +9,6 @@ Source0: https://github.com/rockdaboot/libpsl/releases/download/%{version}/libps BuildRequires: gcc gtk-doc glib2-devel libxslt python3-devel chrpath BuildRequires: libicu-devel libidn2-devel publicsuffix-list libunistring-devel Requires: publicsuffix-list -Provides: psl = %{version}-%{release} -Obsoletes: psl <= %{version}-%{release} -Provides: psl-make-dafsa = %{version}-%{release} -Obsoletes: psl-make-dafsa <= %{version}-%{release} %description Libpsl is a C library to handle the Public Suffix List. A Public Suffix List is a @@ -48,6 +44,22 @@ Requires: man %description help The %{name}-help package contains doc files for %{name}. +%package -n psl +Summary: Commandline utility to explore the Public Suffix List + +%description -n psl +This package contains a commandline utility to explore the Public Suffix List, +for example it checks if domains are public suffixes, checks if cookie-domain +is acceptable for domains and so on. + +%package -n psl-make-dafsa +Summary: Compiles the Public Suffix List into DAFSA form + +%description -n psl-make-dafsa +This script produces C/C++ code or an architecture-independent binary object +which represents a Deterministic Acyclic Finite State Automaton (DAFSA) +from a plain text Public Suffix List. + %prep %autosetup -n %{name}-%{version} -p1 sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa @@ -88,8 +100,6 @@ make check %files %license COPYING AUTHORS %{_libdir}/%{name}.so.* -%{_bindir}/psl -%{_bindir}/psl-make-dafsa %config(noreplace) /etc/ld.so.conf.d/* %files devel @@ -103,7 +113,19 @@ make check %{_mandir}/man*/* %{_datadir}/gtk-doc/html/%{name} +%files -n psl +%doc AUTHORS NEWS +%license COPYING +%{_bindir}/psl + +%files -n psl-make-dafsa +%license COPYING +%{_bindir}/psl-make-dafsa + %changelog +* Thu Dec 01 2022 fushanqing - 0.21.1-6 +- add subpackage psl-make-dafsa and psl + * Thu Oct 20 2022 gaoruoshu - 0.21.1-5 - reformat spec -- Gitee