From e7239cad4850930fef741ab3fa4f0edb25faaf47 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 20 Oct 2021 11:17:51 -0400 Subject: [PATCH] Tests debian packaging --- Makefile.am | 20 ++++++++++++++++++++ debian/changelog | 5 +++++ debian/control | 14 ++++++++++++++ debian/copyright | 29 +++++++++++++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright diff --git a/Makefile.am b/Makefile.am index 1de623d..544618f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,3 +38,23 @@ changelog: --strip-cherry-pick \ >ChangeLog; \ fi + +# Create debian package +TMP_DIR = deb +pkg-deb: + - rm -rf $(TMP_DIR) + mkdir -p $(TMP_DIR) + cp $(PACKAGE)-$(VERSION).tar.bz2 $(TMP_DIR)/ + tar --directory $(TMP_DIR)/ \ + -xjf $(TMP_DIR)/$(PACKAGE)-$(VERSION).tar.bz2 + cd $(TMP_DIR)/$(PACKAGE)-$(VERSION)/; \ + dh_make --yes --single --copyright gpl2 -e hugo@hugovil.com -f \ + ../$(PACKAGE)-$(VERSION).tar.bz2 + cp debian/changelog debian/control \ + debian/copyright $(TMP_DIR)/$(PACKAGE)-$(VERSION)/debian/ + cd $(TMP_DIR)/$(PACKAGE)-$(VERSION)/; \ + rm debian/README.Debian debian/*.ex debian/*.EX; \ + ./configure; \ + dpkg-buildpackage -rfakeroot; \ + mv ../*.deb $(PWD)/ + rm -r $(TMP_DIR); diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..957389c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +hvclock (1.2.1-1) unstable; urgency=medium + + * Initial Debian release + + -- Hugo Villeneuve Wed, 20 Oct 2021 10:54:14 -0400 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9e4d711 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: hvclock +Section: gnustep +Priority: optional +Maintainer: Hugo Villeneuve +Build-Depends: debhelper-compat (= 13), autotools-dev +Standards-Version: 4.5.1 +Homepage: +Vcs-Git: http://gitweb.hugovil.com/?p=hvclock.git;a=summary +Rules-Requires-Root: no + +Package: hvclock +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Dockable analog clock and calendar diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..cda0405 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: hvclock +Upstream-Contact: +Source: + +Files: * +Copyright: 2021 Hugo Villeneuve +License: GPL-2.0+ + +Files: debian/* +Copyright: 2021 Hugo Villeneuve +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". -- 2.20.1