1 Summary: C library for the Publix Suffix List
7 Source0: https://github.com/rockdaboot/libpsl/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: 3ef1aba32c2422b3527d86d3fb47c18e
9 URL: https://rockdaboot.github.io/libpsl
10 BuildRequires: autoconf
11 BuildRequires: automake
12 BuildRequires: gettext-autopoint
13 BuildRequires: gettext-devel
14 BuildRequires: glib2-devel
15 BuildRequires: gtk-doc
16 BuildRequires: libicu-devel
17 BuildRequires: libxslt
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 libpsl is a C library to handle the Public Suffix List. A "public
22 suffix" is a domain name under which Internet users can directly
25 Browsers and other web clients can use it to
26 - Avoid privacy-leaking "supercookies";
27 - Avoid privacy-leaking "super domain" certificates;
28 - Domain highlighting parts of the domain in a user interface;
29 - Sorting domain lists by site;
32 - has built-in PSL data for fast access;
33 - allows to load PSL data from files;
34 - checks if a given domain is a "public suffix";
35 - provides immediate cookie domain verification;
36 - finds the longest public part of a given domain;
37 - finds the shortest private part of a given domain;
38 - works with international domains (UTF-8 and IDNA2008 Punycode);
40 - handles IDNA2008 UTS#46;
43 Summary: Development files for %{name}
44 Requires: %{name} = %{version}-%{release}
47 This package contains libraries and header files for developing
48 applications that use %{name}.
51 Summary: Commandline utility to explore the Public Suffix List
52 Requires: %{name} = %{version}-%{release}
55 This package contains a commandline utility to explore the Public
56 Suffix List, for example it checks if domains are public suffixes,
57 checks if cookie-domain is acceptable for domains and so on.
66 --disable-silent-rules \
73 %{?with_tests:%{__make} check}
76 rm -rf $RPM_BUILD_ROOT
78 DESTDIR=$RPM_BUILD_ROOT
81 rm -rf $RPM_BUILD_ROOT
83 %post -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
87 %defattr(644,root,root,755)
88 %doc AUTHORS NEWS README.md
89 %attr(755,root,root) %{_libdir}/libpsl.so.*.*.*
90 %attr(755,root,root) %ghost %{_libdir}/libpsl.so.0
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/libpsl.so
95 %{_includedir}/libpsl.h
96 %{_pkgconfigdir}/libpsl.pc
97 %{_mandir}/man3/libpsl.3*
98 #%{_datadir}/gtk-doc/html/libpsl/
100 %exclude %{_datadir}/libpsl/test_psl.txt
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_bindir}/psl