!9 add subpackage psl-make-dafsa and psl
From: @fu-shanqing Reviewed-by: @xiezhipeng1 Signed-off-by: @xiezhipeng1
This commit is contained in:
commit
5582a90039
36
libpsl.spec
36
libpsl.spec
@ -1,6 +1,6 @@
|
||||
Name: libpsl
|
||||
Version: 0.21.1
|
||||
Release: 3
|
||||
Release: 4
|
||||
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
|
||||
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
|
||||
@ -82,8 +94,6 @@ make check
|
||||
%files
|
||||
%license COPYING AUTHORS
|
||||
%{_libdir}/%{name}.so.*
|
||||
%{_bindir}/psl
|
||||
%{_bindir}/psl-make-dafsa
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}.h
|
||||
@ -96,7 +106,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 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
|
||||
- Remove unnecessary BuildRequires:git
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user