add subpackage psl-make-dafsa and psl

This commit is contained in:
fu-shanqing 2021-11-12 13:45:29 +08:00 committed by fushanqing
parent dfeb4d9173
commit 8ec2376f06

View File

@ -1,6 +1,6 @@
Name: libpsl Name: libpsl
Version: 0.21.1 Version: 0.21.1
Release: 3 Release: 4
Summary: C library to handle the Public Suffix List Summary: C library to handle the Public Suffix List
License: MIT License: MIT
URL: https://github.com/rockdaboot/libpsl 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 BuildRequires: gcc gtk-doc glib2-devel libxslt python3-devel
BuildRequires: libicu-devel libidn2-devel publicsuffix-list libunistring-devel BuildRequires: libicu-devel libidn2-devel publicsuffix-list libunistring-devel
Requires: publicsuffix-list Requires: publicsuffix-list
Provides: psl = %{version}-%{release}
Obsoletes: psl <= %{version}-%{release}
Provides: psl-make-dafsa = %{version}-%{release}
Obsoletes: psl-make-dafsa <= %{version}-%{release}
%description %description
Libpsl is a C library to handle the Public Suffix List. A Public Suffix List is a 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 %description help
The %{name}-help package contains doc files for %{name}. 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 %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa
@ -82,8 +94,6 @@ make check
%files %files
%license COPYING AUTHORS %license COPYING AUTHORS
%{_libdir}/%{name}.so.* %{_libdir}/%{name}.so.*
%{_bindir}/psl
%{_bindir}/psl-make-dafsa
%files devel %files devel
%{_includedir}/%{name}.h %{_includedir}/%{name}.h
@ -96,7 +106,19 @@ make check
%{_mandir}/man*/* %{_mandir}/man*/*
%{_datadir}/gtk-doc/html/%{name} %{_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 %changelog
* Thu Feb 17 2022 fushanqing <fushanqing@kylinos.cn> - 0.21.1-4
- add subpackage psl-make-dafsa and psl
* Mon Jul 26 2021 panxiaohe <panxiaohe@huawei.com> - 0.21.1-3 * Mon Jul 26 2021 panxiaohe <panxiaohe@huawei.com> - 0.21.1-3
- Remove unnecessary BuildRequires:git - Remove unnecessary BuildRequires:git