debianize

This commit is contained in:
Michael Davidsaver
2016-04-22 11:28:27 -04:00
parent ca85bb1cb8
commit 2fbe91c884
13 changed files with 122 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
pydevsup (1.0) unstable; urgency=medium
* initial
-- Michael Davidsaver <mdavidsaver@gmail.com> Fri, 22 Apr 2016 12:09:02 -0400

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

44
debian/control vendored Normal file
View File

@ -0,0 +1,44 @@
Source: pydevsup
Section: libdevel
Priority: extra
Maintainer: Michael Davidsaver <mdavidsaver@gmail.com>
Build-Depends: debhelper (>= 9), dh-python, epics-debhelper (>= 8.13~),
epics-dev,
epics-synapps-dev | epics-autosave-dev,
epics-synapps-dev | epics-iocstats-dev,
python-all-dev, python-numpy,
python3-all-dev, python3-numpy,
Standards-Version: 3.9.6
XS-Python-Version: >= 2.7
XS-Python3-Version: >= 3.4
Homepage: http://mdavidsaver.github.io/pyDevSup/
Vcs-Git: https://github.com/mdavidsaver/pyDevSup.git
Vcs-Browser: https://github.com/mdavidsaver/pyDevSup
Package: epics-pydevsup
Architecture: any
Depends: libpydevsup1.0 (= ${binary:Version}),
${shlibs:Depends}, ${misc:Depends},
${epics:Depends},
Description: EPICS device support in Python
An IOC and support module allowing device support to be written in Python
.
This package contains the softIocPy2.* executable
Package: epics-pydevsup-dev
Architecture: any
Depends: epics-pydevsup (= ${binary:Version}),
${shlibs:Depends}, ${misc:Depends},
${epics:Depends},
Description: EPICS device support in Python
An IOC and support module allowing device support to be written in Python
.
This package contains headers and libraries needed at build time.
Package: libpydevsup1.0
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
Description: EPICS device support in Python
An IOC and support module allowing device support to be written in Python
.
This package contains runtime libraries

11
debian/copyright vendored Normal file
View File

@ -0,0 +1,11 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pyDevSup
Upstream-Contact: Michael Davidsaver <mdavidsaver@gmail.com>
Source: http://mdavidsaver.github.io/pyDevSup/
Files: *
Copyright: Copyright 2016 Michael Davidsaver
License: GPL-2
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.

7
debian/epics-pydevsup-dev.install vendored Normal file
View File

@ -0,0 +1,7 @@
usr/lib/epics/dbd/pyDevSup.dbd
usr/lib/epics/lib/linux-*/libpyDevSup*.a
usr/lib/epics/lib/linux-*/libpyDevSup*.so
usr/lib/epics/lib/linux-*-debug/libpyDevSup*.so.*
usr/lib/epics/configure/*_PY etc/epics/configure
usr/lib/epics/configure/os/* etc/epics/configure/os

View File

@ -0,0 +1,2 @@
# -debug targets not stripped
epics-pydevsup-dev: unstripped-binary-or-object

6
debian/epics-pydevsup.install vendored Normal file
View File

@ -0,0 +1,6 @@
usr/lib/epics/bin/linux-*-debug/softIocPy*
usr/lib/epics/bin/linux-*/softIocPy* usr/bin
usr/lib/epics/dbd/softIocPy.dbd
usr/lib/epics/python*
usr/lib/epics/db
iocBoot/ioc* usr/share/doc/epics-pydevsup

View File

@ -0,0 +1,4 @@
# -debug not stripped
epics-pydevsup: unstripped-binary-or-object
# too lazy
epics-pydevsup: binary-without-manpage

1
debian/libpydevsup1.0.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/libpyDevSup*.so.*

View File

@ -0,0 +1,5 @@
# actual library names encode python ABI versions
# and I'm too lazy to make a seprate package for
# each. Changing names with SONAME changes is
# bad enough
libpydevsup1.0: package-name-doesnt-match-sonames

34
debian/rules vendored Executable file
View File

@ -0,0 +1,34 @@
#!/usr/bin/make -f
# Don't want to enable conditional deps. by default
# but do want to build then for packaging
EXTRA=AUTOSAVE=/usr/lib/epics
export DH_VERBOSE=1
%:
dh $@ --with epics -Sepicsmake --parallel
override_dh_auto_configure:
# since we do special gymnastics to build for multiple python version
# just do all the work in the install phase
override_dh_auto_build:
override_dh_auto_test:
override_dh_auto_install:
dh_auto_build -- PY_VER=2.7 $(EXTRA)
dh_auto_install -- PY_VER=2.7 $(EXTRA)
dh_auto_clean -- PY_VER=2.7 $(EXTRA)
dh_auto_build -- PY_VER=3.4 $(EXTRA)
dh_auto_install -- PY_VER=3.4 $(EXTRA)
dh_auto_clean -- PY_VER=3.4 $(EXTRA)
rm debian/tmp/usr/lib/epics/db/test*.db
override_dh_install:
dh_install --fail-missing
override_dh_makeshlibs:
dh_makeshlibs -pepics-pydevsup-dev -n
dh_makeshlibs --remaining-packages

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)

1
debian/source/options vendored Normal file
View File

@ -0,0 +1 @@
compression-level = 9