Skip to content

Commit

Permalink
debian: initial packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed May 20, 2017
1 parent 38abd81 commit d7671e4
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion Makefile.builder
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

RPM_SPEC_FILES := rpm_spec/qubes-core-admin-client.spec
DEBIAN_BUILD_DIRS := debian
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
qubes-core-admin-client (4.0.0-1) unstable; urgency=low

* Initial release

-- Marek Marczykowski-Górecki <[email protected]> Sat, 20 May 2017 00:13:54 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
46 changes: 46 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Source: qubes-core-admin-client
Section: admin
Priority: optional
Maintainer: Marek Marczykowski-Górecki <[email protected]>
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 changes: 41 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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 <[email protected]>
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 changes: 48 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)

0 comments on commit d7671e4

Please sign in to comment.