2015-11-16 09:04:49 +01:00
|
|
|
#
|
|
|
|
# spec file for package libpsl
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
# Copyright (c) 2015 rpm@cicku.me
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libpsl
|
|
|
|
Version: 0.11.0
|
|
|
|
Release: 0
|
|
|
|
Summary: C library for the Publix Suffix List
|
|
|
|
License: MIT
|
2015-11-28 15:08:04 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-11-16 09:04:49 +01:00
|
|
|
Url: https://rockdaboot.github.io/libpsl
|
|
|
|
Source0: https://github.com/rockdaboot/libpsl/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
|
2015-11-28 15:08:04 +01:00
|
|
|
Patch0: 0001-Remove-include-of-bits-stat.h.patch
|
2015-11-16 09:04:49 +01:00
|
|
|
BuildRequires: pkg-config >= 0.9.0
|
|
|
|
BuildRequires: publicsuffix
|
2015-11-28 15:08:04 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if %{?suse_version} > 1110
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
%endif
|
2015-11-16 09:04:49 +01:00
|
|
|
%if %{with gtk-doc}
|
|
|
|
BuildRequires: gtk-doc >= 1.15
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
libpsl is a C library to handle the Public Suffix List. A "public suffix" is a
|
|
|
|
domain name under which Internet users can directly register own names.
|
|
|
|
|
2015-11-28 15:08:04 +01:00
|
|
|
HTTP user agents can use it to avoid privacy-leaking "supercookies" and "super
|
|
|
|
domain" certificates. It is also use do highlight domain parts in a user interface
|
|
|
|
and sorting domain lists by site.
|
2015-11-16 09:04:49 +01:00
|
|
|
|
|
|
|
%package -n %{name}0
|
|
|
|
Summary: C library for the Publix Suffix List
|
2015-11-28 15:08:04 +01:00
|
|
|
Group: System/Libraries
|
2015-11-16 09:04:49 +01:00
|
|
|
|
|
|
|
%description -n %{name}0
|
|
|
|
libpsl is a C library to handle the Public Suffix List. A "public suffix" is a
|
|
|
|
domain name under which Internet users can directly register own names.
|
|
|
|
|
2015-11-28 15:08:04 +01:00
|
|
|
HTTP user agents can use it to avoid privacy-leaking "supercookies" and "super
|
|
|
|
domain" certificates. It is also use do highlight domain parts in a user interface
|
|
|
|
and sorting domain lists by site.
|
2015-11-16 09:04:49 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}0 = %{version}
|
|
|
|
Requires: publicsuffix
|
|
|
|
|
|
|
|
%description devel
|
2015-11-28 15:08:04 +01:00
|
|
|
libpsl is a C library to handle the Public Suffix List. A "public suffix" is a
|
|
|
|
domain name under which Internet users can directly register own names.
|
|
|
|
|
|
|
|
HTTP user agents can use it to avoid privacy-leaking "supercookies" and "super
|
|
|
|
domain" certificates. It is also use do highlight domain parts in a user interface
|
|
|
|
and sorting domain lists by site.
|
|
|
|
|
|
|
|
This package contains libraries and header files.
|
2015-11-16 09:04:49 +01:00
|
|
|
|
|
|
|
%package -n psl
|
|
|
|
Summary: Commandline utility to explore the Public Suffix List
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
|
|
|
|
%description -n psl
|
|
|
|
This package contains a commandline utility 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.
|
|
|
|
|
2015-11-28 15:08:04 +01:00
|
|
|
HTTP user agents can use it to avoid privacy-leaking "supercookies" and "super
|
|
|
|
domain" certificates. It is also use do highlight domain parts in a user interface
|
|
|
|
and sorting domain lists by site.
|
|
|
|
|
2015-11-16 09:04:49 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-11-28 15:08:04 +01:00
|
|
|
%patch0 -p1
|
2015-11-16 09:04:49 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-static \
|
2015-11-28 15:08:04 +01:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
--disable-runtime \
|
|
|
|
--disable-builtin \
|
|
|
|
%endif
|
2015-11-16 09:04:49 +01:00
|
|
|
--with-psl-file=%{_datadir}/publicsuffix/public_suffix_list.dat
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
make DESTDIR=%{buildroot} install-man
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check || cat tests/test-suite.log
|
|
|
|
|
|
|
|
%post -n %{name}0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{name}0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{name}0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libpsl.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS NEWS COPYING
|
|
|
|
%{_includedir}/libpsl.h
|
|
|
|
%{_libdir}/libpsl.so
|
|
|
|
%{_libdir}/pkgconfig/libpsl.pc
|
|
|
|
%if %{with gtk-doc}
|
|
|
|
%{_datadir}/gtk-doc/html/libpsl/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n psl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS NEWS COPYING
|
|
|
|
%{_bindir}/psl
|
|
|
|
|
|
|
|
%changelog
|