2017-02-23 15:30:15 +00:00
|
|
|
%bcond_without dafsa
|
|
|
|
|
2015-01-20 13:50:12 +00:00
|
|
|
Name: publicsuffix-list
|
2024-01-14 17:07:28 +00:00
|
|
|
Version: 20240107
|
2022-12-12 04:16:40 +00:00
|
|
|
Release: %autorelease
|
2015-01-20 13:50:12 +00:00
|
|
|
Summary: Cross-vendor public domain suffix database
|
|
|
|
|
2023-03-28 01:46:01 +00:00
|
|
|
License: MPL-2.0
|
2015-01-20 13:50:12 +00:00
|
|
|
URL: https://publicsuffix.org/
|
2015-08-03 10:31:26 +00:00
|
|
|
Source0: https://publicsuffix.org/list/public_suffix_list.dat
|
2017-01-05 06:02:58 +00:00
|
|
|
Source1: https://www.mozilla.org/media/MPL/2.0/index.txt
|
2015-09-01 07:39:10 +00:00
|
|
|
Source2: https://github.com/publicsuffix/list/raw/master/tests/test_psl.txt
|
2015-01-20 13:50:12 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-02-23 15:30:15 +00:00
|
|
|
%if %{with dafsa}
|
2017-01-17 06:52:26 +00:00
|
|
|
BuildRequires: psl-make-dafsa
|
2017-02-23 15:30:15 +00:00
|
|
|
%endif
|
2017-01-05 06:02:58 +00:00
|
|
|
|
2015-01-20 13:50:12 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Public Suffix List is a cross-vendor initiative to provide
|
|
|
|
an accurate list of domain name suffixes, maintained by the hard work
|
2015-02-05 07:33:04 +00:00
|
|
|
of Mozilla volunteers and by submissions from registries.
|
2015-01-20 13:50:12 +00:00
|
|
|
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.
|
|
|
|
|
2017-02-23 15:30:15 +00:00
|
|
|
%if %{with dafsa}
|
2017-01-05 06:02:58 +00:00
|
|
|
%package dafsa
|
|
|
|
Summary: Cross-vendor public domain suffix database in DAFSA form
|
|
|
|
|
|
|
|
%description dafsa
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package includes a DAFSA representation of the Public Suffix List
|
|
|
|
for runtime loading.
|
2017-02-23 15:30:15 +00:00
|
|
|
%endif
|
2017-01-05 06:02:58 +00:00
|
|
|
|
2015-01-20 13:50:12 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -c -T
|
2017-01-17 06:52:26 +00:00
|
|
|
cp -av %{SOURCE0} .
|
2021-11-16 07:23:36 +00:00
|
|
|
install -m 644 -p -v %{SOURCE1} COPYING
|
2015-01-20 13:50:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2017-02-23 15:30:15 +00:00
|
|
|
%if %{with dafsa}
|
2017-01-05 06:02:58 +00:00
|
|
|
LC_CTYPE=C.UTF-8 \
|
2017-01-17 06:52:26 +00:00
|
|
|
psl-make-dafsa --output-format=binary \
|
2017-01-05 06:02:58 +00:00
|
|
|
public_suffix_list.dat public_suffix_list.dafsa
|
2017-02-23 15:30:15 +00:00
|
|
|
%endif
|
2015-01-20 13:50:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2017-02-23 15:30:15 +00:00
|
|
|
%if %{with dafsa}
|
2017-01-05 06:02:58 +00:00
|
|
|
install -m 644 -p -D public_suffix_list.dafsa $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/public_suffix_list.dafsa
|
2017-02-23 15:30:15 +00:00
|
|
|
%endif
|
2015-08-03 10:31:26 +00:00
|
|
|
install -m 644 -p -D %{SOURCE0} $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/public_suffix_list.dat
|
2015-09-01 07:39:10 +00:00
|
|
|
install -m 644 -p -D %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/test_psl.txt
|
2015-08-03 10:31:26 +00:00
|
|
|
ln -s public_suffix_list.dat $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/effective_tld_names.dat
|
2015-01-20 13:50:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
2017-01-05 06:02:58 +00:00
|
|
|
%dir %{_datadir}/publicsuffix
|
|
|
|
%{_datadir}/publicsuffix/effective_tld_names.dat
|
|
|
|
%{_datadir}/publicsuffix/public_suffix_list.dat
|
|
|
|
%{_datadir}/publicsuffix/test_psl.txt
|
|
|
|
|
2017-02-23 15:30:15 +00:00
|
|
|
%if %{with dafsa}
|
2017-01-05 06:02:58 +00:00
|
|
|
%files dafsa
|
|
|
|
%license COPYING
|
|
|
|
%dir %{_datadir}/publicsuffix
|
|
|
|
%{_datadir}/publicsuffix/public_suffix_list.dafsa
|
2017-02-23 15:30:15 +00:00
|
|
|
%endif
|
2015-01-20 13:50:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-12-12 04:16:40 +00:00
|
|
|
%autochangelog
|