Accepting request 346650 from network:utilities

fix SLE 11 build
update descriptions and categories

OBS-URL: https://build.opensuse.org/request/show/346650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpsl?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2015-12-09 19:33:25 +00:00 committed by Git OBS Bridge
commit ebef4d4378
3 changed files with 62 additions and 41 deletions

View File

@ -0,0 +1,24 @@
From dbefdb67678d0774c352aebe4eb37e526c280a3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Thu, 19 Nov 2015 10:06:04 +0100
Subject: [PATCH] Remove include of bits/stat.h
---
src/psl.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/psl.c b/src/psl.c
index 486da89..ed14a19 100644
--- a/src/psl.c
+++ b/src/psl.c
@@ -87,7 +87,6 @@
#endif
#include <libpsl.h>
-#include <bits/stat.h>
/* number of elements within an array */
#define countof(a) (sizeof(a)/sizeof(*(a)))
--
2.1.4

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Nov 28 14:06:39 UTC 2015 - astieger@suse.com
- fix SLE 11 build:
* adding 0001-Remove-include-of-bits-stat.h.patch
* skip IDN feature
- update descriptions and categories
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 15 19:22:17 UTC 2015 - astieger@suse.com Sun Nov 15 19:22:17 UTC 2015 - astieger@suse.com

View File

@ -22,12 +22,16 @@ Version: 0.11.0
Release: 0 Release: 0
Summary: C library for the Publix Suffix List Summary: C library for the Publix Suffix List
License: MIT License: MIT
Group: System Environment/Libraries Group: Development/Libraries/C and C++
Url: https://rockdaboot.github.io/libpsl Url: https://rockdaboot.github.io/libpsl
Source0: https://github.com/rockdaboot/libpsl/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/rockdaboot/libpsl/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: libicu-devel Patch0: 0001-Remove-include-of-bits-stat.h.patch
BuildRequires: pkg-config >= 0.9.0 BuildRequires: pkg-config >= 0.9.0
BuildRequires: publicsuffix BuildRequires: publicsuffix
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{?suse_version} > 1110
BuildRequires: libicu-devel
%endif
%if %{with gtk-doc} %if %{with gtk-doc}
BuildRequires: gtk-doc >= 1.15 BuildRequires: gtk-doc >= 1.15
%endif %endif
@ -36,51 +40,21 @@ BuildRequires: gtk-doc >= 1.15
libpsl is a C library to handle the Public Suffix List. A "public suffix" is a 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. domain name under which Internet users can directly register own names.
Browsers and other web clients can use it to 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
- Avoid privacy-leaking "supercookies"; and sorting domain lists by site.
- Avoid privacy-leaking "super domain" certificates;
- Domain highlighting parts of the domain in a user interface;
- Sorting domain lists by site;
Libpsl...
- has built-in PSL data for fast access;
- allows to load PSL data from files;
- checks if a given domain is a "public suffix";
- provides immediate cookie domain verification;
- finds the longest public part of a given domain;
- finds the shortest private part of a given domain;
- works with international domains (UTF-8 and IDNA2008 Punycode);
- is thread-safe;
- handles IDNA2008 UTS#46;
%package -n %{name}0 %package -n %{name}0
Summary: C library for the Publix Suffix List Summary: C library for the Publix Suffix List
Group: System Environment/Libraries/C and C++ Group: System/Libraries
%description -n %{name}0 %description -n %{name}0
libpsl is a C library to handle the Public Suffix List. A "public suffix" is a 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. domain name under which Internet users can directly register own names.
Browsers and other web clients can use it to 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
- Avoid privacy-leaking "supercookies"; and sorting domain lists by site.
- Avoid privacy-leaking "super domain" certificates;
- Domain highlighting parts of the domain in a user interface;
- Sorting domain lists by site;
Libpsl...
- has built-in PSL data for fast access;
- allows to load PSL data from files;
- checks if a given domain is a "public suffix";
- provides immediate cookie domain verification;
- finds the longest public part of a given domain;
- finds the shortest private part of a given domain;
- works with international domains (UTF-8 and IDNA2008 Punycode);
- is thread-safe;
- handles IDNA2008 UTS#46;
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
@ -89,8 +63,14 @@ Requires: %{name}0 = %{version}
Requires: publicsuffix Requires: publicsuffix
%description devel %description devel
This package contains libraries and header files for libpsl is a C library to handle the Public Suffix List. A "public suffix" is a
developing applications that use %{name}. 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.
%package -n psl %package -n psl
Summary: Commandline utility to explore the Public Suffix List Summary: Commandline utility to explore the Public Suffix List
@ -101,13 +81,22 @@ 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 for example it checks if domains are public suffixes, checks if cookie-domain
is acceptable for domains and so on. is acceptable for domains and so on.
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.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%configure \ %configure \
--disable-silent-rules \ --disable-silent-rules \
--disable-static \ --disable-static \
%if 0%{?suse_version} <= 1110
--disable-runtime \
--disable-builtin \
%endif
--with-psl-file=%{_datadir}/publicsuffix/public_suffix_list.dat --with-psl-file=%{_datadir}/publicsuffix/public_suffix_list.dat
make %{?_smp_mflags} make %{?_smp_mflags}