added: debian packaging for python bindings
This commit is contained in:
parent
585eb609ee
commit
a9c1c8dedd
25
debian/control
vendored
25
debian/control
vendored
@ -2,10 +2,12 @@ Source: opm-common
|
|||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Arne Morten Kvarving <arne.morten.kvarving@sintef.no>
|
Maintainer: Arne Morten Kvarving <arne.morten.kvarving@sintef.no>
|
||||||
Build-Depends: build-essential, debhelper (>= 9),
|
Build-Depends: build-essential, debhelper (>= 9),
|
||||||
pkg-config, cmake, git, libtool, doxygen,
|
pkg-config, cmake, git, libtool, doxygen, graphviz,
|
||||||
texlive-latex-extra, texlive-latex-recommended,
|
texlive-latex-extra, texlive-latex-recommended,
|
||||||
ghostscript, libboost-system-dev, libboost-test-dev,
|
ghostscript, libboost-system-dev, libboost-test-dev,
|
||||||
zlib1g-dev
|
zlib1g-dev, libpython3-dev, python3-numpy, python3-distutils,
|
||||||
|
python3-setuptools, python3-setuptools-scm, python3-pytest-runner,
|
||||||
|
python3-decorator
|
||||||
Standards-Version: 3.9.2
|
Standards-Version: 3.9.2
|
||||||
Section: libs
|
Section: libs
|
||||||
Homepage: http://opm-project.org
|
Homepage: http://opm-project.org
|
||||||
@ -22,6 +24,16 @@ Provides: libopm-common
|
|||||||
Description: OPM common library
|
Description: OPM common library
|
||||||
The OPM common library contains generic code shared across all OPM modules.
|
The OPM common library contains generic code shared across all OPM modules.
|
||||||
|
|
||||||
|
Package: libopm-common1-bin
|
||||||
|
Section: libs
|
||||||
|
Pre-Depends: ${misc:Pre-Depends}
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: same
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Provides: libopm-common-bin
|
||||||
|
Description: OPM common binaries
|
||||||
|
The OPM common binaries.
|
||||||
|
|
||||||
Package: libopm-common1-dev
|
Package: libopm-common1-dev
|
||||||
Section: libdevel
|
Section: libdevel
|
||||||
Architecture: any
|
Architecture: any
|
||||||
@ -41,3 +53,12 @@ Provides: libopm-common-doc
|
|||||||
Description: OPM common library -- documentation
|
Description: OPM common library -- documentation
|
||||||
The OPM common library contains the shared buildsystem
|
The OPM common library contains the shared buildsystem
|
||||||
and helpers shared across all OPM modules.
|
and helpers shared across all OPM modules.
|
||||||
|
|
||||||
|
Package: python3-opm-common
|
||||||
|
Section: libs
|
||||||
|
Pre-Depends: ${misc:Pre-Depends}, multiarch-support
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: same
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, libopm-common1, python3-numpy, python3-decorator
|
||||||
|
Description: OPM common python bindings
|
||||||
|
Python package for opm-common
|
||||||
|
1
debian/libopm-common1-bin.install
vendored
Normal file
1
debian/libopm-common1-bin.install
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
usr/bin/*
|
1
debian/python3-opm-common.install
vendored
Normal file
1
debian/python3-opm-common.install
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
usr/lib/python*/*
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -10,7 +10,7 @@
|
|||||||
#export DH_VERBOSE=1
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@ --parallel
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
dh_auto_clean --buildsystem=cmake
|
dh_auto_clean --buildsystem=cmake
|
||||||
@ -20,7 +20,7 @@ override_dh_auto_build:
|
|||||||
|
|
||||||
# consider using -DUSE_VERSIONED_DIR=ON if backporting
|
# consider using -DUSE_VERSIONED_DIR=ON if backporting
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
dh_auto_configure --buildsystem=cmake -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTRIP_DEBUGGING_SYMBOLS=ON -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_DOCDIR=share/doc/libopm-common1 -DWHOLE_PROG_OPTIM=ON -DUSE_RUNPATH=OFF -DWITH_NATIVE=OFF
|
dh_auto_configure --buildsystem=cmake -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTRIP_DEBUGGING_SYMBOLS=ON -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_DOCDIR=share/doc/libopm-common1 -DWHOLE_PROG_OPTIM=ON -DUSE_RUNPATH=OFF -DWITH_NATIVE=OFF -DOPM_ENABLE_PYTHON=1 -DOPM_INSTALL_PYTHON=1 -DPYTHON_EXECUTABLE=/usr/bin/python3
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
dh_auto_install -- install-html
|
dh_auto_install -- install-html
|
||||||
|
Loading…
Reference in New Issue
Block a user