From 6117e6e335ace7361c5025ceb8c5b7197c7ad245 Mon Sep 17 00:00:00 2001
From: Luis Araujo <luis.araujo@collabora.co.uk>
Date: Mon, 10 Dec 2018 22:15:23 +0800
Subject: [PATCH] Add debian packaging files

This commit adds the debian directory with the required files
to create the deb package.

It also updates the setup.py version to the standard versioning
scheme.

Signed-off-by: Luis Araujo <luis.araujo@collabora.co.uk>
---
 debian/apertis-test-cases.install |  1 +
 debian/changelog                  |  5 +++++
 debian/compat                     |  1 +
 debian/control                    | 22 ++++++++++++++++++++++
 debian/copyright                  | 24 ++++++++++++++++++++++++
 debian/rules                      |  5 +++++
 debian/source/format              |  1 +
 setup.py                          |  2 +-
 8 files changed, 60 insertions(+), 1 deletion(-)
 create mode 100644 debian/apertis-test-cases.install
 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/debian/apertis-test-cases.install b/debian/apertis-test-cases.install
new file mode 100644
index 0000000..75cb853
--- /dev/null
+++ b/debian/apertis-test-cases.install
@@ -0,0 +1 @@
+test-cases/* /usr/share/apertis-test-cases/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3ea4b3d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+apertis-test-cases (1.1812.0) 18.12; urgency=medium
+
+  * Initial release.
+
+ -- Luis Araujo <luis.araujo@collabora.co.uk>  Fri, 07 Dec 2018 13:41:08 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0d946a0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,22 @@
+Source: apertis-test-cases
+Maintainer: Luis Araujo <luis.araujo@collabora.co.uk>
+Section: misc
+Priority: optional
+Standards-Version: 3.9.8
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ python3-all-dev,
+ python3-setuptools,
+ python3-jinja2,
+ python3-yaml
+Vcs-Git: https://gitlab.apertis.org/tests/apertis-test-cases.git
+
+Package: apertis-test-cases
+Architecture: all
+Depends: 
+ ${misc:Depends},
+ ${python:Depends},
+ ${python3:Depends}
+Description: Apertis test cases and renderer
+ The Apertis test cases and renderer.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a9a98a3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,24 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: apertis-test-cases
+Source: https://gitlab.apertis.org
+
+Files: *
+Copyright: 2018 Collabora Ltd.
+License: LGPL2.1+
+
+License: LGPL-2.1+
+ This library 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.
+ .
+ This library 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
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU Lesser General Public License
+ can be found in /usr/share/common-licenses/LGPL-2.1 file.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f593c63
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+export DH_VERBOSE=1
+
+%:
+	dh $@ --with=python3 --buildsystem=pybuild
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)
diff --git a/setup.py b/setup.py
index e779139..6290953 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ from setuptools import setup, find_packages
 
 setup(
     name='atc',
-    version='1.0',
+    version='1.1812.0',
     license='LGPL-2.1+',
     description='Apertis Test Cases Renderer',
     author='Luis Araujo',
-- 
GitLab