Projet

Général

Profil

0001-debian-build-a-python3-hobo-package-35493.patch

Frédéric Péters, 20 août 2019 18:08

Télécharger (3,3 ko)

Voir les différences:

Subject: [PATCH] debian: build a python3-hobo package (#35493)

 debian/control               | 24 ++++++++++++++++++++++--
 debian/python-hobo.install   |  1 -
 debian/python3-hobo.docs     |  2 ++
 debian/python3-hobo.triggers |  1 +
 debian/rules                 | 11 ++++++-----
 5 files changed, 31 insertions(+), 8 deletions(-)
 create mode 100644 debian/python3-hobo.docs
 create mode 100644 debian/python3-hobo.triggers
debian/control
2 2
Maintainer: Jérôme Schneider <jschneider@entrouvert.com>
3 3
Section: python
4 4
Priority: optional
5
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), python-django, debhelper (>= 9), dh-python, dh-systemd
5
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), python3-all, python-django, python3-django, debhelper (>= 9), dh-python, dh-systemd
6 6
Standards-Version: 3.9.1
7
X-Python-Version: >= 2.7
8 7

  
9 8
Package: python-hobo
10 9
Architecture: all
......
27 26
    memcached
28 27
Description: Rapid Remote Deployment python module
29 28

  
29
Package: python3-hobo
30
Architecture: all
31
Depends: ${misc:Depends},
32
    ${python3:Depends},
33
    python3-django (>= 1:1.11),
34
    python3-celery (>= 3.1.13),
35
    python3-requests,
36
    python3-raven,
37
    python3-graypy,
38
    python3-apt,
39
    python3-memcache,
40
    python3-prometheus-client,
41
    python3-djangorestframework,
42
    python3-dnspython,
43
    python3-systemd
44
Recommends:
45
    python3-gadjo,
46
    python3-django-mellon (>= 1.2.22.26),
47
    memcached
48
Description: Rapid Remote Deployment python 3 module
49

  
30 50
Package: hobo
31 51
Architecture: all
32 52
Depends: python-hobo (= ${binary:Version}),
debian/python-hobo.install
1
usr/lib/
2 1
debian/debian_config_common.py     /usr/lib/hobo
3 2
debian/debian_config_settings_d.py /usr/lib/hobo
debian/python3-hobo.docs
1
COPYING
2
README
debian/python3-hobo.triggers
1
activate hobo-redeploy
debian/rules
1 1
#!/usr/bin/make -f
2 2
# -*- makefile -*-
3 3

  
4
# Uncomment this to turn on verbose mode.
5
#export DH_VERBOSE=1
4
export PYBUILD_NAME := hobo
5
export DEB_BUILD_OPTIONS=nocheck
6 6

  
7 7
PYTHON_HOBO_DIR=$(CURDIR)/debian/python-hobo
8
PYTHON3_HOBO_DIR=$(CURDIR)/debian/python3-hobo
8 9

  
9 10
%:
10
	dh $@ --with python2,systemd
11
	dh $@ --with python2,python3,systemd --buildsystem=pybuild
11 12

  
12 13
override_dh_install:
13 14
	dh_install
14
	mv $(CURDIR)/debian/tmp/usr/bin/manage.py $(PYTHON_HOBO_DIR)/usr/lib/hobo/manage.py
15

  
15
	mv $(PYTHON_HOBO_DIR)/usr/bin/manage.py $(PYTHON_HOBO_DIR)/usr/lib/hobo/manage.py
16
	rm $(PYTHON3_HOBO_DIR)/usr/bin/manage.py
16
-