Accepting request 441832 from network:utilities

split psl-make-dafsa to break build cycle with publicsuffix

OBS-URL: https://build.opensuse.org/request/show/441832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpsl?expand=0&rev=8
This commit is contained in:
2016-12-01 09:23:32 +00:00
committed by Git OBS Bridge
3 changed files with 68 additions and 4 deletions

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
@@ -104,13 +104,13 @@ make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
# development tool, not part of standard install
find %{buildroot} -type f -name "*.la" -delete -print
# in psl-make-dafsa package to break build cycle
make DESTDIR=%{buildroot} install-man
rm %{buildroot}%{_mandir}/man1/psl-make-dafsa.1
find %{buildroot} -type f -name "*.la" -delete -print
%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

6
psl-make-dafsa.changes Normal file
View File

@@ -0,0 +1,6 @@
-------------------------------------------------------------------
Thu Nov 24 10:32:02 UTC 2016 - astieger@suse.com
- package psl-make-dafsa, for converting the PSL list into the
DAFSA binary format
- split from libpsl package to break build cycle

58
psl-make-dafsa.spec Normal file
View File

@@ -0,0 +1,58 @@
#
# spec file for package psl-make-dafsa
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 rpm@cicku.me
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: psl-make-dafsa
Version: 0.15.0
Release: 0
Summary: Create a binary DAFSA from a Public Suffix List
License: MIT
Group: Development/Libraries/C and C++
Url: https://rockdaboot.github.io/libpsl
Source: https://github.com/rockdaboot/libpsl/releases/download/libpsl-%{version}/libpsl-%{version}.tar.gz
Requires: python-base
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
psl-make-dafsa converts ASCII string into C source or a binary format,
The format used is DAFSA, deterministic acyclic finate state automaton.
libpsl is capable of using this compact binary form of the Public Suffix List (PSL).
This package is a build dependency for the publicsuffix package.
%prep
%setup -q -n libpsl-%{version}
%build
%install
mkdir -p %{buildroot}%{_bindir}
install src/psl-make-dafsa %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 src/psl-make-dafsa.1 %{buildroot}%{_mandir}/man1
%files
%defattr(-,root,root)
%defattr(-,root,root)
%doc AUTHORS NEWS COPYING
%{_bindir}/psl-make-dafsa
%{_mandir}/man1/psl-make-dafsa.1%{ext_man}
%changelog