debian: build a python3 package
* debian/python3-spot.install: New file. * Makefile.am: Ship it. * debian/control, debian/rules, debian/spot.install: Adjust.
This commit is contained in:
parent
4ffb0cb98d
commit
5adec9199b
5 changed files with 31 additions and 10 deletions
10
Makefile.am
10
Makefile.am
|
|
@ -32,10 +32,12 @@ SUBDIRS = buddy lib src wrap ltdl iface doc $(NEVER_BENCH)
|
||||||
|
|
||||||
UTF8 = utf8/doc/ReleaseNotes utf8/doc/utf8cpp.html utf8/utf8.h \
|
UTF8 = utf8/doc/ReleaseNotes utf8/doc/utf8cpp.html utf8/utf8.h \
|
||||||
utf8/utf8/checked.h utf8/utf8/core.h utf8/utf8/unchecked.h
|
utf8/utf8/checked.h utf8/utf8/core.h utf8/utf8/unchecked.h
|
||||||
DEBIAN = debian/changelog debian/changelog.in debian/compat \
|
|
||||||
debian/control debian/copyright debian/docs debian/rules \
|
DEBIAN = debian/changelog debian/changelog.in debian/compat \
|
||||||
debian/source/format debian/spot-doc.docs debian/spot-doc.install \
|
debian/control debian/copyright debian/docs debian/rules \
|
||||||
debian/spot-doc.doc-base debian/spot.install \
|
debian/python3-spot.install debian/source/format \
|
||||||
|
debian/spot-doc.docs debian/spot-doc.install \
|
||||||
|
debian/spot-doc.doc-base debian/spot.install \
|
||||||
debian/libspot-dev.install
|
debian/libspot-dev.install
|
||||||
|
|
||||||
debian/changelog: configure.ac
|
debian/changelog: configure.ac
|
||||||
|
|
|
||||||
16
debian/control
vendored
16
debian/control
vendored
|
|
@ -2,27 +2,39 @@ Source: spot
|
||||||
Section: science
|
Section: science
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
Maintainer: Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
Build-Depends: debhelper (>= 9)
|
Build-Depends: debhelper (>= 9), python3-all-dev
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.5
|
||||||
Homepage: http://spot.lip6.fr/
|
Homepage: http://spot.lip6.fr/
|
||||||
|
|
||||||
Package: spot
|
Package: spot
|
||||||
Architecture: any
|
Architecture: any
|
||||||
|
Section: science
|
||||||
Recommends: graphviz
|
Recommends: graphviz
|
||||||
Suggests: libspot-dev, spot-doc
|
Suggests: libspot-dev, spot-doc
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
Description: the Spot model checking library
|
Description: Spot, a model checking library
|
||||||
Library and tools to manipulate omega-automata as well as
|
Library and tools to manipulate omega-automata as well as
|
||||||
linear-temporal logic (LTL & PSL).
|
linear-temporal logic (LTL & PSL).
|
||||||
|
|
||||||
Package: libspot-dev
|
Package: libspot-dev
|
||||||
Architecture: all
|
Architecture: all
|
||||||
|
Section: libdevel
|
||||||
Suggests: spot-doc
|
Suggests: spot-doc
|
||||||
Depends: spot
|
Depends: spot
|
||||||
Description: headers for the Spot model checking library
|
Description: headers for the Spot model checking library
|
||||||
C++ headers for the Spot library.
|
C++ headers for the Spot library.
|
||||||
|
|
||||||
Package: spot-doc
|
Package: spot-doc
|
||||||
|
Section: doc
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Description: documentation for Spot
|
Description: documentation for Spot
|
||||||
Developer documentation for Spot.
|
Developer documentation for Spot.
|
||||||
|
|
||||||
|
Package: python3-spot
|
||||||
|
Architecture: any
|
||||||
|
Section: python
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
|
||||||
|
Suggests: ipython3
|
||||||
|
Description: python3 binding for spot
|
||||||
|
Spot allows manipulation of omega-automata as well
|
||||||
|
as linear temporal logic (LTL & PSL).
|
||||||
|
|
|
||||||
1
debian/python3-spot.install
vendored
Normal file
1
debian/python3-spot.install
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
usr/lib/python3*
|
||||||
12
debian/rules
vendored
12
debian/rules
vendored
|
|
@ -19,7 +19,7 @@ include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
# main packaging script based on dh7 syntax
|
# main packaging script based on dh7 syntax
|
||||||
%:
|
%:
|
||||||
dh $@ --parallel
|
dh $@ --parallel --with=python3
|
||||||
|
|
||||||
LTOPLUG = /usr/lib/gcc/x86_64-linux-gnu/4.9/liblto_plugin.so
|
LTOPLUG = /usr/lib/gcc/x86_64-linux-gnu/4.9/liblto_plugin.so
|
||||||
|
|
||||||
|
|
@ -37,16 +37,22 @@ PRO1SETUP = \
|
||||||
PRO2SETUP = \
|
PRO2SETUP = \
|
||||||
CFLAGS='-flto -fprofile-use' \
|
CFLAGS='-flto -fprofile-use' \
|
||||||
CXXFLAGS='-flto -fprofile-use'
|
CXXFLAGS='-flto -fprofile-use'
|
||||||
|
PYSETUP = PYTHON=/usr/bin/python3
|
||||||
|
|
||||||
# We want to build Spot twice: once to get profile data, and a second
|
# We want to build Spot twice: once to get profile data, and a second
|
||||||
# time to use it.
|
# time to use it.
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
dh_auto_configure -- $(PRO1SETUP) $(LTOSETUP) \
|
dh_auto_configure -- $(PRO1SETUP) $(LTOSETUP) \
|
||||||
--disable-devel --enable-optimizations \
|
--disable-devel --enable-optimizations \
|
||||||
--disable-static --disable-python
|
--disable-static $(PYSETUP)
|
||||||
dh_auto_build
|
dh_auto_build
|
||||||
dh_auto_test
|
dh_auto_test
|
||||||
make clean
|
make clean
|
||||||
dh_auto_configure -- $(PRO2SETUP) $(LTOSETUP) \
|
dh_auto_configure -- $(PRO2SETUP) $(LTOSETUP) \
|
||||||
--disable-devel --enable-optimizations \
|
--disable-devel --enable-optimizations \
|
||||||
--disable-static --disable-python
|
--disable-static $(PYSETUP)
|
||||||
|
override_dh_auto_install:
|
||||||
|
dh_auto_install --destdir=$(CURDIR)/debian/tmp
|
||||||
|
find debian/tmp -name '*.la' -exec rm -rv {} ';'
|
||||||
|
override_dh_python3:
|
||||||
|
dh_python3 -p python3-spot
|
||||||
|
|
|
||||||
2
debian/spot.install
vendored
2
debian/spot.install
vendored
|
|
@ -1,3 +1,3 @@
|
||||||
usr/bin
|
usr/bin
|
||||||
usr/lib
|
usr/lib/*-*/*.so*
|
||||||
usr/share/man
|
usr/share/man
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue