File publicsuffix.spec of Package publicsuffix

# spec file for package publicsuffix
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015
# 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

Name:           publicsuffix
Version:        20180312
Release:        0
Summary:        Cross-vendor public domain suffix database
License:        MPL-2.0
Group:          Productivity/Networking/Other
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  psl-make-dafsa
BuildRequires:  python3
BuildArch:      noarch

The Public Suffix List is a cross-vendor initiative to provide
an accurate list of domain name suffixes, maintained by the hard work
of Mozilla volunteers and by submissions from registries.
Software using the Public Suffix List will be able to determine where
cookies may and may not be set, protecting the user from being
tracked across sites.

%setup -q

psl-make-dafsa \
    --input-format=psl \
    --output-format=binary \
    public_suffix_list.dat public_suffix_list.dafsa

make %{?_smp_mflags} test-syntax

install -m 644 -p -D public_suffix_list.dat \
install -m 644 -p -D public_suffix_list.dafsa \

%license LICENSE

openSUSE Build Service is sponsored by