]> www.infradead.org Git - pidgin-chime.git/commitdiff
Initial attempt at debian packaging
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 31 Jan 2018 12:18:48 +0000 (12:18 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 31 Jan 2018 12:58:04 +0000 (12:58 +0000)
Makefile.am
debian/changelog.in [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/pidgin-chime.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/watch [new file with mode: 0644]

index 5793262ddc7a49823b534dd9c0c7d89f2c165c44..219680a3320534f8e32201af16f721839cc214c9 100644 (file)
@@ -46,3 +46,12 @@ chime-call-transport.c chime-call-audio.c chime-call.c: chime-call-transport.h
        $(PROTOC) $< --c_out .
 
 EXTRA_DIST = COPYING.LGPL README
+
+deb-%: debian/changelog
+       fakeroot debian/rules $(patsubst deb-%,%,$@)
+
+debian/changelog: debian/changelog.in
+       @COMMITDESC=$$(git describe --tags | sed 's/v\(.*\)-g[0-9a-f]\+/\1/'); \
+        COMMITDATE=$$(git show -s --format=%cD); \
+        sed -e "s/%COMMITDESC%/$$COMMITDESC/" -e "s/%COMMITDATE%/$$COMMITDATE/" $< > $@
+
diff --git a/debian/changelog.in b/debian/changelog.in
new file mode 100644 (file)
index 0000000..f099cee
--- /dev/null
@@ -0,0 +1,5 @@
+pidgin-chime (%COMMITDESC%) xenial; urgency=low
+
+  * Build from git snapshot
+
+ -- David Woodhouse <dwmw@amazon.com>  %COMMITDATE%
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..b9d6ec6
--- /dev/null
@@ -0,0 +1,45 @@
+Source: pidgin-chime
+Section: net
+Priority: optional
+Maintainer: David Woodhouse <dwmw@amazon.co.uk>
+Homepage: https://code.amazon.com/pkg/PurpleChime
+Standards-Version: 3.9.7
+Build-Depends: debhelper (>= 9),
+              autoconf,
+              automake,
+              libtool,
+              libpurple-dev,
+              pidgin-dev,
+              autotools-dev,
+              libsoup2.4-dev,
+              libjson-glib-dev,
+              libopus-dev,
+              libfarstream-0.2-dev,
+              libprotobuf-c-dev,
+              protobuf-c-compiler,
+              libmarkdown2-dev,
+              evolution-dev,
+              libebook1.2-dev,
+              libecal1.2-dev,
+              evolution-data-server-dev,
+              graphicsmagick-imagemagick-compat
+
+Package: pidgin-chime
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libfarstream-0.2-5 (>= 0.2.7)
+Description: Pidgin plugin for AWS Chime communication platform
+ This package provides the libpurple plugin that implements the
+ protocols to connect with the Chime communication services provided by
+ Amazon Web Services (http://chime.aws).
+
+Package: pidgin-chime-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends}, pidgin-chime (= ${binary:Version})
+Description: debugging symbols of pidgin-chime
+ This package provides the libpurple plugin that implements the
+ protocols to connect with the Chime communication services provided by
+ Amazon Web Services (http://chime.aws).
+ .
+ Debugging symbols.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..e4b2d62
--- /dev/null
@@ -0,0 +1,12 @@
+Format: http://dep.debian.net/deps/dep5
+Source: https://github.com/awslabs/PRIVATE-purple-chime
+
+Files: *
+Copyright: 2017, David Woodhouse <dwmw@amazon.co.uk>
+License: LGPL-2.1
+ This is proprietary unpublished source code of Amazon. However, the
+ intent is that it should be *possible* to release it under LGPL.
+ .
+ Therefore, do not incorporate any code into this repository which may
+ not be licensed under the terms of the GNU LGPL v2.1, as stated in the
+ file `/usr/share/common-licenses/LGPL-2.1'.
diff --git a/debian/pidgin-chime.install b/debian/pidgin-chime.install
new file mode 100644 (file)
index 0000000..3214e17
--- /dev/null
@@ -0,0 +1,5 @@
+usr/lib/purple-2/*.so usr/lib/purple-2
+usr/share/* usr/share
+usr/lib/x86_64-linux-gnu/farstream-0.2/* usr/lib/x86_64-linux-gnu/farstream-0.2
+usr/lib/evolution/modules/* usr/lib/evolution/modules
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..e94445a
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+       dh $@ --with autotools-dev
+
+override_dh_auto_configure:
+       ./autogen.sh
+       dh_auto_configure
+
+override_dh_install:
+       dh_install
+       dh_pidgin
+
+override_dh_strip:
+       dh_strip --dbg-package=pidgin-chime-dbg
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..4640904
--- /dev/null
@@ -0,0 +1 @@
+# TODO