Commit 2da78a6d authored by Leo Pound Singer's avatar Leo Pound Singer
Browse files

debian: modernize and port packaging to Python 2 and 3

parent 78ccc6ef
Note that the dependencies for the python3-ligo-lvalert package is somewhat
different from the python-ligo-lvalert package because python3-m2crypto and
python3-pyxmpp do not exist. However, some basic functions of lvalert doesn't
need them. Consider making them recommended rather than required dependencies.
The python3-libxml2 dependency exists in stretch.
......@@ -2,13 +2,29 @@ Source: ligo-lvalert
Maintainer: Brian Moe <brian.moe@ligo.org>
Section: python
Priority: optional
Build-Depends: debhelper (>= 7), python-all-dev, python-setuptools
Build-Depends: debhelper (>= 9), dh-python, python-all-dev, python3-all-dev, python-setuptools, python3-setuptools, help2man
Standards-Version: 3.8.4
X-Python-Version: >=2.6
X-Python-Version: >=2.7
X-Python3-Version: >=3.4
Package: python-ligo-lvalert
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, python-pyxmpp, python-libxml2, python-m2crypto, python-dnspython, python-ligo-common
Provides: ${python:Provides}
Description: LIGO-Virgo Alert Network
The LIGO-Virgo Alert Network (LVAlert) is a prototype notification service built XMPP to provide a basic notification tool which allows multiple producers and consumers of notifications.
Description: LIGO-Virgo Alert Network - Python
The LIGO-Virgo Alert Network (LVAlert) is a prototype notification service
built XMPP to provide a basic notification tool which allows multiple
producers and consumers of notifications.
.
This package provides Python support.
Package: python3-ligo-lvalert
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3-dnspython, python3-ligo-common
Provides: ${python3:Provides}
Description: LIGO-Virgo Alert Network - Python
The LIGO-Virgo Alert Network (LVAlert) is a prototype notification service
built XMPP to provide a basic notification tool which allows multiple
producers and consumers of notifications.
.
This package provides Python support.
This work was packaged for Debian by:
Brian Moe <brian.moe@ligo.org> on Tue, 01 Nov 2011 14:06:40 -0500
It was downloaded from:
http://www.lsc-group.phys.uwm.edu/cgit/lalsuite/tree/lvalert
Upstream Author(s):
The LIGO Scientific Collaboration
Copyright:
Copyright (C) 2011 The LIGO Scientific Collaboration
License:
This program 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.
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 3 can be found in `/usr/share/common-licenses/GPL-3'.
The Debian packaging is:
Copyright (C) 2011 Brian Moe <brian.moe@ligo.org>
and is licensed under the GPL version 3, see above.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: LALSuite
Upstream-Contact: Brian Moe <brian.moe@ligo.org>
Upstream-Source: https://versions.ligo.org/cgit/lvalert/
License: GPL-2+
This program 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.
.
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 3 can be found in `/usr/share/common-licenses/GPL-3'.
Files: *
Copyright: 2011 The LIGO Scientific Collaboration
License: GPL-2+
#! /bin/sh
set -e
# This was added by stdeb to workaround Debian #479852. In a nutshell,
# pycentral does not remove normally remove its symlinks on an
# upgrade. Since we're using python-support, however, those symlinks
# will be broken. This tells python-central to clean up any symlinks.
if [ -e /var/lib/dpkg/info/python-ligo-lvalert.list ] && which pycentral >/dev/null 2>&1
then
pycentral pkgremove python-ligo-lvalert
fi
#DEBHELPER#
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with python2
export PYBUILD_NAME := ligo-lvalert
# Redirect Python 3 packages to a directory that we are going to ignore.
# FIXME: in the future, we could put these in libexec or change their names.
export PYBUILD_INSTALL_ARGS_python3 := --install-scripts=/dont-install
export PYBUILD_AFTER_INSTALL_python3 := rm -rf {destdir}/dont-install
override_dh_python2:
dh_python2 --no-guessing-versions
# Automatically generate man pages with help2man
export PYBUILD_AFTER_INSTALL_python2 := \
echo 'Automatically generating man pages with help2man' && \
mkdir -p {destdir}/usr/share/man/man1 && \
ls {destdir}/usr/bin | env PYTHONPATH={destdir}{install_dir} \
xargs --verbose -I @ help2man --source $(DEB_SOURCE) \
--version-string $(DEB_VERSION_UPSTREAM) --no-info --no-discard-stderr \
{destdir}/usr/bin/@ -o {destdir}/usr/share/man/man1/@.1
%:
dh $@ --with python2,python3 --buildsystem=pybuild
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment