Skip to content

Commit

Permalink
Merge branch 'lamby/packaging'
Browse files Browse the repository at this point in the history
  • Loading branch information
JedMeister committed Aug 16, 2017
2 parents 26b9915 + 24b8281 commit c201a49
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 36 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
@@ -0,0 +1,12 @@
sudo: required
language: generic

services:
- docker

script:
- wget -O- http://travis.debian.net/script.sh | sh -

branches:
except:
- /^debian\/\d/
2 changes: 1 addition & 1 deletion debian/compat
@@ -1 +1 @@
5
10
16 changes: 12 additions & 4 deletions debian/control
Expand Up @@ -2,11 +2,19 @@ Source: turnkey-pylib
Section: python
Priority: optional
Maintainer: Alon Swartz <alon@turnkeylinux.org>
Build-Depends: debhelper (>> 4.2.0), python (>= 2.4), dpkg-dev
Standards-Version: 3.6.1
Build-Depends:
debhelper (>= 10),
python (>= 2.4),
python-all (>= 2.6.6-3~),
python-setuptools,
X-Python-Version: >= 2.6
Standards-Version: 4.0.0

Package: turnkey-pylib
Architecture: any
Depends: python (>= 2.4)
Suggests: python-profiler
Depends:
${misc:Depends},
${python:Depends},
Suggests:
python-profiler,
Description: TurnKey GNU/Linux standard Python library
1 change: 0 additions & 1 deletion debian/copyright
Expand Up @@ -6,4 +6,3 @@ turnkey-pylib 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 3 of the License, or (at
your option) any later version.

33 changes: 3 additions & 30 deletions debian/rules
@@ -1,31 +1,4 @@
#! /usr/bin/make -f
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

progname=$(shell awk '/^Source/ {print $$2}' debian/control)
prefix=debian/$(progname)/usr

build:
mkdir -p $(prefix)

clean:
dh_clean

install: build
dh_clean -k
python setup.py install --prefix $(prefix) --install-layout=deb

binary-indep: build install

binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs docs/
dh_installdeb -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
%:
dh $@ --with python2 --buildsystem=pybuild
1 change: 1 addition & 0 deletions debian/source/format
@@ -0,0 +1 @@
3.0 (native)
1 change: 1 addition & 0 deletions debian/turnkey-pylib.docs
@@ -0,0 +1 @@
docs/*

0 comments on commit c201a49

Please sign in to comment.