From e97542bafcb1f2a482fe813242cf5a37c993fc7f7b432f743ca698aad86eb6cf Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Tue, 22 Nov 2016 22:57:12 +0000 Subject: [PATCH] Accepting request 441491 from home:AndreasStieger:branches:network:utilities - package psl-make-dafsa, for converting the PSL list into the DAFSA binary format OBS-URL: https://build.opensuse.org/request/show/441491 OBS-URL: https://build.opensuse.org/package/show/network:utilities/libpsl?expand=0&rev=15 --- libpsl.changes | 6 ++++++ libpsl.spec | 27 ++++++++++++++++++++++----- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/libpsl.changes b/libpsl.changes index 6d9ec59..529121e 100644 --- a/libpsl.changes +++ b/libpsl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 22 22:37:35 UTC 2016 - astieger@suse.com + +- package psl-make-dafsa, for converting the PSL list into the + DAFSA binary format + ------------------------------------------------------------------- Mon Nov 14 15:26:42 UTC 2016 - astieger@suse.com diff --git a/libpsl.spec b/libpsl.spec index bb7273a..bdaa1ea 100644 --- a/libpsl.spec +++ b/libpsl.spec @@ -49,6 +49,7 @@ and sorting domain lists by site. %package -n %{name}%{somajor} Summary: C library for the Publix Suffix List Group: System/Libraries +Recommends: publicsuffix %description -n %{name}%{somajor} libpsl is a C library to handle the Public Suffix List. A "public suffix" is a @@ -62,7 +63,6 @@ and sorting domain lists by site. Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: %{name}%{somajor} = %{version} -Requires: publicsuffix %description devel libpsl is a C library to handle the Public Suffix List. A "public suffix" is a @@ -87,6 +87,19 @@ HTTP user agents can use it to avoid privacy-leaking "supercookies" and "super domain" certificates. It is also use do highlight domain parts in a user interface and sorting domain lists by site. +%package -n psl-make-dafsa +Summary: Create a binary DAFSA from a Public Suffix List +Group: Development/Tools/Other +Requires: python-base +BuildArch: noarch + +%description -n psl-make-dafsa +libpsl is capable of using a compact binary form of the Public Suffix List (PSL). +The format used is DAFSA, deterministic acyclic finate state automaton. + +The psl-make-dafsa converts ASCII string into C source or a binary format, +and is a build dependency for the publicsuffix package + %prep %setup -q @@ -104,13 +117,11 @@ make %{?_smp_mflags} %install make %{?_smp_mflags} DESTDIR=%{buildroot} install -# development tool, not part of standard install -make DESTDIR=%{buildroot} install-man -rm %{buildroot}%{_mandir}/man1/psl-make-dafsa.1 find %{buildroot} -type f -name "*.la" -delete -print +install src/psl-make-dafsa %{buildroot}%{_bindir} %check -make %{?_smp_mflags} check || cat tests/test-suite.log +make %{?_smp_mflags} check || (cat tests/test-suite.log; exit 42) %post -n %{name}%{somajor} -p /sbin/ldconfig %postun -n %{name}%{somajor} -p /sbin/ldconfig @@ -136,4 +147,10 @@ make %{?_smp_mflags} check || cat tests/test-suite.log %{_bindir}/psl %{_mandir}/man1/psl.1%{ext_man} +%files -n psl-make-dafsa +%defattr(-,root,root) +%doc AUTHORS NEWS COPYING +%{_bindir}/psl-make-dafsa +%{_mandir}/man1/psl-make-dafsa.1%{ext_man} + %changelog