blob: 48f8bf9870fd234d3675e2814cd69efe019cc21b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
Name: libpsl
Version: 0.21.0
Release: 1
Summary: C library for the Publix Suffix List
License: MIT and BSD-3-Clause
URL: https://rockdaboot.github.io/libpsl
Source0: %{name}-%{version}.tar.gz
BuildRequires: libicu-devel
BuildRequires: python
%description
libpsl is a C library to handle the Public Suffix List.
A Public Suffix List is a collection of Top Level Domains (TLDs) suffixes.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
This package contains libraries and header files for
developing applications that use %{name}.
%package -n psl
Summary: Commandline tool
%description -n psl
This package contains a commandline tool to explore the Public Suffix List,
for example it checks if domains are public suffixes, checks if cookie-domain
is acceptable for domains and so on.
%prep
%setup -q
%build
%configure --disable-silent-rules \
--disable-static \
--enable-builtin=libicu
make %{?_smp_mflags}
%install
%make_install
cat src/LICENSE.chromium >> LICENSE
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE
%{_libdir}/libpsl.so.*
%files devel
%doc AUTHORS NEWS
%{_includedir}/libpsl.h
%{_libdir}/libpsl.so
%{_libdir}/pkgconfig/libpsl.pc
%{_datadir}/man/*
%files -n psl
%license LICENSE
%{_bindir}/psl
|