2014-07-29 00:56:08 +00:00
|
|
|
Name: libpsl
|
2022-12-28 14:02:55 +00:00
|
|
|
Version: 0.21.2
|
2023-06-16 14:59:42 +00:00
|
|
|
Release: 3%{?dist}
|
2014-07-29 00:56:08 +00:00
|
|
|
Summary: C library for the Publix Suffix List
|
|
|
|
License: MIT
|
|
|
|
URL: https://rockdaboot.github.io/libpsl
|
2020-07-20 09:11:13 +00:00
|
|
|
Source0: https://github.com/rockdaboot/libpsl/releases/download/%{version}/libpsl-%{version}.tar.gz
|
2018-03-19 17:03:38 +00:00
|
|
|
BuildRequires: gcc
|
2014-07-29 00:56:08 +00:00
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: libicu-devel
|
2016-11-04 06:17:08 +00:00
|
|
|
BuildRequires: libidn2-devel
|
2016-03-31 05:32:41 +00:00
|
|
|
BuildRequires: libunistring-devel
|
2014-07-29 00:56:08 +00:00
|
|
|
BuildRequires: libxslt
|
2020-07-20 09:11:13 +00:00
|
|
|
BuildRequires: make
|
2015-02-13 10:18:12 +00:00
|
|
|
BuildRequires: publicsuffix-list
|
2018-05-02 05:41:16 +00:00
|
|
|
BuildRequires: python3-devel
|
2017-01-05 08:06:46 +00:00
|
|
|
Requires: publicsuffix-list-dafsa
|
2014-07-29 00:56:08 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libpsl is a C library to handle the Public Suffix List. A "public suffix" is a
|
|
|
|
domain name under which Internet users can directly register own names.
|
|
|
|
|
|
|
|
Browsers and other web clients can use it to
|
|
|
|
|
|
|
|
- Avoid privacy-leaking "supercookies";
|
|
|
|
- Avoid privacy-leaking "super domain" certificates;
|
|
|
|
- Domain highlighting parts of the domain in a user interface;
|
|
|
|
- Sorting domain lists by site;
|
|
|
|
|
|
|
|
Libpsl...
|
|
|
|
|
|
|
|
- has built-in PSL data for fast access;
|
|
|
|
- allows to load PSL data from files;
|
|
|
|
- checks if a given domain is a "public suffix";
|
|
|
|
- provides immediate cookie domain verification;
|
|
|
|
- finds the longest public part of a given domain;
|
|
|
|
- finds the shortest private part of a given domain;
|
|
|
|
- works with international domains (UTF-8 and IDNA2008 Punycode);
|
|
|
|
- is thread-safe;
|
|
|
|
- handles IDNA2008 UTS#46;
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2015-02-15 07:23:08 +00:00
|
|
|
Requires: publicsuffix-list
|
2014-07-29 00:56:08 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%package -n psl
|
|
|
|
Summary: Commandline utility to explore the Public Suffix List
|
|
|
|
|
|
|
|
%description -n psl
|
|
|
|
This package contains a commandline utility to explore the Public Suffix List,
|
|
|
|
for example it checks if domains are public suffixes, checks if cookie-domain
|
|
|
|
is acceptable for domains and so on.
|
|
|
|
|
2017-01-05 08:06:46 +00:00
|
|
|
%package -n psl-make-dafsa
|
|
|
|
Summary: Compiles the Public Suffix List into DAFSA form
|
2023-06-16 14:59:42 +00:00
|
|
|
BuildArch: noarch
|
2017-01-05 08:06:46 +00:00
|
|
|
|
|
|
|
%description -n psl-make-dafsa
|
|
|
|
This script produces C/C++ code or an architecture-independent binary object
|
|
|
|
which represents a Deterministic Acyclic Finite State Automaton (DAFSA)
|
|
|
|
from a plain text Public Suffix List.
|
|
|
|
|
|
|
|
|
2014-07-29 00:56:08 +00:00
|
|
|
%prep
|
2020-01-30 13:14:19 +00:00
|
|
|
%autosetup -p1
|
2016-02-01 04:08:28 +00:00
|
|
|
rm -frv list
|
2019-04-17 12:43:29 +00:00
|
|
|
ln -sv %{_datadir}/publicsuffix list
|
2023-06-16 14:59:42 +00:00
|
|
|
%py3_shebang_fix src/psl-make-dafsa
|
2014-07-29 00:56:08 +00:00
|
|
|
|
|
|
|
%build
|
2015-02-13 10:18:12 +00:00
|
|
|
# Tarballs from github have 2 versions, one is raw files from repo, and
|
|
|
|
# the other one from CDN contains pre-generated autotools files.
|
|
|
|
# But makefile hack is not upstreamed yet so we continue reconfiguring these.
|
2015-02-28 02:33:46 +00:00
|
|
|
# [ -f configure ] || autoreconf -fiv
|
2016-02-01 04:08:28 +00:00
|
|
|
# autoreconf -fiv
|
2016-03-31 05:32:41 +00:00
|
|
|
|
2016-11-04 06:17:08 +00:00
|
|
|
# libicu does allow support for a newer IDN specification (IDN 2008) than
|
|
|
|
# libidn 1.x (IDN 2003). However, libpsl mostly relies on an internally
|
2017-01-05 08:06:46 +00:00
|
|
|
# compiled list, which is generated at buildtime and the testsuite thereof
|
2016-11-04 06:17:08 +00:00
|
|
|
# requires either libidn or libicu only at buildtime; the runtime
|
|
|
|
# requirement is only for loading external lists, which IIUC neither curl
|
|
|
|
# nor wget support. libidn2 supports IDN 2008 as well, and is *much* smaller
|
|
|
|
# than libicu.
|
|
|
|
#
|
2017-11-14 03:12:24 +00:00
|
|
|
# curl (as of 7.51.0-1.fc25) and wget (as of 1.19-1.fc26) now depend on libidn2.
|
|
|
|
# Therefore, we use libidn2 at runtime to help minimize core dependencies.
|
2014-07-29 00:56:08 +00:00
|
|
|
%configure --disable-silent-rules \
|
|
|
|
--disable-static \
|
|
|
|
--enable-man \
|
2015-02-13 10:18:12 +00:00
|
|
|
--enable-gtk-doc \
|
2016-03-31 05:32:41 +00:00
|
|
|
--enable-builtin=libicu \
|
2016-11-04 06:17:08 +00:00
|
|
|
--enable-runtime=libidn2 \
|
2017-01-05 08:06:46 +00:00
|
|
|
--with-psl-distfile=%{_datadir}/publicsuffix/public_suffix_list.dafsa \
|
|
|
|
--with-psl-file=%{_datadir}/publicsuffix/effective_tld_names.dat \
|
2016-02-01 04:08:28 +00:00
|
|
|
--with-psl-testfile=%{_datadir}/publicsuffix/test_psl.txt
|
2015-02-28 02:33:46 +00:00
|
|
|
|
2018-07-27 14:12:21 +00:00
|
|
|
# avoid using rpath
|
|
|
|
sed -i libtool \
|
|
|
|
-e 's|^\(runpath_var=\).*$|\1|' \
|
|
|
|
-e 's|^\(hardcode_libdir_flag_spec=\).*$|\1|'
|
|
|
|
|
2014-07-29 00:56:08 +00:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2014-08-04 07:49:55 +00:00
|
|
|
|
2017-01-05 08:06:46 +00:00
|
|
|
# the script is noinst but the manpage is installed
|
|
|
|
install -m0755 src/psl-make-dafsa %{buildroot}%{_bindir}/
|
2016-11-15 16:12:27 +00:00
|
|
|
|
2014-07-29 00:56:08 +00:00
|
|
|
find %{buildroot} -name '*.la' -delete -print
|
|
|
|
|
|
|
|
%check
|
2015-08-04 09:02:31 +00:00
|
|
|
make check || cat tests/test-suite.log
|
2014-07-29 00:56:08 +00:00
|
|
|
|
2018-02-03 17:16:49 +00:00
|
|
|
%ldconfig_scriptlets
|
2014-07-29 00:56:08 +00:00
|
|
|
|
|
|
|
%files
|
2015-02-13 10:18:12 +00:00
|
|
|
%license COPYING
|
2016-03-31 05:32:41 +00:00
|
|
|
%{_libdir}/libpsl.so.5
|
|
|
|
%{_libdir}/libpsl.so.5.*
|
2014-07-29 00:56:08 +00:00
|
|
|
|
|
|
|
%files devel
|
2015-02-13 10:18:12 +00:00
|
|
|
%doc AUTHORS NEWS
|
2014-07-29 00:56:08 +00:00
|
|
|
%{_datadir}/gtk-doc/html/libpsl/
|
|
|
|
%{_includedir}/libpsl.h
|
|
|
|
%{_libdir}/libpsl.so
|
|
|
|
%{_libdir}/pkgconfig/libpsl.pc
|
|
|
|
%{_mandir}/man3/libpsl.3*
|
|
|
|
|
|
|
|
%files -n psl
|
2015-02-13 10:18:12 +00:00
|
|
|
%doc AUTHORS NEWS
|
|
|
|
%license COPYING
|
2014-07-29 00:56:08 +00:00
|
|
|
%{_bindir}/psl
|
2016-11-15 16:12:27 +00:00
|
|
|
%{_mandir}/man1/psl.1*
|
2014-07-29 00:56:08 +00:00
|
|
|
|
2017-01-05 08:06:46 +00:00
|
|
|
%files -n psl-make-dafsa
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/psl-make-dafsa
|
|
|
|
%{_mandir}/man1/psl-make-dafsa.1*
|
|
|
|
|
2014-07-29 00:56:08 +00:00
|
|
|
%changelog
|
2023-06-16 14:59:42 +00:00
|
|
|
* Fri Jun 16 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.21.2-3
|
|
|
|
- Rebuilt for libunistring-1.1
|
|
|
|
- Mark psl-make-dafsa noarch
|
|
|
|
|
2023-01-19 17:12:41 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-12-28 14:02:55 +00:00
|
|
|
* Wed Dec 28 2022 Kamil Dudka <kdudka@redhat.com> - 0.21.2-1
|
|
|
|
- update to 0.21.2 (#2156685)
|
|
|
|
|
2022-07-21 18:43:57 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-20 17:01:17 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 12:09:10 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-26 17:48:14 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 05:23:16 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-20 09:11:13 +00:00
|
|
|
* Mon Jul 20 2020 Kamil Dudka <kdudka@redhat.com> - 0.21.1-1
|
|
|
|
- update to 0.21.1 (#1858489)
|
|
|
|
|
2020-01-30 13:15:26 +00:00
|
|
|
* Thu Jan 30 2020 Kamil Dudka <kdudka@redhat.com> - 0.21.0-4
|
|
|
|
- fix unnecessary build failure due to missing tree_index.sgml in gtk-doc output
|
|
|
|
|
2020-01-29 10:07:13 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 14:10:55 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-04-17 12:43:29 +00:00
|
|
|
* Wed Apr 17 2019 Kamil Dudka <kdudka@redhat.com> - 0.21.0-1
|
|
|
|
- update to 0.21.0 (#1700444)
|
|
|
|
|
2019-02-01 08:00:52 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.2-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-27 14:12:21 +00:00
|
|
|
* Fri Jul 27 2018 Kamil Dudka <kdudka@redhat.com> - 0.20.2-5
|
|
|
|
- avoid using rpath in the psl executable (#1533448)
|
|
|
|
|
2018-07-13 08:41:33 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-19 08:46:21 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.20.2-3
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-05-22 17:44:49 +00:00
|
|
|
* Tue May 22 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 0.20.2-2
|
|
|
|
- Rebuilt for publicsuffix-list 20180514
|
|
|
|
|
2018-05-02 04:57:14 +00:00
|
|
|
* Tue May 01 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 0.20.2-1
|
|
|
|
- Update to 0.20.2 (#1572887)
|
|
|
|
|
2018-02-28 00:56:29 +00:00
|
|
|
* Wed Feb 28 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 0.20.1-1
|
|
|
|
- Update to 0.20.1 (#1548604)
|
|
|
|
|
2018-02-07 23:05:44 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-02-03 17:16:49 +00:00
|
|
|
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.19.1-2
|
|
|
|
- Switch to %%ldconfig_scriptlets
|
|
|
|
|
2017-11-14 03:12:24 +00:00
|
|
|
* Tue Nov 14 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 0.19.1-1
|
|
|
|
- new version (#1511463)
|
|
|
|
|
2017-08-11 06:01:23 +00:00
|
|
|
* Fri Aug 11 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 0.18.0-1
|
|
|
|
- new version (#1473465)
|
|
|
|
|
2017-08-03 02:07:00 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 19:33:40 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 19:18:38 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-17 06:05:31 +00:00
|
|
|
* Tue Jan 17 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 0.17.0-1
|
|
|
|
- new version (#1413791)
|
|
|
|
|
2017-01-05 08:06:46 +00:00
|
|
|
* Thu Jan 5 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 0.16.1-1
|
|
|
|
- new version (#1403620)
|
|
|
|
|
2016-11-15 15:51:49 +00:00
|
|
|
* Tue Nov 15 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 0.15.0-1
|
|
|
|
- new version (#1394761)
|
|
|
|
|
2016-11-04 06:17:08 +00:00
|
|
|
* Fri Nov 04 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 0.14.0-2
|
|
|
|
- Switch to libidn2 at runtime
|
|
|
|
- Rebuilt with publicsuffix-list-20161028
|
|
|
|
|
2016-08-16 00:00:38 +00:00
|
|
|
* Mon Aug 15 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 0.14.0-1
|
|
|
|
- new version (#1361781)
|
|
|
|
|
2016-03-31 05:32:41 +00:00
|
|
|
* Thu Mar 31 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 0.13.0-1
|
|
|
|
- new version (#1313825)
|
|
|
|
- Use libidn at runtime, libicu only at buildtime (#1305701)
|
|
|
|
|
2016-02-04 03:47:13 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-02-01 04:08:28 +00:00
|
|
|
* Fri Jan 22 2016 Christopher Meng <rpm@cicku.me> - 0.12.0-1
|
|
|
|
- Update to 0.12.0
|
|
|
|
|
2015-10-28 13:08:18 +00:00
|
|
|
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 0.7.0-7
|
|
|
|
- rebuild for ICU 56.1
|
|
|
|
|
2015-08-04 08:29:47 +00:00
|
|
|
* Tue Aug 04 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-6
|
|
|
|
- Rebuild for publicsuffix-list-20150731
|
|
|
|
|
2015-06-17 16:25:44 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-28 02:33:46 +00:00
|
|
|
* Sat Feb 28 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-4
|
|
|
|
- Rebuild for publicsuffix-list-20150226
|
|
|
|
|
2015-02-20 10:44:47 +00:00
|
|
|
* Fri Feb 20 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-3
|
|
|
|
- Rebuild for publicsuffix-list-20150217
|
|
|
|
|
2015-02-15 07:23:08 +00:00
|
|
|
* Sun Feb 15 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-2
|
|
|
|
- Correct the dependency
|
|
|
|
|
2015-02-13 10:18:12 +00:00
|
|
|
* Mon Feb 02 2015 Christopher Meng <rpm@cicku.me> - 0.7.0-1
|
|
|
|
- Update to 0.7.0
|
|
|
|
|
2015-01-26 15:58:38 +00:00
|
|
|
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 0.6.2-2
|
|
|
|
- rebuild for ICU 54.1
|
|
|
|
|
2014-11-25 07:07:35 +00:00
|
|
|
* Thu Nov 20 2014 Christopher Meng <rpm@cicku.me> - 0.6.2-1
|
|
|
|
- Update to 0.6.2
|
|
|
|
|
2014-08-26 11:57:26 +00:00
|
|
|
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 0.5.1-3
|
|
|
|
- rebuild for ICU 53.1
|
|
|
|
|
2014-08-17 05:33:20 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-04 07:49:55 +00:00
|
|
|
* Mon Aug 04 2014 Christopher Meng <rpm@cicku.me> - 0.5.1-1
|
|
|
|
- Update to 0.5.1
|
|
|
|
- Drop patch merged upstream
|
|
|
|
|
|
|
|
* Sat Aug 02 2014 Christopher Meng <rpm@cicku.me> - 0.5.0-3
|
|
|
|
- Add a patch from Jakub Čajka to complete the tests on non-x86 arch.
|
|
|
|
|
2014-07-29 00:56:08 +00:00
|
|
|
* Thu Jul 24 2014 Christopher Meng <rpm@cicku.me> - 0.5.0-2
|
|
|
|
- Drop useless test data
|
|
|
|
- Add missing gettext-devel
|
|
|
|
- psl is now separately packaged recommended by the upstream
|
|
|
|
|
|
|
|
* Fri Jul 04 2014 Christopher Meng <rpm@cicku.me> - 0.5.0-1
|
|
|
|
- Update to 0.5.0
|
|
|
|
|
|
|
|
* Tue Jul 01 2014 Christopher Meng <rpm@cicku.me> - 0.4.0-1
|
|
|
|
- Update to 0.4.0
|
|
|
|
|
|
|
|
* Tue Apr 08 2014 Christopher Meng <rpm@cicku.me> - 0.2-1
|
|
|
|
- Initial Package.
|