From 49126e88ebda1f1ff43284d3f1c86800637fc2ea Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 1 Jun 2019 10:44:28 +0200 Subject: [PATCH] Debian pkg: added buster files. --- .gitignore | 1 + debian/changelog | 78 +++++++++++++++++++++++ debian/compat | 1 + debian/control | 24 +++++++ debian/copyright | 34 ++++++++++ debian/gbp.conf | 10 +++ debian/libzakform-dev.install | 4 ++ debian/libzakform.install | 3 + debian/patches/0001-DESTDIR-support.patch | 25 ++++++++ debian/patches/series | 1 + debian/rules | 37 +++++++++++ debian/source/format | 1 + 12 files changed, 219 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/libzakform-dev.install create mode 100644 debian/libzakform.install create mode 100644 debian/patches/0001-DESTDIR-support.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.gitignore b/.gitignore index c5af0fd..650b88c 100644 --- a/.gitignore +++ b/.gitignore @@ -64,3 +64,4 @@ src/*marshal*.[ch] test-driver *.gir *.typelib +build \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..53145e3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,78 @@ +libzakform (0.1.0-3~7.gbpec0728) UNRELEASED; urgency=medium + + ** SNAPSHOT build @ec07286647fdf4121f8e3024153903af3bf09a3d ** + + [ Andrea Zagli ] + * Initial release + * Missing libzakutils dependency in pkgconfig. + * Debian package snapshot 0.0.1-2~1.gbp266425. + * Correct modulesdir in debian package. + * Specified date/time format in ::format. + + [ tux ] + + [ Andrea Zagli ] + * Added FormElement extensions. + * Missing file for translation. + + [ tux ] + + [ Andrea Zagli ] + * Debian pkg: updates from upstream. + * g_strcmp0 may returns other values than -1, 0 and 1. + * Added property id to ZakFormValidator (refs #1102). + * Added ZakForm::get_validator_by_id. + * Added property id to FormElementValidator (refs #1102). + * Added function ZakFormElement::get_validator_by_id. + * Refactored ZakFormElementFilter::xml_parsing. + * Added property id to ZakFormElementFilter (closes #1102). + * Wrong prototype zak_form_element_set_to_is_key in formelement.h (closes #1111). + * Added signals ZakFormElement before and after validating. + * Added commons functions ZakForm::get_compare_type_from_string and ::get_compare_type_stringify. + * ZakFormElementValidatorDate can now compare the value. + * Xml parsing of long-name in ZakFormElement. + * Migration to GValue for element value. + * Added functions ZakFormElement::[get|set]_original_value_gvalue. + * Started implementation (only one level) of ZakFormValidatorComposite. + * Multilevel for ZakFormValidatorComposite. + * Added condition (only one) to ZakFormValidatorComposite. + * Missing file in translation. + + [ tux ] + + [ Andrea Zagli ] + * Debian pkg: updates from upstream. + + [ tux ] + + [ Andrea Zagli ] + * Debian pkg: locale files in dev. + * Enabled gtk-doc. + * Enabled gir. + * Added private function ZakForm::get_module_new. + * Renamed function ZakFormForm::get_form_element_validator. + * Added function ZakFormForm::get_form_element_filter. + * Use of ZakFormForm::get_module_new in FormValidator construct from xml. + * Make public function ZakFormElement::xml_parsing. + * Added function ZakFormForm::get_form_element. + * Added some member functions to ZakFormElement. + * Added class ZakFormElementExtension. + * Moved functions ZakFormForm::get_form_* to commons. + * Moved function ZakFormForm::element_xml_parsing in ZakFormElement. + * Start of implementation of FormElementArray. + * Added function ZakFormElementArray::get_element_by_id. + * Wrong comparision value in ZakForm*ValidatorCompare*. + * Implemented functions ZakFormElementArray::[gs]et_visible. + * Implemented functions ZakFormElementArray::[gs]et_editable. + * Implemented functions ZakFormElementArray::is_valid. + * Implemented functions ZakFormElementArray::is_changed. + * Missing source file in translation. + * In FormElementArray setted value in any case. + * Added function ZakForm::remove_element_by_id (refs #1104). + * Added function ZakForm::remove_element (refs #1104). + * Added function ZakForm::get_element_idx_by_id. + * Added function ZakForm::remove_element_by_idx (closes #1104). + * Setted version 0.1.0. + * Added property regex to ZakFormElementValidatorRegex. + + -- andreaz Sat, 01 Jun 2019 10:41:25 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..bda429f --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: libzakform +Priority: optional +Maintainer: Andrea Zagli +Build-Depends: debhelper (>=9), libzakutils-dev, intltool, pkg-config, gnome-common, gtk-doc-tools, gobject-introspection, libgirepository1.0-dev, libxml2-dev +Standards-Version: 3.9.8 +Section: libs +Homepage: http://saetta.ns0.it +#Vcs-Git: git://anonscm.debian.org/collab-maint/libzakform.git +#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/libzakform.git + +Package: libzakform-dev +Section: libdevel +Architecture: any +Depends: libzakform (= ${binary:Version}), ${misc:Depends}, libzakutils-dev, libxml2-dev +Description: GObject library to manage forms - development files. + GObject library to manage forms, based on plugins. + . + Development files. + +Package: libzakform +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libzakutils, libxml2 +Description: GObject library to manage forms. + GObject library to manage forms, based on plugins. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8b54a2b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libzakform +Source: + +Files: * +Copyright: + +License: GPL-2.0+ + +Files: debian/* +Copyright: 2016 Andrea Zagli +License: GPL-2.0+ + +License: GPL-2.0+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid picking licenses with terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..f4f94eb --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,10 @@ +[buildpackage] +export-dir=./build/buster +debian-branch=debian/buster +ignore-new=True +upstream-tree=BRANCH +upstream-branch=develop +force-create=True +export=WC +dist=buster +pbuilder=True diff --git a/debian/libzakform-dev.install b/debian/libzakform-dev.install new file mode 100644 index 0000000..dde0009 --- /dev/null +++ b/debian/libzakform-dev.install @@ -0,0 +1,4 @@ +usr/lib/*/libzakform.a +usr/lib/*/libzakform.la +usr/lib/*/pkgconfig/* +usr/include/libzakform* diff --git a/debian/libzakform.install b/debian/libzakform.install new file mode 100644 index 0000000..86af80a --- /dev/null +++ b/debian/libzakform.install @@ -0,0 +1,3 @@ +usr/lib/*/libzakform*.so* +usr/lib/*/libzakform/modules +usr/share/locale/* \ No newline at end of file diff --git a/debian/patches/0001-DESTDIR-support.patch b/debian/patches/0001-DESTDIR-support.patch new file mode 100644 index 0000000..3a118e9 --- /dev/null +++ b/debian/patches/0001-DESTDIR-support.patch @@ -0,0 +1,25 @@ +From: Andrea Zagli +Date: Mon, 23 May 2016 18:13:48 +0200 +Subject: DESTDIR support. + +--- + src/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index 4b3af31..af81c81 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -62,10 +62,10 @@ libzakform_include_HEADERS = \ + libzakform_includedir = $(includedir)/libzakform + + install-exec-hook: +- mkdir -p "$(libdir)/$(PACKAGE)/modules" ++ mkdir -p "$(DESTDIR)$(libdir)/$(PACKAGE)/modules" + + uninstall-hook: +- rm -rf "$(libdir)/$(PACKAGE)" ++ rm -rf "$(DESTDIR)$(libdir)/$(PACKAGE)" + + CLEANFILES = + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..c779459 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-DESTDIR-support.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a689e0f --- /dev/null +++ b/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +export DEB_CFLAGS_MAINT_STRIP = -Werror=format-security +export DEB_CPPFLAGS_MAINT_STRIP = -Werror=format-security +export DEB_CXXFLAGS_MAINT_STRIP = -Werror=format-security + + +%: + dh $@ + + +override_dh_auto_configure: + NOCONFIGURE="X" ./autogen.sh + dh_auto_configure -- --enable-introspection + +override_dh_auto_install: + $(MAKE) DESTDIR=$$(pwd)/debian/tmp prefix=/usr install + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) 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) -- 2.49.0