From 8ce01dc5bee29417ad5100b95d5b096fb391203600368625710b355c5bbb50b5 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Sat, 28 Nov 2015 14:08:04 +0000 Subject: [PATCH] fix SLE 11 build update descriptions and categories OBS-URL: https://build.opensuse.org/package/show/network:utilities/libpsl?expand=0&rev=3 --- 0001-Remove-include-of-bits-stat.h.patch | 24 ++++++++ libpsl.changes | 8 +++ libpsl.spec | 71 ++++++++++-------------- 3 files changed, 62 insertions(+), 41 deletions(-) create mode 100644 0001-Remove-include-of-bits-stat.h.patch diff --git a/0001-Remove-include-of-bits-stat.h.patch b/0001-Remove-include-of-bits-stat.h.patch new file mode 100644 index 0000000..8a74548 --- /dev/null +++ b/0001-Remove-include-of-bits-stat.h.patch @@ -0,0 +1,24 @@ +From dbefdb67678d0774c352aebe4eb37e526c280a3e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim=20R=C3=BChsen?= +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 +-#include + + /* number of elements within an array */ + #define countof(a) (sizeof(a)/sizeof(*(a))) +-- +2.1.4 + diff --git a/libpsl.changes b/libpsl.changes index 6f04d1f..c6eec2d 100644 --- a/libpsl.changes +++ b/libpsl.changes @@ -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 diff --git a/libpsl.spec b/libpsl.spec index d231160..e531992 100644 --- a/libpsl.spec +++ b/libpsl.spec @@ -22,12 +22,16 @@ Version: 0.11.0 Release: 0 Summary: C library for the Publix Suffix List License: MIT -Group: System Environment/Libraries +Group: Development/Libraries/C and C++ Url: https://rockdaboot.github.io/libpsl 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: publicsuffix +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %{?suse_version} > 1110 +BuildRequires: libicu-devel +%endif %if %{with gtk-doc} BuildRequires: gtk-doc >= 1.15 %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 domain name under which Internet users can directly register own names. -Browsers and other web clients can use it to - -- Avoid privacy-leaking "supercookies"; -- 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; +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. %package -n %{name}0 Summary: C library for the Publix Suffix List -Group: System Environment/Libraries/C and C++ +Group: System/Libraries %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. -Browsers and other web clients can use it to - -- Avoid privacy-leaking "supercookies"; -- 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; +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. %package devel Summary: Development files for %{name} @@ -89,8 +63,14 @@ Requires: %{name}0 = %{version} Requires: publicsuffix %description devel -This package contains libraries and header files for -developing applications that use %{name}. +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. %package -n psl 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 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 %setup -q +%patch0 -p1 %build %configure \ --disable-silent-rules \ --disable-static \ +%if 0%{?suse_version} <= 1110 + --disable-runtime \ + --disable-builtin \ +%endif --with-psl-file=%{_datadir}/publicsuffix/public_suffix_list.dat make %{?_smp_mflags}