8043dd3
%bcond_without  dafsa
8043dd3
488e0cc
Name:           publicsuffix-list
ffb3bad
Version:        20190128
488d2fd
Release:        2%{?dist}
488e0cc
Summary:        Cross-vendor public domain suffix database
488e0cc
488e0cc
License:        MPLv2.0
488e0cc
URL:            https://publicsuffix.org/
9c5336a
Source0:        https://publicsuffix.org/list/public_suffix_list.dat
7e516fb
Source1:        https://www.mozilla.org/media/MPL/2.0/index.txt
a1b226f
Source2:        https://github.com/publicsuffix/list/raw/master/tests/test_psl.txt
488e0cc
488e0cc
BuildArch:      noarch
488e0cc
8043dd3
%if %{with dafsa}
40b9163
BuildRequires:  psl-make-dafsa
8043dd3
%endif
7e516fb
488e0cc
488e0cc
%description
488e0cc
The Public Suffix List is a cross-vendor initiative to provide
488e0cc
an accurate list of domain name suffixes, maintained by the hard work 
fd84382
of Mozilla volunteers and by submissions from registries.
488e0cc
Software using the Public Suffix List will be able to determine where 
488e0cc
cookies may and may not be set, protecting the user from being 
488e0cc
tracked across sites.
488e0cc
8043dd3
%if %{with dafsa}
7e516fb
%package dafsa
7e516fb
Summary:        Cross-vendor public domain suffix database in DAFSA form
7e516fb
7e516fb
%description dafsa
7e516fb
The Public Suffix List is a cross-vendor initiative to provide
7e516fb
an accurate list of domain name suffixes, maintained by the hard work 
7e516fb
of Mozilla volunteers and by submissions from registries.
7e516fb
Software using the Public Suffix List will be able to determine where 
7e516fb
cookies may and may not be set, protecting the user from being 
7e516fb
tracked across sites.
7e516fb
7e516fb
This package includes a DAFSA representation of the Public Suffix List
7e516fb
for runtime loading.
8043dd3
%endif
7e516fb
488e0cc
488e0cc
%prep
488e0cc
%setup -c -T
40b9163
cp -av %{SOURCE0} .
488e0cc
cp -av %{SOURCE1} COPYING
488e0cc
488e0cc
488e0cc
%build
8043dd3
%if %{with dafsa}
7e516fb
LC_CTYPE=C.UTF-8 \
40b9163
psl-make-dafsa --output-format=binary \
7e516fb
  public_suffix_list.dat public_suffix_list.dafsa
