From d7671e48561b82146a0c037c881f61fc9a024489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 20 May 2017 02:32:08 +0200 Subject: [PATCH] debian: initial packaging --- .travis.yml | 10 ++++++++- Makefile.builder | 2 +- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 46 ++++++++++++++++++++++++++++++++++++++++++ debian/copyright | 41 +++++++++++++++++++++++++++++++++++++ debian/rules | 48 ++++++++++++++++++++++++++++++++++++++++++++ debian/source/format | 1 + 8 files changed, 152 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.travis.yml b/.travis.yml index 906c420..d383c19 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,15 @@ after_success: jobs: include: - env: DIST_DOM0=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY= - python: '2.7' + python: '3.5' + - env: DISTS_VM=fc24 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY= + python: '3.5' + - env: DISTS_VM=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY= + python: '3.5' + - env: DISTS_VM=jessie USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY= + python: '3.4' + - env: DISTS_VM=stretch USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY= + python: '3.5' - stage: deploy python: '3.5' env: DIST_DOM0=fc25 TESTS_ONLY= diff --git a/Makefile.builder b/Makefile.builder index 14495f2..445bb78 100644 --- a/Makefile.builder +++ b/Makefile.builder @@ -1,2 +1,2 @@ - RPM_SPEC_FILES := rpm_spec/qubes-core-admin-client.spec +DEBIAN_BUILD_DIRS := debian diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7d9a11f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +qubes-core-admin-client (4.0.0-1) unstable; urgency=low + + * Initial release + + -- Marek Marczykowski-Górecki Sat, 20 May 2017 00:13:54 +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..819ec0a --- /dev/null +++ b/debian/control @@ -0,0 +1,46 @@ +Source: qubes-core-admin-client +Section: admin +Priority: optional +Maintainer: Marek Marczykowski-Górecki +Build-Depends: + debhelper (>= 9), + dh-python, + python-all, + python-setuptools, + python3-all, + python3-setuptools, + python3-sphinx, + python3-docutils, + python3-dbus, +Standards-Version: 3.9.5 +Homepage: https://www.qubes-os.org/ +#Vcs-Git: git://github.com/QubesOS/qubes-core-admin-client.git +#Vcs-Browser: https://github.com/QubesOS/qubes-core-admin-client +X-Python-Version: >= 2.7 +X-Python3-Version: >= 3.4 + +Package: qubes-core-admin-client +Architecture: any +Depends: + python3-qubesadmin, + ${python:Depends}, + ${python3:Depends}, + ${misc:Depends} +Description: Qubes administrative tools + Tools to manage Qubes system using Admin API + +Package: python-qubesadmin +Architecture: any +Depends: + ${python:Depends}, +Provides: + ${python:Provides}, +Description: Python 2 bindings for Qubes Admin API + Python 2 client side module for Qubes Admin API + +Package: python3-qubesadmin +Architecture: any +Depends: + ${python3:Depends}, +Description: Python 3 bindings for Qubes Admin API + Python 3 client side module for Qubes Admin API diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3222d6b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,41 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: qubes-desktop-linux-common +Source: + +Files: * +Copyright: 2017 Marek Marczykowski-Górecki +License: LGPL-2.1+ + This package 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 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 Lesser General + Public License version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1". + +Files: debian/* +Copyright: 2017 Marek Marczykowski-Górecki +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 + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b7e7fcf --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 +export PYBUILD_NAME = qubesadmin + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +# 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 + + +# main packaging script based on dh7 syntax +%: + dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild + +override_dh_auto_build: export http_proxy=127.0.0.1:9 +override_dh_auto_build: export https_proxy=127.0.0.1:9 +override_dh_auto_build: + dh_auto_build + PYTHONPATH=. sphinx-build -N -bhtml doc build/html + PYTHONPATH=. sphinx-build -N -bman doc build/man + +override_dh_auto_install: + dh_auto_install + mkdir -p debian/qubes-core-admin-client/usr/bin + mv debian/python3-qubesadmin/usr/bin/* debian/qubes-core-admin-client/usr/bin/ + install -d debian/qubes-core-admin-client/usr/share/man/man1 + install -m 0644 build/man/* \ + debian/qubes-core-admin-client/usr/share/man/man1/ + +# debmake generated override targets +# This is example for Cmake (See http://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)