]> git.pld-linux.org Git - packages/libpsl.git/blame - libpsl.spec
- icu-57.1 rebuild
[packages/libpsl.git] / libpsl.spec
CommitLineData
421caf12
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
abef6c14 4
17484f01 5Summary: C library for the Publix Suffix List
032b7ee9 6Summary(pl.UTF-8): Biblioteka C do obsługi listy przyrostków publicznych (Public Suffix List)
17484f01 7Name: libpsl
64042f0b 8Version: 0.11.0
2591e983 9Release: 4
17484f01
AM
10License: MIT
11Group: Networking
64042f0b
JB
12#Source0Download: https://github.com/rockdaboot/libpsl/releases
13Source0: 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
19Source1: https://github.com/publicsuffix/list/archive/%{psl_ref}/publicsuffix_list-%{psldate}.tar.gz
20# Source1-md5: ee9a591d4545d9f6ca350bd9df2c2e51
64042f0b 21%endif
159d56f0 22Patch0: %{name}-am.patch
ecb3403f 23URL: https://rockdaboot.github.io/libpsl
421caf12
JB
24BuildRequires: autoconf >= 2.59
25BuildRequires: automake >= 1:1.10
b3607a92 26BuildRequires: gettext-tools >= 0.18.1
17484f01 27BuildRequires: glib2-devel
421caf12 28BuildRequires: gtk-doc >= 1.15
17484f01 29BuildRequires: libicu-devel
421caf12
JB
30BuildRequires: libtool >= 2:2
31BuildRequires: libxslt-progs
159d56f0 32BuildRequires: pkgconfig
421caf12 33BuildRequires: sed >= 4.0
ecb3403f 34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17484f01
AM
35
36%description
37libpsl is a C library to handle the Public Suffix List. A "public
38suffix" is a domain name under which Internet users can directly
39register own names.
40
41Browsers 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
47Libpsl...
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
59libpsl to biblioteka C do obsługi listy przyrostków publicznych
60(Public Suffix List). "Przyrostek publiczny" to nazwa domeny, poniżej
61której bezpośrednio użytkownicy Internetu mogą rejestrować własne
62nazwy.
63
64Przeglą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
70Libpsl:
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
82Summary: Development files for libpsl
83Summary(pl.UTF-8): Pliki programistyczne biblioteki libpsl
421caf12 84Group: Development/Libraries
17484f01
AM
85Requires: %{name} = %{version}-%{release}
86
ecb3403f 87%description devel
032b7ee9
JB
88This package contains the header file for developing applications that
89use libpsl.
90
91%description devel -l pl.UTF-8
92Ten pakiet zawiera plik nagłówkowy do tworzenia aplikacji
93wykorzystujących bibliotekę libpsl.
17484f01 94
421caf12
JB
95%package static
96Summary: Static libpsl library
97Summary(pl.UTF-8): Statyczna biblioteka libpsl
98Group: Development/Libraries
99Requires: %{name}-devel = %{version}-%{release}
100
101%description static
102Static libpsl library.
103
104%description static -l pl.UTF-8
105Statyczna biblioteka libpsl.
106
107%package apidocs
108Summary: API documentation for libpsl library
109Summary(pl.UTF-8): Dokumentacja API biblioteki libpsl
110Group: Documentation
abef6c14
ER
111%if "%{_rpmversion}" >= "5"
112BuildArch: noarch
113%endif
421caf12
JB
114
115%description apidocs
116API documentation for libpsl library.
117
118%description apidocs -l pl.UTF-8
119Dokumentacja API biblioteki libpsl.
120
17484f01
AM
121%package utils
122Summary: Commandline utility to explore the Public Suffix List
032b7ee9 123Summary(pl.UTF-8): Narzędzie linii poleceń do eksplorowania listy przyrostków publicznych
421caf12 124Group: Applications/Networking
17484f01
AM
125Requires: %{name} = %{version}-%{release}
126
127%description utils
128This package contains a commandline utility to explore the Public
129Suffix List, for example it checks if domains are public suffixes,
130checks if cookie-domain is acceptable for domains and so on.
131
032b7ee9
JB
132%description utils -l pl.UTF-8
133Ten pakiet zawiera narzędzie linii poleceń do eksplorowania listy
134przyrostków publicznych (Public Suffix List); sprawdza ono na
135przykład, czy domeny są przyrostkami publicznymi, czy domena
136ciasteczka 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
143rmdir 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
169rm -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
177rm -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
This page took 0.112788 seconds and 4 git commands to generate.