From 388c0071eef5e880a772a088d5276ea5a270856c Mon Sep 17 00:00:00 2001 From: Ivan Udovichenko Date: Thu, 29 Sep 2016 02:26:12 +0300 Subject: [PATCH] Initial package. --- debian/changelog | 5 + debian/compat | 1 + debian/control | 168 +++++++++++++++++++++++++++++++ debian/copyright | 28 ++++++ debian/debian_control_vars | 1 + debian/gbp.conf | 8 ++ debian/glare-api.init.in | 18 ++++ debian/glare-api.install | 1 + debian/glare-common.install | 3 + debian/python-glare-doc.doc-base | 9 ++ debian/python-glare.install | 1 + debian/rules | 53 ++++++++++ debian/source/format | 1 + debian/source/options | 2 + debian/ubuntu_control_vars | 0 debian/watch | 3 + 16 files changed, 302 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/debian_control_vars create mode 100644 debian/gbp.conf create mode 100644 debian/glare-api.init.in create mode 100644 debian/glare-api.install create mode 100644 debian/glare-common.install create mode 100644 debian/python-glare-doc.doc-base create mode 100644 debian/python-glare.install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 debian/ubuntu_control_vars create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6ba7d28 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +glare (0.1.0-1) unstable; urgency=medium + + * Initial release. (Closes: XXXXX) + + -- Ivan Udovichenko Thu, 29 Sep 2016 03:43:05 +0300 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7d88cec --- /dev/null +++ b/debian/control @@ -0,0 +1,168 @@ +Source: glare +Section: net +Priority: extra +Maintainer: PKG OpenStack +Uploaders: Ivan Udovichenko , + Thomas Goirand , +Build-Depends: debhelper (>= 9), + dh-python, + dh-systemd, + openstack-pkg-tools (>= 52~), + python-all, + python-pbr (>= 1.8), + python-setuptools, + python-sphinx (>= 1.2.1), +Build-Depends-Indep: python-alembic (>= 0.8.4), + python-babel (>= 2.3.4), + python-bandit (>= 1.1.0), + python-coverage (>= 3.6), + python-eventlet (>= 0.18.2), + python-fixtures (>= 3.0.0), + python-futurist (>= 0.11.0), + python-glance-store (>= 0.18.0), + python-hacking (>= 0.10.0), + python-httplib2 (>= 0.7.5), + python-iso8601 (>= 0.1.11), + python-jsonpatch (>= 1.1), + python-jsonschema (>= 2.0.0), + python-keystoneauth1 (>= 2.10.0), + python-keystonemiddleware (>= 4.2.0), + python-microversion-parse (>= 0.1.2), + python-mock (>= 2.0), + python-monotonic (>= 0.6), + python-mox3 (>= 0.7.0), + python-mysqldb (>= 0.6.2), + python-openssl (>= 0.14), + python-os-api-ref (>= 1.0.0), + python-os-testr (>= 0.7.0), + python-oslo.concurrency (>= 3.8.0), + python-oslo.config (>= 1:3.14.0), + python-oslo.context (>= 2.9.0), + python-oslo.db (>= 4.10.0), + python-oslo.i18n (>= 2.1.0), + python-oslo.log (>= 3.11.0), + python-oslo.messaging (>= 5.2.0), + python-oslo.middleware (>= 3.0.0), + python-oslo.policy (>= 1.9.0), + python-oslo.serialization (>= 1.10.0), + python-oslo.service (>= 1.10.0), + python-oslo.utils (>= 3.16.0), + python-oslo.versionedobjects (>= 1.13.0), + python-oslosphinx (>= 2.5.0), + python-oslotest (>= 1:1.10.0), + python-osprofiler (>= 1.4.0), + python-paste, + python-pastedeploy (>= 1.5.0), + python-pbr (>= 1.8), + python-psutil (>= 1.1.1), + python-psycopg2 (>= 2.5), + python-sendfile (>= 2.0.0), + python-swiftclient (>= 2.2.0), + python-qpid, + python-reno (>= 1.8.0), + python-requests (>= 2.10.0), + python-retrying (>= 1.2.3), + python-routes (>= 1.12.3), + python-semantic-version (>= 2.3.1), + python-six (>= 1.9.0), + python-sphinx (>= 1.2.1), + python-sqlalchemy (>= 1.0.10), + python-testrepository (>= 0.0.18), + python-testresources (>= 0.2.4), + python-testscenarios (>= 0.4), + python-testtools (>= 1.4.0), + python-webob (>= 1.2.3), + python-wsme (>= 0.8), + python-xattr (>= 0.4), +Standards-Version: 3.9.8 +Vcs-Browser: https://git.openstack.org/cgit/openstack/deb-glare?h=debian%2Fnewton +Vcs-Git: https://git.openstack.org/openstack/deb-glare -b debian/newton +Homepage: https://github.com/openstack/glare + +Package: python-glare +Architecture: all +Section: python +Depends: python-alembic (>= 0.8.4), + python-eventlet (>= 0.18.2), + python-futurist (>= 0.11.0), + python-glance-store (>= 0.18.0), + python-httplib2 (>= 0.7.5), + python-iso8601 (>= 0.1.11), + python-jsonpatch (>= 1.1), + python-jsonschema (>= 2.0.0), + python-keystoneauth1 (>= 2.10.0), + python-keystonemiddleware (>= 4.2.0), + python-microversion-parse (>= 0.1.2), + python-monotonic (>= 0.6), + python-oslo.concurrency (>= 3.8.0), + python-oslo.config (>= 1:3.14.0), + python-oslo.context (>= 2.9.0), + python-oslo.db (>= 4.10.0), + python-oslo.i18n (>= 2.1.0), + python-oslo.log (>= 3.11.0), + python-oslo.messaging (>= 5.2.0), + python-oslo.middleware (>= 3.0.0), + python-oslo.policy (>= 1.9.0), + python-oslo.serialization (>= 1.10.0), + python-oslo.service (>= 1.10.0), + python-oslo.utils (>= 3.16.0), + python-oslo.versionedobjects (>= 1.13.0), + python-osprofiler (>= 1.4.0), + python-paste, + python-pastedeploy (>= 1.5.0), + python-pbr (>= 1.8), + python-openssl (>= 0.14), + python-retrying (>= 1.2.3), + python-routes (>= 1.12.3), + python-semantic-version (>= 2.3.1), + python-six (>= 1.9.0), + python-sqlalchemy (>= 1.0.10), + python-webob (>= 1.2.3), + python-wsme (>= 0.8), + ${misc:Depends}, + ${python:Depends}, +Description: Artifact Repository - Python library + The Glance project provides services for discovering, registering, and + retrieving virtual machine images over the cloud. They may be stand-alone + services, or may be used to deliver images from object stores, such as + OpenStack's Swift service, to Nova's compute nodes. + . + This package contains the Python libraries. + +Package: glare-api +Architecture: all +Depends: glare-common (= ${source:Version}), + ${misc:Depends}, + ${ostack-lsb-base}, + ${python:Depends}, +Description: Artifact Repository - API server + The Glance project provides services for discovering, registering, and + retrieving virtual machine images over the cloud. They may be stand-alone + services, or may be used to deliver images from object stores, such as + OpenStack's Swift service, to Nova's compute nodes. + . + This package contains the Glance API server. + +Package: glare-common +Architecture: all +Depends: python-glare (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, +Description: Artifact Repository - common files + Glare (from GLare Artifact REpository) is a service that provides access + to a unified catalog of structured meta-information as well as related + binary data (these structures are also called 'artifacts'). + . + This package contains common files for Glance. + +Package: python-glare-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, + ${sphinxdoc:Depends}, +Description: OpenStack Image Registry and Delivery Service - Documentation + Glare (from GLare Artifact REpository) is a service that provides access + to a unified catalog of structured meta-information as well as related + binary data (these structures are also called 'artifacts'). + . + This package contains the documentation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7355e18 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: glare +Source: https://github.com/openstack/glare + +Files: * +Copyright: (c) 2016, Mikhail Fedosin +License: Apache-2 + +Files: debian/* +Copyright: (c) 2016, Ivan Udovichenko + (c) 2016, Thomas Goirand +License: Apache-2 + +License: Apache-2 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian-based systems the full text of the Apache version 2.0 license + can be found in `/usr/share/common-licenses/Apache-2.0'. diff --git a/debian/debian_control_vars b/debian/debian_control_vars new file mode 100644 index 0000000..e736811 --- /dev/null +++ b/debian/debian_control_vars @@ -0,0 +1 @@ +ostack-lsb-base= lsb-base (>= 3.0-6) diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..8cb45b9 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,8 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/newton +upstream-tag = %(version)s +compression = xz + +[buildpackage] +export-dir = ../build-area/ diff --git a/debian/glare-api.init.in b/debian/glare-api.init.in new file mode 100644 index 0000000..0daeb2f --- /dev/null +++ b/debian/glare-api.init.in @@ -0,0 +1,18 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: glance-api +# Required-Start: $network $local_fs $remote_fs $syslog +# Required-Stop: $remote_fs +# Should-Start: postgresql mysql keystone ntp rabbitmq-server +# Should-Stop: postgresql mysql keystone ntp rabbitmq-server +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Glance API server +# Description: Frontend Glance API server +### END INIT INFO + +# Author: Thomas Goirand +DESC="OpenStack Artifact Repository API" +PROJECT_NAME=glare +NAME=${PROJECT_NAME}-api +CONFIG_FILE=/etc/${PROJECT_NAME}/glare-api.conf diff --git a/debian/glare-api.install b/debian/glare-api.install new file mode 100644 index 0000000..f0979dc --- /dev/null +++ b/debian/glare-api.install @@ -0,0 +1 @@ +usr/bin/glare-api diff --git a/debian/glare-common.install b/debian/glare-common.install new file mode 100644 index 0000000..70c6efc --- /dev/null +++ b/debian/glare-common.install @@ -0,0 +1,3 @@ +usr/bin/glare-db-manage +usr/etc/glare/glare-paste.ini etc/glare +usr/etc/glare/glare-swift.conf.sample etc/glare diff --git a/debian/python-glare-doc.doc-base b/debian/python-glare-doc.doc-base new file mode 100644 index 0000000..6d37b1b --- /dev/null +++ b/debian/python-glare-doc.doc-base @@ -0,0 +1,9 @@ +Document: glare-doc +Title: Glare Documentation +Author: OpenStack +Abstract: Sphinx documentation for Glare +Section: Network/File Transfer + +Format: HTML +Index: /usr/share/doc/python-glare-doc/html/index.html +Files: /usr/share/doc/python-glare-doc/html/* diff --git a/debian/python-glare.install b/debian/python-glare.install new file mode 100644 index 0000000..036c6b9 --- /dev/null +++ b/debian/python-glare.install @@ -0,0 +1 @@ +usr/lib/python*/dist-packages/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..08e099f --- /dev/null +++ b/debian/rules @@ -0,0 +1,53 @@ +#!/usr/bin/make -f + +include /usr/share/openstack-pkg-tools/pkgos.make + + +%: + dh $@ --buildsystem=python_distutils --with python2,sphinxdoc,systemd + +override_dh_auto_clean: + find . -iname '*.pyc' -delete + rm -f debian/*.init debian/*.upstart debian/*.service + rm -rf build + +override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + @echo "===> Running tests" + set -e ; set -x ; for i in 2.7 ; do \ + PYMAJOR=`echo $$i | cut -d'.' -f1` ; \ + echo "===> Testing with python$$i (python$$PYMAJOR)" ; \ + rm -rf .testrepository ; \ + testr-python$$PYMAJOR init ; \ + TEMP_REZ=`mktemp -t` ; \ + PYTHONPATH=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit --parallel 'glare\.tests\.unit\.*' | tee $$TEMP_REZ | subunit2pyunit ; \ + cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \ + rm -f $$TEMP_REZ ; \ + testr-python$$PYMAJOR slowest ; \ + done +endif + +override_dh_auto_install: + echo "Please do nothing" + +override_dh_installman: +ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) + sphinx-build $(SPHINXOPTS) -b man doc/source doc/build/man + dh_installman -O--buildsystem=python_distutils +endif + +override_dh_sphinxdoc: +ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) + sphinx-build $(SPHINXOPTS) -b html doc/source $(CURDIR)/debian/python-glare-doc/usr/share/doc/python-glare-doc/html + dh_sphinxdoc -O--buildsystem=python_distutils +endif + +override_dh_install: + rm -rf $(CURDIR)/debian/tmp + python2.7 setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp + dh_install -O--buildsystem=python_distutils --fail-missing + mkdir -p $(CURDIR)/debian/glare-common/usr/share/glare-common + PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python2.7/dist-packages oslo-config-generator \ + --config-file=etc/oslo-config-generator/glare.conf + + install -D -m 0664 etc/glare.conf.sample $(CURDIR)/debian/glare-common/etc/glare/glare.conf 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/debian/source/options b/debian/source/options new file mode 100644 index 0000000..9122245 --- /dev/null +++ b/debian/source/options @@ -0,0 +1,2 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" +extend-diff-ignore = "^[.]gitreview$" diff --git a/debian/ubuntu_control_vars b/debian/ubuntu_control_vars new file mode 100644 index 0000000..e69de29 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..c6802e1 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/\.(b|rc)/~$1/" \ +https://github.com/openstack/glare/tags .*/(\d[\d\.]+)\.tar\.gz