From 5dc615fae2077bec174144d9dd212261b701088760aa81d45b7d16a8c0f69f05 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Mon, 16 Nov 2015 08:04:49 +0000 Subject: [PATCH] Accepting request 344644 from home:AndreasStieger:branches:network:utilities tool and library for using the Public Suffix List depends on publicsuffix SR 344643 OBS-URL: https://build.opensuse.org/request/show/344644 OBS-URL: https://build.opensuse.org/package/show/network:utilities/libpsl?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + libpsl-0.11.0.tar.gz | 3 + libpsl.changes | 5 ++ libpsl.spec | 147 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 179 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libpsl-0.11.0.tar.gz create mode 100644 libpsl.changes create mode 100644 libpsl.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libpsl-0.11.0.tar.gz b/libpsl-0.11.0.tar.gz new file mode 100644 index 0000000..4f6eb65 --- /dev/null +++ b/libpsl-0.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b410e840db64cf5748e9774a8effbb4f22be3168afe8f43d78d05607d536bd55 +size 516299 diff --git a/libpsl.changes b/libpsl.changes new file mode 100644 index 0000000..6f04d1f --- /dev/null +++ b/libpsl.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Nov 15 19:22:17 UTC 2015 - astieger@suse.com + +- initial package for libpsl based on Fedora Spec + diff --git a/libpsl.spec b/libpsl.spec new file mode 100644 index 0000000..d231160 --- /dev/null +++ b/libpsl.spec @@ -0,0 +1,147 @@ +# +# 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 +Group: System Environment/Libraries +Url: https://rockdaboot.github.io/libpsl +Source0: https://github.com/rockdaboot/libpsl/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz +BuildRequires: libicu-devel +BuildRequires: pkg-config >= 0.9.0 +BuildRequires: publicsuffix +%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. + +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; + +%package -n %{name}0 +Summary: C library for the Publix Suffix List +Group: System Environment/Libraries/C and C++ + +%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; + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries/C and C++ +Requires: %{name}0 = %{version} +Requires: publicsuffix + +%description devel +This package contains libraries and header files for +developing applications that use %{name}. + +%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. + +%prep +%setup -q + +%build +%configure \ + --disable-silent-rules \ + --disable-static \ + --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