8043dd3
%endif
488e0cc
488e0cc
488e0cc
%install
8043dd3
%if %{with dafsa}
7e516fb
install -m 644 -p -D public_suffix_list.dafsa $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/public_suffix_list.dafsa
8043dd3
%endif
9c5336a
install -m 644 -p -D %{SOURCE0} $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/public_suffix_list.dat
a1b226f
install -m 644 -p -D %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/test_psl.txt
9c5336a
ln -s public_suffix_list.dat $RPM_BUILD_ROOT/%{_datadir}/publicsuffix/effective_tld_names.dat
488e0cc
488e0cc
488e0cc
%files
488e0cc
%license COPYING
7e516fb
%dir %{_datadir}/publicsuffix
7e516fb
%{_datadir}/publicsuffix/effective_tld_names.dat
7e516fb
%{_datadir}/publicsuffix/public_suffix_list.dat
7e516fb
%{_datadir}/publicsuffix/test_psl.txt
7e516fb
8043dd3
%if %{with dafsa}
7e516fb
%files dafsa
7e516fb
%license COPYING
7e516fb
%dir %{_datadir}/publicsuffix
7e516fb
%{_datadir}/publicsuffix/public_suffix_list.dafsa
8043dd3
%endif
488e0cc
488e0cc
488e0cc
%changelog
488d2fd
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20190128-2
488d2fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
488d2fd
ffb3bad
* Mon Jan 28 2019 Yanko Kaneti <yaneti@declera.com> - 20190128-1
ffb3bad
- Recent revision - 20190128
ffb3bad
80cfb93
* Mon Jul 23 2018 Kamil Dudka <kdudka@redhat.com> - 20180723-1
80cfb93
- Recent revision - 20180723
80cfb93
1ad378c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180514-2
1ad378c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1ad378c
f9082e4
* Tue May 22 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 20180514-1
f9082e4
- Recent revision - 20180514
f9082e4
2e3e9cb
* Wed May 02 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 20180419-1
2e3e9cb
- Recent revision - 20180419
2e3e9cb
7cee33e
* Thu Mar 29 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 20180328-1
7cee33e
- Recent revision - 20180328
7cee33e
81e938c
* Tue Feb 27 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 20180223-1
81e938c
- Recent revision - 20180223
81e938c
36c18e3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20171228-2
36c18e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
36c18e3
9d70c65
* Fri Jan  5 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 20171228-1
9d70c65
- Recent revision - 20171228
9d70c65
02e61f4
* Tue Nov 14 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 20171028-1
02e61f4
- Recent revision - 20171028
02e61f4
84b677d
* Mon Sep  4 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 20170828-1
84b677d
- Recent revision - 20170828
84b677d
260d7c5
* Fri Aug 11 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 20170809-1
260d7c5
- Recent revision - 20170809
260d7c5
4d71f58
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170424-2
4d71f58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4d71f58
5f2e19d
* Thu Apr 27 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 20170424-1
5f2e19d
- Recent revision - 20170424
5f2e19d
fdc1a22
* Wed Feb 22 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 20170206-1
fdc1a22
- Recent revision - 20170206
fdc1a22
7dc3a7c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170116-2
7dc3a7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7dc3a7c
40b9163
* Tue Jan 17 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 20170116-1
40b9163
- Recent revision - 20170116
40b9163
- Use system psl-make-dafsa
40b9163
7e516fb
* Thu Jan  5 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 20161230-1
7e516fb
- Recent revision - 20161230
7e516fb
- Added dafsa package for runtime use by libpsl
7e516fb
8ec0699
* Fri Nov  4 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 20161028-1
8ec0699
- Recent revision - 20161028
8ec0699
e82d086
* Mon Aug 15 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 20160805-1
e82d086
- Recent revision - 20160805
e82d086
6889b4f
* Fri Jul 15 2016 Yanko Kaneti <yaneti@declera.com> - 20160713-1
6889b4f
- Recent revision - 20160713
6889b4f
bcd3ade
* Fri Mar 25 2016 Yanko Kaneti <yaneti@declera.com> - 20160323-1
9963cea
- Recent revision - 20160323
9963cea
adf6c05
* Mon Feb  8 2016 Yanko Kaneti <yaneti@declera.com> - 20160206-1
adf6c05
- Recent revision - 20160206
adf6c05
23bca8b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20151208-2
23bca8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
23bca8b
39b8fac
* Tue Dec  8 2015 Yanko Kaneti <yaneti@declera.com> - 20151208-1
39b8fac
- Recent revision - 20151208
39b8fac
a1b226f
* Tue Sep  1 2015 Yanko Kaneti <yaneti@declera.com> - 20150831-1
a1b226f
- The latest revision - 20150831
a1b226f
- Add test data - bug 1251921
a1b226f
9c5336a
* Mon Aug  3 2015 Yanko Kaneti <yaneti@declera.com> - 20150731-1
9c5336a
- The latest revision - 20150731
9c5336a
- Move to the new upstream filename. Install a compat symlink for now
9c5336a
37793fc
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20150506-2
37793fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
37793fc
7b3ec0c
* Thu May  7 2015 Yanko Kaneti <yaneti@declera.com> - 20150506-1
7b3ec0c
- The latest revision - 20150506
7b3ec0c
f47eaf9
* Thu Apr 30 2015 Yanko Kaneti <yaneti@declera.com> - 20150430-1
f47eaf9
- The latest revision - 20150430
f47eaf9
cad1017
* Tue Apr  7 2015 Yanko Kaneti <yaneti@declera.com> - 20150407-1
cad1017
- The latest revision - 20150407
cad1017
33e8f71
* Sat Apr  4 2015 Yanko Kaneti <yaneti@declera.com> - 20150404-1
33e8f71
- The latest revision - 20150404
33e8f71
942d533
* Thu Feb 26 2015 Yanko Kaneti <yaneti@declera.com> - 20150226-1
942d533
- The latest revision - 20150226
942d533
c0a31f2
* Wed Feb 18 2015 Yanko Kaneti <yaneti@declera.com> - 20150217-1
c0a31f2
- The latest revision - 20150217
c0a31f2
fd84382
* Thu Feb  5 2015 Yanko Kaneti <yaneti@declera.com> - 20150204-1
fd84382
- The latest revision - 20150204
fd84382
488e0cc
* Tue Dec 30 2014 Yanko Kaneti <yaneti@declera.com> - 20141230-1
488e0cc
- Initial version for review - 20141124-1
488e0cc
- Today's revision. Add license file - 20141218-1
488e0cc
- Today's revision - 20141223-1
488e0cc
- Today's revision - 20141230-1