Commit ab0168e3 authored by Guido Gunther's avatar Guido Gunther

Add Debian packaging

parent ffd07fe9
This package is maintained with git-buildpackage(1). It follows DEP-14
for branch naming (e.g. using debian/sid for the current version
in Debian unstable).
It uses pristine-tar(1) to store enough information in git to generate
bit identical tarballs when building the package without having
downloaded an upstream tarball first.
When working with patches it is recommended to use "gbp pq import" to
import the patches, modify the source and then use "gbp pq export
--commit" to commit the modifications.
The changelog is generated using "gbp dch" so if you submit any
changes don't bother to add changelog entries but rather provide
a nice git commit message that can then end up in the changelog.
It is recommended to build the package with pbuilder using:
gbp buildpackage --git-pbuilder
For information on how to set up a pbuilder environment see the
git-pbuilder(1) manpage. In short:
DIST=sid git-pbuilder create
gbp clone <project-url>
cd <project>
gbp buildpackage --git-pbuilder
-- Guido Günther <agx@sigxcpu.org>, Wed, 2 Dec 2015 18:51:15 +0100
libhandy (0.0~git20180402) unstable; urgency=medium
* Initial release
-- Guido Günther <agx@sigxcpu.org> Mon, 02 Apr 2018 12:17:44 +0200
Source: libhandy
Section: libs
Priority: optional
Maintainer: Guido Günther <agx@sigxcpu.org>
Build-Depends:
debhelper (>= 11),
gtk-doc-tools,
libgirepository1.0-dev,
libgnome-desktop-3-dev,
libgtk-3-dev,
meson,
pkg-config,
valac (>= 0.20),
# to run the tests
xvfb,
xauth,
Standards-Version: 4.1.3
Homepage: https://code.puri.sm/Librem5/libhandy
Package: libhandy-0.0-0
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
${shlibs:Depends},
Description: Library with GTK+ widgets for mobile phones
libhandy provides GTK+ widgets and GObjects to ease developing
applications for mobile phones.
.
This package contains the shared library.
Package: libhandy-0.0-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends:
${misc:Depends},
gir1.2-handy-0.0 (= ${binary:Version}),
libhandy-0.0-0 (= ${binary:Version}),
Recommends: pkg-config
Description: Development files for libhandy
libhandy provides GTK+ widgets and GObjects to ease developing
applications for mobile phones.
.
This package contains the development files and documentation.
Package: gir1.2-handy-0.0
Architecture: any
Multi-Arch: same
Section: introspection
Depends:
${gir:Depends},
${misc:Depends},
${shlibs:Depends},
Description: GObject introspection files for libhandy
libhandy provides GTK+ widgets and GObjects to ease developing
applications for mobile phones.
.
This package contains the GObject-introspection data in binary typelib format.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libhandy
Source: https://code.puri.sm/Librem5/libhandy
Files: *
Copyright: 2018 Purism SPC
License: LGPL-2.1+
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 3 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 3 can be found in "/usr/share/common-licenses/GPL-3".
usr/lib/*/girepository-1.0/*
usr/lib/*/libhandy-0.0.so.*
usr/include/*
usr/lib/*/libhandy-0.0.so
usr/lib/*/pkgconfig/*
usr/share/gir-1.0/*
usr/share/glade/catalogs/
usr/share/gtk-doc/
usr/share/vala/vapi/
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ -- -B_build
override_dh_auto_configure:
dh_auto_configure -- -Dgtk_doc=true
override_dh_auto_build:
dh_auto_build
LC_ALL=C.UTF-8 ninja -C _build meson-libhandy-doc
override_dh_auto_test:
xvfb-run ninja -C _build test
#!/usr/bin/make -f
CFLAGS=$(shell pkg-config --cflags libhandy-0.0)
LIBS=$(shell pkg-config --libs libhandy-0.0)
a.out: debian/tests/build-test.c
gcc $(CFLAGS) $< $(LIBS)
@echo "Build test of $< succeeded"
@rm -f a.out
#include <gtk/gtk.h>
#define HANDY_USE_UNSTABLE_API
#include <libhandy-0.0/handy.h>
int
main (int argc,
char **argv)
{
hdy_dialer_new ();
}
Tests: build-test
Depends: libhandy-0.0-dev, build-essential, pkg-config
Restrictions: allow-stderr
usr/lib/*/girepository-1.0/*
usr/lib/*/libhandy-0.0.so.*
usr/lib/*/libhandy-0.0.so
usr/include/*
usr/lib/*/pkgconfig/*
usr/share/gir-1.0/*
usr/share/vala/vapi/
usr/share/gtk-doc/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment