]>
Commit | Line | Data |
---|---|---|
421caf12 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
abef6c14 | 4 | |
17484f01 | 5 | Summary: C library for the Publix Suffix List |
032b7ee9 | 6 | Summary(pl.UTF-8): Biblioteka C do obsługi listy przyrostków publicznych (Public Suffix List) |
17484f01 | 7 | Name: libpsl |
64042f0b | 8 | Version: 0.11.0 |
2591e983 | 9 | Release: 4 |
17484f01 AM |
10 | License: MIT |
11 | Group: Networking | |
64042f0b JB |
12 | #Source0Download: https://github.com/rockdaboot/libpsl/releases |
13 | Source0: https://github.com/rockdaboot/libpsl/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: f1b3c3d7c9c26e2bc339f91544d20827 | |
15 | %if 0 | |
16 | # not required if packaged with libpsl release | |
b6d6f747 JB |
17 | %define psl_ref 1fc1ed365818a6a77d6f31d425ff03ca54cdc7f3 |
18 | %define psldate 20150827 | |
19 | Source1: https://github.com/publicsuffix/list/archive/%{psl_ref}/publicsuffix_list-%{psldate}.tar.gz | |
20 | # Source1-md5: ee9a591d4545d9f6ca350bd9df2c2e51 | |
64042f0b | 21 | %endif |
159d56f0 | 22 | Patch0: %{name}-am.patch |
ecb3403f | 23 | URL: https://rockdaboot.github.io/libpsl |
421caf12 JB |
24 | BuildRequires: autoconf >= 2.59 |
25 | BuildRequires: automake >= 1:1.10 | |
b3607a92 | 26 | BuildRequires: gettext-tools >= 0.18.1 |
17484f01 | 27 | BuildRequires: glib2-devel |
421caf12 | 28 | BuildRequires: gtk-doc >= 1.15 |
17484f01 | 29 | BuildRequires: libicu-devel |
421caf12 JB |
30 | BuildRequires: libtool >= 2:2 |
31 | BuildRequires: libxslt-progs | |
159d56f0 | 32 | BuildRequires: pkgconfig |
421caf12 | 33 | BuildRequires: sed >= 4.0 |
ecb3403f | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17484f01 AM |
35 | |
36 | %description | |
37 | libpsl is a C library to handle the Public Suffix List. A "public | |
38 | suffix" is a domain name under which Internet users can directly | |
39 | register own names. | |
40 | ||
41 | Browsers and other web clients can use it to | |
17484f01 AM |
42 | - Avoid privacy-leaking "supercookies"; |
43 | - Avoid privacy-leaking "super domain" certificates; | |
44 | - Domain highlighting parts of the domain in a user interface; | |
45 | - Sorting domain lists by site; | |
46 | ||
47 | Libpsl... | |
17484f01 AM |
48 | - has built-in PSL data for fast access; |
49 | - allows to load PSL data from files; | |
50 | - checks if a given domain is a "public suffix"; | |
51 | - provides immediate cookie domain verification; | |
52 | - finds the longest public part of a given domain; | |
53 | - finds the shortest private part of a given domain; | |
54 | - works with international domains (UTF-8 and IDNA2008 Punycode); | |
55 | - is thread-safe; | |
56 | - handles IDNA2008 UTS#46; | |
57 | ||
032b7ee9 JB |
58 | %description -l pl.UTF-8 |
59 | libpsl to biblioteka C do obsługi listy przyrostków publicznych | |
60 | (Public Suffix List). "Przyrostek publiczny" to nazwa domeny, poniżej | |
61 | której bezpośrednio użytkownicy Internetu mogą rejestrować własne | |
62 | nazwy. | |
63 | ||
64 | Przeglądarki i inni klienci WWW mogą jej używać w celu: | |
65 | - zapobieganiu "superciasteczek" naruszającym prywatność | |
66 | - zapobieganiu certyfikatom "superdomenowym" naruszającym prywatność | |
67 | - podświetlania części domen w interfejsie użytkownika | |
68 | - sortowania listy domen według serwisu. | |
69 | ||
70 | Libpsl: | |
71 | - ma wbudowane dane PSL dla szybkiego dostępu | |
72 | - pozwala na wczytywanie danych PSL z plików | |
73 | - sprawdza, czy dana domena jest "przyrostkiem publicznym" | |
74 | - zapewnia natychmiastową weryfikację domeny ciasteczka | |
75 | - znajduje najdłuższą publiczną część podanej domeny | |
76 | - znajduje najkrótszą prywatną część podanej domeny | |
77 | - działa z domenami międzynarodowymi (UTF-8 i IDNA2008 Punycode) | |
78 | - jest bezpieczna względem wątków | |
79 | - obsługuje IDNA2008 UTS#46. | |
80 | ||
ecb3403f | 81 | %package devel |
032b7ee9 JB |
82 | Summary: Development files for libpsl |
83 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libpsl | |
421caf12 | 84 | Group: Development/Libraries |
17484f01 AM |
85 | Requires: %{name} = %{version}-%{release} |
86 | ||
ecb3403f | 87 | %description devel |
032b7ee9 JB |
88 | This package contains the header file for developing applications that |
89 | use libpsl. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Ten pakiet zawiera plik nagłówkowy do tworzenia aplikacji | |
93 | wykorzystujących bibliotekę libpsl. | |
17484f01 | 94 | |
421caf12 JB |
95 | %package static |
96 | Summary: Static libpsl library | |
97 | Summary(pl.UTF-8): Statyczna biblioteka libpsl | |
98 | Group: Development/Libraries | |
99 | Requires: %{name}-devel = %{version}-%{release} | |
100 | ||
101 | %description static | |
102 | Static libpsl library. | |
103 | ||
104 | %description static -l pl.UTF-8 | |
105 | Statyczna biblioteka libpsl. | |
106 | ||
107 | %package apidocs | |
108 | Summary: API documentation for libpsl library | |
109 | Summary(pl.UTF-8): Dokumentacja API biblioteki libpsl | |
110 | Group: Documentation | |
abef6c14 ER |
111 | %if "%{_rpmversion}" >= "5" |
112 | BuildArch: noarch | |
113 | %endif | |
421caf12 JB |
114 | |
115 | %description apidocs | |
116 | API documentation for libpsl library. | |
117 | ||
118 | %description apidocs -l pl.UTF-8 | |
119 | Dokumentacja API biblioteki libpsl. | |
120 | ||
17484f01 AM |
121 | %package utils |
122 | Summary: Commandline utility to explore the Public Suffix List | |
032b7ee9 | 123 | Summary(pl.UTF-8): Narzędzie linii poleceń do eksplorowania listy przyrostków publicznych |
421caf12 | 124 | Group: Applications/Networking |
17484f01 AM |
125 | Requires: %{name} = %{version}-%{release} |
126 | ||
127 | %description utils | |
128 | This package contains a commandline utility to explore the Public | |
129 | Suffix List, for example it checks if domains are public suffixes, | |
130 | checks if cookie-domain is acceptable for domains and so on. | |
131 | ||
032b7ee9 JB |
132 | %description utils -l pl.UTF-8 |
133 | Ten pakiet zawiera narzędzie linii poleceń do eksplorowania listy | |
134 | przyrostków publicznych (Public Suffix List); sprawdza ono na | |
135 | przykład, czy domeny są przyrostkami publicznymi, czy domena | |
136 | ciasteczka jest akceptowalna dla domen itp. | |
137 | ||
17484f01 | 138 | %prep |
64042f0b | 139 | %setup -q |
159d56f0 | 140 | %patch0 -p1 |
17484f01 | 141 | |
64042f0b | 142 | %if 0 |
b6d6f747 JB |
143 | rmdir list |
144 | %{__tar} xf %{SOURCE1} | |
145 | %{__mv} list-%{psl_ref} list | |
64042f0b | 146 | %endif |
421caf12 | 147 | |
17484f01 | 148 | %build |
421caf12 JB |
149 | %{__gettextize} |
150 | %{__gtkdocize} | |
151 | %{__libtoolize} | |
152 | %{__aclocal} -I m4 | |
153 | %{__autoconf} | |
154 | %{__autoheader} | |
155 | %{__automake} | |
17484f01 AM |
156 | |
157 | %configure \ | |
158 | --disable-silent-rules \ | |
421caf12 JB |
159 | %{!?with_static_libs:--disable-static} \ |
160 | --enable-gtk-doc \ | |
ecb3403f | 161 | --enable-man \ |
421caf12 | 162 | --with-html-dir=%{_gtkdocdir} |
17484f01 AM |
163 | |
164 | %{__make} | |
165 | ||
166 | %{?with_tests:%{__make} check} | |
167 | ||
168 | %install | |
169 | rm -rf $RPM_BUILD_ROOT | |
17484f01 AM |
170 | %{__make} install \ |
171 | DESTDIR=$RPM_BUILD_ROOT | |
172 | ||
421caf12 JB |
173 | # obsoleted by pkg-config |
174 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpsl.la | |
032b7ee9 | 175 | |
17484f01 AM |
176 | %clean |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
ecb3403f ER |
179 | %post -p /sbin/ldconfig |
180 | %postun -p /sbin/ldconfig | |
17484f01 AM |
181 | |
182 | %files | |
183 | %defattr(644,root,root,755) | |
64042f0b | 184 | %doc AUTHORS COPYING NEWS |
17484f01 | 185 | %attr(755,root,root) %{_libdir}/libpsl.so.*.*.* |
ecb3403f | 186 | %attr(755,root,root) %ghost %{_libdir}/libpsl.so.0 |
17484f01 AM |
187 | |
188 | %files devel | |
189 | %defattr(644,root,root,755) | |
190 | %attr(755,root,root) %{_libdir}/libpsl.so | |
191 | %{_includedir}/libpsl.h | |
192 | %{_pkgconfigdir}/libpsl.pc | |
193 | %{_mandir}/man3/libpsl.3* | |
17484f01 | 194 | |
421caf12 JB |
195 | %files static |
196 | %defattr(644,root,root,755) | |
197 | %{_libdir}/libpsl.a | |
198 | ||
199 | %files apidocs | |
200 | %defattr(644,root,root,755) | |
201 | %{_gtkdocdir}/libpsl | |
202 | ||
17484f01 AM |
203 | %files utils |
204 | %defattr(644,root,root,755) | |
205 | %attr(755,root,root) %{_bindir}/psl |