publicsuffix-list/publicsuffix-list.spec

86 lines
2.4 KiB
RPMSpec
Raw Normal View History

%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/
Source0: https://publicsuffix.org/list/public_suffix_list.dat
Source1: https://www.mozilla.org/media/MPL/2.0/index.txt
Source2: https://github.com/publicsuffix/list/raw/master/tests/test_psl.txt
2015-01-20 13:50:12 +00:00
BuildArch: noarch
%if %{with dafsa}
BuildRequires: psl-make-dafsa
%endif
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.
%if %{with dafsa}
%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.
%endif
2015-01-20 13:50:12 +00:00
%prep
%setup -c -T
cp -av %{SOURCE0} .
install -m 644 -p -v %{SOURCE1} COPYING
2015-01-20 13:50:12 +00:00
%build
%if %{with dafsa}
LC_CTYPE=C.UTF-8 \
psl-make-dafsa --output-format=binary \
public_suffix_list.dat public_suffix_list.dafsa
%endif
2015-01-20 13:50:12 +00:00
%install
%if %{with dafsa}
install -m 644 -p -D public_suffix_list.dafsa $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/public_suffix_list.dafsa
%endif
install -m 644 -p -D %{SOURCE0} $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/public_suffix_list.dat
install -m 644 -p -D %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/test_psl.txt
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
%dir %{_datadir}/publicsuffix
%{_datadir}/publicsuffix/effective_tld_names.dat
%{_datadir}/publicsuffix/public_suffix_list.dat
%{_datadir}/publicsuffix/test_psl.txt
%if %{with dafsa}
%files dafsa
%license COPYING
%dir %{_datadir}/publicsuffix
%{_datadir}/publicsuffix/public_suffix_list.dafsa
%endif
2015-01-20 13:50:12 +00:00
%changelog
2022-12-12 04:16:40 +00:00
%autochangelog