[gxml: 3/25] test debian generation with Meson.



commit 28250ea4f19cc27368daa219d2024b6574c8aa5d
Author: BZHDeveloper <inizan yannick gmail com>
Date:   Thu Oct 25 21:45:27 2018 +0200

    test debian generation with Meson.

 debian/Makefile.am            | 10 +++++++++
 debian/changelog.in           | 11 +++++++++
 debian/compat                 |  1 +
 debian/control.in             | 52 +++++++++++++++++++++++++++++++++++++++++++
 debian/copyright.in           | 46 ++++++++++++++++++++++++++++++++++++++
 debian/gir1.2-gxml.install.in |  1 +
 debian/libgxml-0.install.in   |  1 +
 debian/libgxml-dev.install.in |  6 +++++
 debian/meson.build            | 39 ++++++++++++++++++++++++++++++++
 debian/rules                  | 20 +++++++++++++++++
 debian/source/format          |  1 +
 meson.build                   |  1 +
 12 files changed, 189 insertions(+)
---
diff --git a/debian/Makefile.am b/debian/Makefile.am
new file mode 100644
index 0000000..008f7e4
--- /dev/null
+++ b/debian/Makefile.am
@@ -0,0 +1,10 @@
+EXTRA_DIST= \
+  control.in \
+  copyright.in
+
+all:
+       cp gir1.2-gxml.install gir1.2-gxml-@API_VERSION@.install
+       cp libgxml-0.install libgxml-@API_VERSION@-0.install
+       cp libgxml-dev.install libgxml-@API_VERSION@-dev.install
+
+CLEANFILES = gir1.2-gxml-@API_VERSION@.install libgxml-@API_VERSION@-0.install 
libgxml-@API_VERSION@-dev.install
diff --git a/debian/changelog.in b/debian/changelog.in
new file mode 100644
index 0000000..617cc1e
--- /dev/null
+++ b/debian/changelog.in
@@ -0,0 +1,11 @@
+gxml-@API_VERSION@ (@VERSION@-1) xenial; urgency=low
+
+  * git snapshot.
+
+ -- Yannick Inizan <inizan yannick gmail com>  Sat, 30 Jul 2016 21:56:37 +0200
+
+gxml-0.10 (0.9.3.2-3) xenial; urgency=low
+
+  * initial release.
+
+ -- Yannick Inizan <inizan yannick gmail com>  Wed, 09 Mar 2016 19:55:30 +0100
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.in b/debian/control.in
new file mode 100644
index 0000000..b7de8eb
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,52 @@
+Source: gxml-@API_VERSION@
+Section: libs
+Priority: optional
+Maintainer: Daniel Espinosa <daniel espinosa pwmc mx>
+Build-Depends: debhelper (>= 9),
+       autotools-dev,
+       valac,
+       yelp-tools,
+       dh-autoreconf,
+       libtool-bin,
+       intltool,
+       libxml2-dev,
+       libgee-0.8-dev,
+       gir1.2-glib-2.0 (>= 0.9.12),
+       libgirepository1.0-dev (>= 0.9.12),
+       gobject-introspection (>= 0.9.12-4~)
+Standards-Version: 3.9.6
+Homepage: https://wiki.gnome.org/GXml
+#Vcs-Git: git://anonscm.debian.org/collab-maint/gxml-0.6.git
+#Vcs-Browser: https://anonscm.debian.org/gitweb/?p=collab-maint/gxml-0.6.git;a=summary
+
+Package: libgxml-@API_VERSION@-0
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: GObject libxml2 bindings
+ GXml is a wrapper of libxml2 to GObject providing bidings to Vala and any
+ language supporting GObject Introspection.
+
+Package: libgxml-@API_VERSION@-dev
+Section: libdevel
+Architecture: any
+Depends: libgxml-@API_VERSION@-0 (= ${binary:Version}),
+                libgee-0.8-dev,
+                libxml2-dev,
+                ${misc:Depends}
+Description: GObject libxml2 bindings (development files)
+ GXml is a wrapper of libxml2 to GObject providing bidings to Vala and any
+ language supporting GObject Introspection.
+ .
+ This package contains the development files.
+
+Package: gir1.2-gxml-@API_VERSION@
+Architecture: any
+Section: introspection
+Depends: ${gir:Depends}, ${misc:Depends}
+Description: GObject libxml2 bindings (GObject-Introspection)
+ GXml is a wrapper of libxml2 to GObject providing bidings to Vala and any
+ language supporting GObject Introspection.
+ .
+ This package contains introspection data for GXml, which can be used
+ to generate dynamic bindings.
diff --git a/debian/copyright.in b/debian/copyright.in
new file mode 100644
index 0000000..7356822
--- /dev/null
+++ b/debian/copyright.in
@@ -0,0 +1,46 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: gxml-@API_VERSION@
+Source: 
+
+Files: *
+Copyright: 22011-2013  Richard Schwarting <aquarichy gmail com>
+           2011,2015  Daniel Espinosa <esodan gmail com>
+License: LGPL-2+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library 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
+ Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+# If you want to use GPL v2 or later for the /debian/* files use 
+# the following clauses, or change it to suit. Delete these two lines
+Files: debian/*
+Copyright: 2015 Daniel Espinosa <daniel espinosa pwmc mx>
+License: GPL-2+
+ 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 <https://www.gnu.org/licenses/>
+ .
+ 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/gir1.2-gxml.install.in b/debian/gir1.2-gxml.install.in
new file mode 100644
index 0000000..49d71c9
--- /dev/null
+++ b/debian/gir1.2-gxml.install.in
@@ -0,0 +1 @@
+usr/lib/*/girepository-1.0
diff --git a/debian/libgxml-0.install.in b/debian/libgxml-0.install.in
new file mode 100644
index 0000000..0d08c54
--- /dev/null
+++ b/debian/libgxml-0.install.in
@@ -0,0 +1 @@
+usr/lib/*/libgxml-@API_VERSION@.so.*
diff --git a/debian/libgxml-dev.install.in b/debian/libgxml-dev.install.in
new file mode 100644
index 0000000..138ce66
--- /dev/null
+++ b/debian/libgxml-dev.install.in
@@ -0,0 +1,6 @@
+usr/lib/*/libgxml-@API_VERSION@.so
+usr/lib/*/libgxml-@API_VERSION@.a
+usr/lib/*/pkgconfig/
+usr/include/gxml-@API_VERSION@/gxml
+usr/share/vala
+usr/share/gir-1.0
diff --git a/debian/meson.build b/debian/meson.build
new file mode 100644
index 0000000..1f0070a
--- /dev/null
+++ b/debian/meson.build
@@ -0,0 +1,39 @@
+conf = configuration_data()
+conf.set ('API_VERSION', API_VERSION)
+conf.set ('VERSION', PROJECT_VERSION)
+
+configure_file(input : 'changelog.in',
+       output : 'changelog',
+       configuration : conf,
+       install : true,
+       install_dir : meson.current_source_dir())
+
+configure_file(input : 'control.in',
+       output : 'control',
+       configuration : conf,
+       install : true,
+       install_dir : meson.current_source_dir())
+
+configure_file(input : 'copyright.in',
+       output : 'copyright',
+       configuration : conf,
+       install : true,
+       install_dir : meson.current_source_dir())
+       
+configure_file(input : 'gir1.2-gxml.install.in',
+       output : 'gir1.2-@0@-install'.format(API_VERSION),
+       configuration : conf,
+       install : true,
+       install_dir : meson.current_source_dir())
+       
+configure_file(input : 'libgxml-0.install.in',
+       output : 'libgxml-@0@-0-install'.format(API_VERSION),
+       configuration : conf,
+       install : true,
+       install_dir : meson.current_source_dir())
+
+configure_file(input : 'libgxml-dev.install.in',
+       output : 'libgxml-@0@-dev-install'.format(API_VERSION),
+       configuration : conf,
+       install : true,
+       install_dir : meson.current_source_dir())
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..76b2b2a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+override_dh_auto_clean:
+       rm -fr build
+
+override_dh_auto_configure:
+       mkdir -p build
+       cd build && meson .. --prefix=/usr
+
+override_dh_auto_build:
+       cd build && ninja -v
+
+override_dh_auto_test:
+#      cd build && ninja test
+
+override_dh_auto_install:
+       DESTDIR=${CURDIR}/debian/tmp ninja -Cbuild -v install
+
+%:
+       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/meson.build b/meson.build
index d583b83..0526939 100644
--- a/meson.build
+++ b/meson.build
@@ -23,3 +23,4 @@ subdir('gxml')
 subdir('docs')
 subdir('test')
 subdir('examples')
+subdir('debian')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]