source: spec/trunk/SPECS/libpsl.spec@ 1566

Last change on this file since 1566 was 1045, checked in by Silvan Scherrer, 9 years ago

spec: libpsl: Release version 0.17.0-1.

File size: 3.3 KB
Line 
1Name: libpsl
2Version: 0.17.0
3Release: 1%{?dist}
4Summary: C library for the Publix Suffix List
5License: MIT
6URL: https://rockdaboot.github.io/libpsl
7
8Vendor: bww bitwise works GmbH
9%scm_source svn http://svn.netlabs.org/repos/ports/libpsl/trunk 2118
10
11BuildRequires: gettext-devel
12BuildRequires: glib2-devel
13#BuildRequires: gtk-doc
14BuildRequires: libicu-devel
15BuildRequires: libxslt
16#BuildRequires: publicsuffix-list
17Requires: libcx >= 0.4
18
19%description
20libpsl is a C library to handle the Public Suffix List. A "public suffix" is a
21domain name under which Internet users can directly register own names.
22
23Browsers and other web clients can use it to
24
25- Avoid privacy-leaking "supercookies";
26- Avoid privacy-leaking "super domain" certificates;
27- Domain highlighting parts of the domain in a user interface;
28- Sorting domain lists by site;
29
30Libpsl...
31
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
43Summary: Development files for %{name}
44Requires: %{name} = %{version}-%{release}
45#Requires: publicsuffix-list
46
47%description devel
48This package contains libraries and header files for
49developing applications that use %{name}.
50
51%package -n psl
52Summary: Commandline utility to explore the Public Suffix List
53
54%description -n psl
55This package contains a commandline utility to explore the Public Suffix List,
56for example it checks if domains are public suffixes, checks if cookie-domain
57is acceptable for domains and so on.
58
59
60%debug_package
61
62
63%prep
64%scm_setup
65
66autoreconf -fiv
67
68%build
69
70export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
71export LIBS="-lcx"
72export VENDOR="%{vendor}"
73# --with-psl-file=%{_datadir}/publicsuffix/effective_tld_names.dat \
74# --with-psl-testfile=%{_datadir}/publicsuffix/test_psl.txt
75# --enable-gtk-doc \
76%configure --disable-silent-rules \
77 --disable-static \
78 --enable-man
79%make_build
80
81%install
82%make_install
83
84# the corresponding script is noinst
85rm %{buildroot}%{_mandir}/man1/psl-make-dafsa.1*
86
87find %{buildroot} -name '*.la' -delete -print
88
89%check
90#make check || cat tests/test-suite.log
91
92#%post -p /sbin/ldconfig
93
94#%postun -p /sbin/ldconfig
95
96%files
97%license COPYING
98%{_libdir}/psl*.dll
99
100%files devel
101%doc AUTHORS NEWS
102#%{_datadir}/gtk-doc/html/libpsl/
103%{_includedir}/libpsl.h
104%{_libdir}/psl*_dll.a
105%{_libdir}/pkgconfig/libpsl.pc
106#%{_mandir}/man3/libpsl.3*
107
108%files -n psl
109%doc AUTHORS NEWS
110%license COPYING
111%{_bindir}/psl.exe
112%{_mandir}/man1/psl.1*
113
114%changelog
115* Fri Mar 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.17.0-1
116- update to version 0.17.0
117- use the new scm_source and scm_setup macros
118
119* Thu Nov 24 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.15.0-2
120- libcx req is 0.4 and not 0.4.0
121
122* Tue Nov 15 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.15.0-1
123- first version
Note: See TracBrowser for help on using the repository browser.