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
This commit is contained in:
Andreas Stieger 2016-11-22 22:57:12 +00:00 committed by Git OBS Bridge
parent 33847ae638
commit e97542bafc
2 changed files with 28 additions and 5 deletions

View File

@ -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

View File

@ -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