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