3 %bcond_without static_libs # static library
5 Summary: C library for the Publix Suffix List
6 Summary(pl.UTF-8): Biblioteka C do obsługi listy przyrostków publicznych (Public Suffix List)
12 Source0: https://github.com/rockdaboot/libpsl/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: 515060957760ed78d5bd5a87f424b5d5
14 %define psl_ref 1fc1ed365818a6a77d6f31d425ff03ca54cdc7f3
15 %define psldate 20150827
16 Source1: https://github.com/publicsuffix/list/archive/%{psl_ref}/publicsuffix_list-%{psldate}.tar.gz
17 # Source1-md5: ee9a591d4545d9f6ca350bd9df2c2e51
18 Patch0: %{name}-am.patch
19 URL: https://rockdaboot.github.io/libpsl
20 BuildRequires: autoconf >= 2.59
21 BuildRequires: automake >= 1:1.10
22 BuildRequires: gettext-tools >= 0.18.1
23 BuildRequires: glib2-devel
24 BuildRequires: gtk-doc >= 1.15
25 BuildRequires: libicu-devel
26 BuildRequires: libtool >= 2:2
27 BuildRequires: libxslt-progs
28 BuildRequires: pkgconfig
29 BuildRequires: sed >= 4.0
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 libpsl is a C library to handle the Public Suffix List. A "public
34 suffix" is a domain name under which Internet users can directly
37 Browsers and other web clients can use it to
38 - Avoid privacy-leaking "supercookies";
39 - Avoid privacy-leaking "super domain" certificates;
40 - Domain highlighting parts of the domain in a user interface;
41 - Sorting domain lists by site;
44 - has built-in PSL data for fast access;
45 - allows to load PSL data from files;
46 - checks if a given domain is a "public suffix";
47 - provides immediate cookie domain verification;
48 - finds the longest public part of a given domain;
49 - finds the shortest private part of a given domain;
50 - works with international domains (UTF-8 and IDNA2008 Punycode);
52 - handles IDNA2008 UTS#46;
54 %description -l pl.UTF-8
55 libpsl to biblioteka C do obsługi listy przyrostków publicznych
56 (Public Suffix List). "Przyrostek publiczny" to nazwa domeny, poniżej
57 której bezpośrednio użytkownicy Internetu mogą rejestrować własne
60 Przeglądarki i inni klienci WWW mogą jej używać w celu:
61 - zapobieganiu "superciasteczek" naruszającym prywatność
62 - zapobieganiu certyfikatom "superdomenowym" naruszającym prywatność
63 - podświetlania części domen w interfejsie użytkownika
64 - sortowania listy domen według serwisu.
67 - ma wbudowane dane PSL dla szybkiego dostępu
68 - pozwala na wczytywanie danych PSL z plików
69 - sprawdza, czy dana domena jest "przyrostkiem publicznym"
70 - zapewnia natychmiastową weryfikację domeny ciasteczka
71 - znajduje najdłuższą publiczną część podanej domeny
72 - znajduje najkrótszą prywatną część podanej domeny
73 - działa z domenami międzynarodowymi (UTF-8 i IDNA2008 Punycode)
74 - jest bezpieczna względem wątków
75 - obsługuje IDNA2008 UTS#46.
78 Summary: Development files for libpsl
79 Summary(pl.UTF-8): Pliki programistyczne biblioteki libpsl
80 Group: Development/Libraries
81 Requires: %{name} = %{version}-%{release}
84 This package contains the header file for developing applications that
87 %description devel -l pl.UTF-8
88 Ten pakiet zawiera plik nagłówkowy do tworzenia aplikacji
89 wykorzystujących bibliotekę libpsl.
92 Summary: Static libpsl library
93 Summary(pl.UTF-8): Statyczna biblioteka libpsl
94 Group: Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
98 Static libpsl library.
100 %description static -l pl.UTF-8
101 Statyczna biblioteka libpsl.
104 Summary: API documentation for libpsl library
105 Summary(pl.UTF-8): Dokumentacja API biblioteki libpsl
109 API documentation for libpsl library.
111 %description apidocs -l pl.UTF-8
112 Dokumentacja API biblioteki libpsl.
115 Summary: Commandline utility to explore the Public Suffix List
116 Summary(pl.UTF-8): Narzędzie linii poleceń do eksplorowania listy przyrostków publicznych
117 Group: Applications/Networking
118 Requires: %{name} = %{version}-%{release}
121 This package contains a commandline utility to explore the Public
122 Suffix List, for example it checks if domains are public suffixes,
123 checks if cookie-domain is acceptable for domains and so on.
125 %description utils -l pl.UTF-8
126 Ten pakiet zawiera narzędzie linii poleceń do eksplorowania listy
127 przyrostków publicznych (Public Suffix List); sprawdza ono na
128 przykład, czy domeny są przyrostkami publicznymi, czy domena
129 ciasteczka jest akceptowalna dla domen itp.
132 %setup -q -n %{name}-%{name}-%{version}
136 %{__tar} xf %{SOURCE1}
137 %{__mv} list-%{psl_ref} list
139 # gettextize workaround
140 %{__sed} -i -e 's,po/Makefile\.in,,' configure.ac
152 --disable-silent-rules \
153 %{!?with_static_libs:--disable-static} \
156 --with-html-dir=%{_gtkdocdir}
160 %{?with_tests:%{__make} check}
163 rm -rf $RPM_BUILD_ROOT
165 DESTDIR=$RPM_BUILD_ROOT
167 # obsoleted by pkg-config
168 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpsl.la
171 rm -rf $RPM_BUILD_ROOT
173 %post -p /sbin/ldconfig
174 %postun -p /sbin/ldconfig
177 %defattr(644,root,root,755)
178 %doc AUTHORS COPYING NEWS README.md
179 %attr(755,root,root) %{_libdir}/libpsl.so.*.*.*
180 %attr(755,root,root) %ghost %{_libdir}/libpsl.so.0
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/libpsl.so
185 %{_includedir}/libpsl.h
186 %{_pkgconfigdir}/libpsl.pc
187 %{_mandir}/man3/libpsl.3*
190 %defattr(644,root,root,755)
194 %defattr(644,root,root,755)
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_bindir}/psl