Browse Source

debian: initial packaging

Marek Marczykowski-Górecki 7 years ago
parent
commit
d7671e4856
8 changed files with 152 additions and 2 deletions
  1. 9 1
      .travis.yml
  2. 1 1
      Makefile.builder
  3. 5 0
      debian/changelog
  4. 1 0
      debian/compat
  5. 46 0
      debian/control
  6. 41 0
      debian/copyright
  7. 48 0
      debian/rules
  8. 1 0
      debian/source/format

+ 9 - 1
.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=

+ 1 - 1
Makefile.builder

@@ -1,2 +1,2 @@
-
 RPM_SPEC_FILES := rpm_spec/qubes-core-admin-client.spec
+DEBIAN_BUILD_DIRS := debian

+ 5 - 0
debian/changelog

@@ -0,0 +1,5 @@
+qubes-core-admin-client (4.0.0-1) unstable; urgency=low
+
+  * Initial release 
+
+ -- Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>  Sat, 20 May 2017 00:13:54 +0200

+ 1 - 0
debian/compat

@@ -0,0 +1 @@
+9

+ 46 - 0
debian/control

@@ -0,0 +1,46 @@
+Source: qubes-core-admin-client
+Section: admin
+Priority: optional
+Maintainer: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
+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

+ 41 - 0
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: <https://www.qubes-os.org/>
+
+Files: *
+Copyright: 2017 Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
+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 <http://www.gnu.org/licenses/>
+ .
+ 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 <marmarek@invisiblethingslab.com> 
+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 <http://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".

+ 48 - 0
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)
+
+
+
+

+ 1 - 0
debian/source/format

@@ -0,0 +1 @@
+3.0 (quilt)