| 1 | Name: libpsl
|
|---|
| 2 | Version: 0.17.0
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: C library for the Publix Suffix List
|
|---|
| 5 | License: MIT
|
|---|
| 6 | URL: https://rockdaboot.github.io/libpsl
|
|---|
| 7 |
|
|---|
| 8 | Vendor: bww bitwise works GmbH
|
|---|
| 9 | %scm_source svn http://svn.netlabs.org/repos/ports/libpsl/trunk 2118
|
|---|
| 10 |
|
|---|
| 11 | BuildRequires: gettext-devel
|
|---|
| 12 | BuildRequires: glib2-devel
|
|---|
| 13 | #BuildRequires: gtk-doc
|
|---|
| 14 | BuildRequires: libicu-devel
|
|---|
| 15 | BuildRequires: libxslt
|
|---|
| 16 | #BuildRequires: publicsuffix-list
|
|---|
| 17 | Requires: libcx >= 0.4
|
|---|
| 18 |
|
|---|
| 19 | %description
|
|---|
| 20 | libpsl is a C library to handle the Public Suffix List. A "public suffix" is a
|
|---|
| 21 | domain name under which Internet users can directly register own names.
|
|---|
| 22 |
|
|---|
| 23 | Browsers 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 |
|
|---|
| 30 | Libpsl...
|
|---|
| 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
|
|---|
| 43 | Summary: Development files for %{name}
|
|---|
| 44 | Requires: %{name} = %{version}-%{release}
|
|---|
| 45 | #Requires: publicsuffix-list
|
|---|
| 46 |
|
|---|
| 47 | %description devel
|
|---|
| 48 | This package contains libraries and header files for
|
|---|
| 49 | developing applications that use %{name}.
|
|---|
| 50 |
|
|---|
| 51 | %package -n psl
|
|---|
| 52 | Summary: Commandline utility to explore the Public Suffix List
|
|---|
| 53 |
|
|---|
| 54 | %description -n psl
|
|---|
| 55 | This package contains a commandline utility to explore the Public Suffix List,
|
|---|
| 56 | for example it checks if domains are public suffixes, checks if cookie-domain
|
|---|
| 57 | is acceptable for domains and so on.
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | %debug_package
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 | %prep
|
|---|
| 64 | %scm_setup
|
|---|
| 65 |
|
|---|
| 66 | autoreconf -fiv
|
|---|
| 67 |
|
|---|
| 68 | %build
|
|---|
| 69 |
|
|---|
| 70 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 71 | export LIBS="-lcx"
|
|---|
| 72 | export 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
|
|---|
| 85 | rm %{buildroot}%{_mandir}/man1/psl-make-dafsa.1*
|
|---|
| 86 |
|
|---|
| 87 | find %{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
|
|---|