]> git.pld-linux.org Git - packages/libpsl.git/blob - libpsl.spec
97fada73fee7af75be9b15b163966f3d28416b7d
[packages/libpsl.git] / libpsl.spec
1 Summary:        C library for the Publix Suffix List
2 Name:           libpsl
3 Version:        0.5.1
4 Release:        2
5 License:        MIT
6 Group:          Networking
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)
19
20 %description
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
23 register own names.
24
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;
30
31 Libpsl...
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);
39 - is thread-safe;
40 - handles IDNA2008 UTS#46;
41
42 %package devel
43 Summary:        Development files for %{name}
44 Requires:       %{name} = %{version}-%{release}
45
46 %description devel
47 This package contains libraries and header files for developing
48 applications that use %{name}.
49
50 %package utils
51 Summary:        Commandline utility to explore the Public Suffix List
52 Requires:       %{name} = %{version}-%{release}
53
54 %description utils
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.
58
59 %prep
60 %setup -q
61
62 %build
63 ./autogen.sh
64
65 %configure \
66         --disable-silent-rules \
67         --disable-static \
68         --enable-man \
69         --enable-gtk-doc
70
71 %{__make}
72
73 %{?with_tests:%{__make} check}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
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
91
92 %files devel
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/
99 %{_datadir}/%{name}
100 %exclude %{_datadir}/libpsl/test_psl.txt
101
102 %files utils
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_bindir}/psl
This page took 0.09091 seconds and 2 git commands to generate.