commit e9954913262f5bf82ab2c510516e9df1173a8b8a Author: Marius Gripsgard Date: Fri Mar 19 01:27:42 2021 +0100 Inital pkg (copied from upstream) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e8875aa --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*~ +debian/files +debian/libncicore +debian/libncicore-dev +debian/*.debhelper.log +debian/*.debhelper +debian/*.install +debian/*.substvars +debian/debhelper-build-stamp +debian/tmp +documentation.list +installroot +build +RPMS diff --git a/debian/Jenkinsfile b/debian/Jenkinsfile new file mode 100644 index 0000000..e541067 --- /dev/null +++ b/debian/Jenkinsfile @@ -0,0 +1,10 @@ +@Library('ubports-build-tools') _ + +buildAndProvideDebianPackage() + +// Or if the package consists entirely of arch-independent packages: +// (optional optimization, will confuse BlueOcean's live view at build stage) +// buildAndProvideDebianPackage(/* isArchIndependent */ true) + +// Optionally, to skip building on some architectures (amd64 is always built): +// buildAndProvideDebianPackage(false, /* ignoredArchs */ ['arm64']) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5565e97 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,355 @@ +libglibutil (1.0.51-0ubports1) xenial; urgency=medium + + * Upstream release v1.0.51 + + -- Marius Gripsgard Fri, 19 Mar 2021 01:26:10 +0100 + +libglibutil (1.0.51) unstable; urgency=low + + * Initialize default log settings from the environment + * Disable timestamps by default + * Added gutil_log_tid option + * Added gutil_ptrv_free() + + -- Slava Monich Thu, 25 Feb 2021 19:36:05 +0200 + +libglibutil (1.0.50) unstable; urgency=low + + * Added gutil_ptrv_length() + + -- Slava Monich Wed, 28 Oct 2020 17:59:10 +0200 + +libglibutil (1.0.49) unstable; urgency=low + + * Added gutil_slice_free() macro + + -- Slava Monich Sat, 17 Oct 2020 01:01:25 +0300 + +libglibutil (1.0.48) unstable; urgency=low + + * Make library executable on rpm based systems + + -- Slava Monich Mon, 31 Aug 2020 00:07:18 +0300 + +libglibutil (1.0.47) unstable; urgency=low + + * Added gutil_strv_addv() + + -- Slava Monich Tue, 28 Jul 2020 13:56:08 +0300 + +libglibutil (1.0.46) unstable; urgency=low + + * Allow STRIP to be defined by the environment + + -- Slava Monich Sat, 30 May 2020 00:02:35 +0300 + +libglibutil (1.0.45) unstable; urgency=low + + * Support for multiple archs + + -- Slava Monich Fri, 22 May 2020 16:11:42 +0300 + +libglibutil (1.0.44) unstable; urgency=low + + * Adapted to side-by-side linking + * Allow overriding CC for unit tests + + -- Slava Monich Tue, 17 Mar 2020 19:01:45 +0200 + +libglibutil (1.0.43) unstable; urgency=low + + * Allow specifying per-module logging function + * Added default GLogProc2 compatible callbacks + + -- Slava Monich Fri, 20 Dec 2019 19:31:32 +0200 + +libglibutil (1.0.42) unstable; urgency=low + + * Zero-initialize timespec::tv_nsec + * Optimized gutil_strv_equal() + + -- Slava Monich Fri, 22 Nov 2019 00:49:13 +0200 + +libglibutil (1.0.41) unstable; urgency=low + + * Added gutil_bytes_equal() and gutil_bytes_equal_data() + + -- Slava Monich Sun, 10 Nov 2019 17:14:19 +0300 + +libglibutil (1.0.40) unstable; urgency=low + + * Added gutil_strv_bsearch() + + -- Slava Monich Mon, 16 Sep 2019 02:22:51 +0300 + +libglibutil (1.0.39) unstable; urgency=low + + * Allow use of CC defined by build system + + -- Slava Monich Tue, 27 Aug 2019 13:19:56 +0300 + +libglibutil (1.0.38) unstable; urgency=low + + * Added gutil_data_has_prefix() and gutil_data_has_suffix() + + -- Slava Monich Thu, 01 Aug 2019 00:13:32 +0300 + +libglibutil (1.0.37) unstable; urgency=low + + * Added gutil_bytes_concat() and gutil_bytes_xor() + + -- Slava Monich Tue, 23 Jul 2019 21:17:18 +0300 + +libglibutil (1.0.36) unstable; urgency=low + + * Handle empty log prefix as no prefix at all + * Don't nullify default log name in gutil_log_set_type() + + -- Slava Monich Thu, 13 Jun 2019 18:15:33 +0300 + +libglibutil (1.0.35) unstable; urgency=low + + * Added gutil_strv_last() function + + -- Slava Monich Wed, 13 Feb 2019 19:56:31 +0300 + +libglibutil (1.0.34) unstable; urgency=low + + * Added a few more GUtilIdlePool functions: + + gutil_idle_pool_destroy + gutil_idle_pool_add_bytes + gutil_idle_pool_add_bytes_ref + + -- Slava Monich Wed, 07 Nov 2018 17:57:52 +0300 + +libglibutil (1.0.33) unstable; urgency=low + + * Added GLOG_FLAG_DISABLE flag + + -- Slava Monich Sat, 03 Nov 2018 11:47:25 +0300 + +libglibutil (1.0.32) unstable; urgency=low + + * Added gutil_idle_pool_add_strv function + + -- Slava Monich Sun, 14 Oct 2018 00:47:01 +0300 + +libglibutil (1.0.31) unstable; urgency=low + + * Added GUtilData type and functions to work with it: + + gutil_data_equal + gutil_data_from_string + gutil_data_from_bytes + + -- Slava Monich Sat, 13 Oct 2018 13:17:45 +0300 + +libglibutil (1.0.30) unstable; urgency=low + + * Added gutil_parse_int function + + -- Slava Monich Fri, 20 Jul 2018 00:06:40 +0300 + +libglibutil (1.0.29) unstable; urgency=low + + * Added gutil_hexdump function + * Fixed dependencies for pkgconfig target + + -- Slava Monich Tue, 13 Mar 2018 19:28:46 +0300 + +libglibutil (1.0.28) unstable; urgency=low + + * Added gutil_idle_pool_get function + + -- Slava Monich Sun, 25 Feb 2018 19:58:21 +0200 + +libglibutil (1.0.27) unstable; urgency=low + + * GUtilIdlePool is not a GObject anymore + * Took out glib-object.h from public headers + + -- Slava Monich Sun, 25 Feb 2018 13:20:49 +0200 + +libglibutil (1.0.26) unstable; urgency=low + + * Optimized GUtilIdleQueue + + -- Slava Monich Sat, 25 Nov 2017 02:16:18 +0200 + +libglibutil (1.0.25) unstable; urgency=low + + * Allow NULL module in gutil_log_enabled + * Added test_log + + -- Slava Monich Thu, 19 Oct 2017 19:51:05 +0300 + +libglibutil (1.0.24) unstable; urgency=low + + * Added gutil_strv_strip function + + -- Slava Monich Sun, 18 Jun 2017 00:27:35 +0300 + +libglibutil (1.0.23) unstable; urgency=low + + * Added a few more GUtilIntArray functions + + gutil_int_array_new_from_vals + gutil_int_array_new_from_value + gutil_int_array_find + gutil_int_array_contains + gutil_int_array_remove + gutil_int_array_remove_fast + gutil_int_array_remove_all + gutil_int_array_remove_all_fast + + -- Slava Monich Mon, 05 Jun 2017 19:01:12 +0300 + +libglibutil (1.0.22) unstable; urgency=low + + * Added GUtilIdleQueue + + -- Slava Monich Sun, 23 Apr 2017 18:07:46 +0300 + +libglibutil (1.0.21) unstable; urgency=low + + * Added gutil_hex2bin and gutil_hex2bytes functions + + -- Slava Monich Fri, 10 Mar 2017 23:36:04 +0200 + +libglibutil (1.0.20) unstable; urgency=low + + * Added GUtilIntHistory + + -- Slava Monich Thu, 02 Mar 2017 16:58:02 +0200 + +libglibutil (1.0.19) unstable; urgency=low + + * Added GUtilIntArray and GUtilInts + + -- Slava Monich Thu, 23 Feb 2017 18:37:01 +0200 + +libglibutil (1.0.18) unstable; urgency=low + + * Allow strings longer than 512 bytes in gutil_log_syslog + + -- Slava Monich Sat, 18 Feb 2017 20:30:23 +0200 + +libglibutil (1.0.17) unstable; urgency=low + + * Made unit tests work with glib < 2.36 + + -- Slava Monich Fri, 06 Jan 2017 20:07:29 +0300 + +libglibutil (1.0.16) unstable; urgency=low + + * Switched to glib test framework + + -- Slava Monich Mon, 05 Dec 2016 18:07:41 +0200 + +libglibutil (1.0.15) unstable; urgency=low + + * Added gutil_time_notify API + + -- Slava Monich Mon, 28 Nov 2016 19:02:36 +0200 + +libglibutil (1.0.14) unstable; urgency=low + + * Another check for NULL in gutil_inotify_watch_new + * Removed unnecessary checks from gutil_inotify_ref/undef + * Added test_inotify + + -- Slava Monich Sat, 24 Sep 2016 17:30:39 +0300 + +libglibutil (1.0.13) unstable; urgency=low + + * Added gutil_strv_remove_at + * Moved common test code into a reusable module + * Added test_misc + + -- Slava Monich Fri, 23 Sep 2016 17:58:04 +0300 + +libglibutil (1.0.12) unstable; urgency=low + + * Cleaned up debian build + * Fixed test_idlepool against glib < 2.36 + * Added gutil_ring_max_size and gutil_ring_set_max_size + * Fixed gutil_ring_flatten behavior with empty ring buffer + + -- Slava Monich Wed, 07 Sep 2016 12:43:14 +0300 + +libglibutil (1.0.11) unstable; urgency=low + + * Moved GLOG_MODULE_DECL from gutil_log.h to gutil_types.h + + -- Slava Monich Sun, 10 Jul 2016 11:46:30 +0300 + +libglibutil (1.0.10) unstable; urgency=low + + * Fixed test_idlepool + * Added GLOG_FLAG_HIDE_NAME and gutil_log_func2 + + -- Slava Monich Fri, 13 May 2016 17:14:37 +0300 + +libglibutil (1.0.9) unstable; urgency=low + + * Added gutil_ring_drop and gutil_ring_drop_last functions + + -- Slava Monich Sun, 10 Apr 2016 15:20:40 +0300 + +libglibutil (1.0.8) unstable; urgency=low + + * Added gutil_ring API + + -- Slava Monich Fri, 08 Apr 2016 19:50:38 +0300 + +libglibutil (1.0.7) unstable; urgency=low + + * Added gutil_idle_pool API + + -- Slava Monich Tue, 29 Mar 2016 17:29:46 +0300 + +libglibutil (1.0.6) unstable; urgency=low + + * Added gutil_strv_sort function + * Added gutil_inotify_watch API + + -- Slava Monich Sat, 05 Mar 2016 01:13:34 +0200 + +libglibutil (1.0.5) unstable; urgency=low + + * Fixed a bug gutil_disconnect_handlers + + -- Slava Monich Tue, 23 Feb 2016 15:00:19 +0300 + +libglibutil (1.0.4) unstable; urgency=low + + * Added gutil_disconnect_handlers function + * Compiled on Windows + + -- Slava Monich Sat, 20 Feb 2016 22:58:23 +0300 + +libglibutil (1.0.3) unstable; urgency=low + + * Added GStrV type + + -- Slava Monich Sat, 09 Jan 2016 12:35:58 +0200 + +libglibutil (1.0.2) unstable; urgency=low + + * Makefile cleanup + * Removed unnecessary CR from the assert message + + -- Slava Monich Thu, 24 Dec 2015 00:33:08 +0200 + +libglibutil (1.0.1) unstable; urgency=low + + * Use three-digit version for pkg-config + + -- Slava Monich Mon, 16 Nov 2015 14:01:15 +0200 + +libglibutil (1.0.0) unstable; urgency=low + + * Initial release + + -- Slava Monich Sat, 27 Dec 2014 22:36:32 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..666f69e --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: libglibutil +Section: libs +Priority: optional +Maintainer: Slava Monich +Build-Depends: debhelper (>= 8.1.3), libglib2.0-dev (>= 2.0) +Standards-Version: 3.8.4 + +Package: libglibutil +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Library of glib utilities + +Package: libglibutil-dev +Section: libdevel +Architecture: any +Depends: libglibutil (= ${binary:Version}), ${misc:Depends} +Description: Development files for libglibutil diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..53ced2b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Copyright (C) 2014-2021 Jolla Ltd. + +You may use this file under the terms of BSD license as follows: + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the names of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/libglibutil-dev.install.in b/debian/libglibutil-dev.install.in new file mode 100644 index 0000000..c045e8c --- /dev/null +++ b/debian/libglibutil-dev.install.in @@ -0,0 +1,3 @@ +debian/tmp/@LIBDIR@/libglibutil.so @LIBDIR@ +debian/tmp/@LIBDIR@/pkgconfig/libglibutil.pc @LIBDIR@/pkgconfig +debian/tmp/usr/include/* usr/include/ diff --git a/debian/libglibutil.install.in b/debian/libglibutil.install.in new file mode 100644 index 0000000..2cd6324 --- /dev/null +++ b/debian/libglibutil.install.in @@ -0,0 +1 @@ +debian/tmp/@LIBDIR@/libglibutil.so.* @LIBDIR@ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4d7935c --- /dev/null +++ b/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +LIBDIR=usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +override_dh_auto_build: + dh_auto_build -- LIBDIR=$(LIBDIR) release pkgconfig debian/libglibutil.install debian/libglibutil-dev.install + +override_dh_auto_install: + dh_auto_install -- LIBDIR=$(LIBDIR) install-dev + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/ubports.source_location b/debian/ubports.source_location new file mode 100644 index 0000000..a0bfe02 --- /dev/null +++ b/debian/ubports.source_location @@ -0,0 +1,2 @@ +https://git.sailfishos.org/mer-core/libglibutil/-/archive/1.0.51/libglibutil-1.0.51.tar.gz +libglibutil-1.0.51.tar.gz