[ffc] 01/01: Support Python 3: add new package python3-ffc

Johannes Ring johannr-guest at moszumanska.debian.org
Fri Jan 27 10:37:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

johannr-guest pushed a commit to branch master
in repository ffc.

commit d10551de315f09629610d95851107cb1fcd29d07
Author: Johannes Ring <johannr at simula.no>
Date:   Fri Jan 27 11:37:19 2017 +0100

    Support Python 3: add new package python3-ffc
---
 debian/changelog |  6 ++++++
 debian/control   | 55 ++++++++++++++++++++++++++++++++++++++++++++-----------
 debian/rules     | 16 +++++++++++++++-
 3 files changed, 65 insertions(+), 12 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index bd9765f..5153163 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ffc (2016.2.0-2) UNRELEASED; urgency=medium
+
+  * Support Python 3: new package python3-ffc.
+
+ -- Johannes Ring <johannr at simula.no>  Fri, 27 Jan 2017 09:39:31 +0100
+
 ffc (2016.2.0-1) unstable; urgency=medium
 
   [ Johannes Ring ]
diff --git a/debian/control b/debian/control
index 4985c17..a35350c 100644
--- a/debian/control
+++ b/debian/control
@@ -5,9 +5,11 @@ Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.
 Uploaders: Johannes Ring <johannr at simula.no>, Drew Parsons <dparsons at debian.org>
 Build-Depends:
  debhelper (>= 9),
+ dh-python,
  python-all (>= 2.7),
+ python3-all (>= 3.4),
  python-setuptools,
- dh-python
+ python3-setuptools
 Standards-Version: 3.9.8
 X-Python-Version: >= 2.7
 Homepage: http://fenicsproject.org
@@ -28,14 +30,45 @@ Depends:
 Provides: ufc, python-ufc
 Conflicts: ufc, python-ufc
 Replaces: ufc, python-ufc
-Description: compiler for finite element variational forms
- The FEniCS Form Compiler FFC provides state-of-the-art automatic and efficient
- evaluation of general multilinear forms (variational formulations) for FEniCS.
- FFC functions as the form evaluation system for DOLFIN but can also be used to
- compile forms for other systems.
+Description: compiler for finite element variational forms (Python 2)
+ The FEniCS Form Compiler FFC provides state-of-the-art automatic and
+ efficient evaluation of general multilinear forms (variational
+ formulations) for FEniCS. FFC functions as the form evaluation
+ system for DOLFIN but can also be used to compile forms for other
+ systems.
  .
- FFC works as a compiler for multilinear forms by generating code (C or C++) 
- for the evaluation of a multilinear form given in mathematical notation. This
- new approach to form evaluation makes it possible to combine generality with
- efficiency; the form can be given in mathematical notation and the generated
- code is as efficient as hand-optimized code.
+ FFC works as a compiler for multilinear forms by generating code (C
+ or C++) for the evaluation of a multilinear form given in
+ mathematical notation. This new approach to form evaluation makes it
+ possible to combine generality with efficiency; the form can be given
+ in mathematical notation and the generated code is as efficient as
+ hand-optimized code.
+ .
+ This package installs the library for Python 2.
+
+Package: python3-ffc
+Architecture: all
+Depends:
+ python3-fiat (>= ${source:Upstream-Version}), python3-fiat (<< ${source:Next-Upstream-Version}),
+ python3-instant (>= ${source:Upstream-Version}), python3-instant (<< ${source:Next-Upstream-Version}),
+ python3-ufl (>= ${source:Upstream-Version}), python3-ufl (<< ${source:Next-Upstream-Version}),
+ python3-dijitso (>= ${source:Upstream-Version}), python3-dijitso (<< ${source:Next-Upstream-Version}),
+ python3-numpy,
+ python3-six,
+ ${python3:Depends},
+ ${misc:Depends}
+Description: compiler for finite element variational forms (Python 3)
+ The FEniCS Form Compiler FFC provides state-of-the-art automatic and
+ efficient evaluation of general multilinear forms (variational
+ formulations) for FEniCS. FFC functions as the form evaluation
+ system for DOLFIN but can also be used to compile forms for other
+ systems.
+ .
+ FFC works as a compiler for multilinear forms by generating code (C
+ or C++) for the evaluation of a multilinear form given in
+ mathematical notation. This new approach to form evaluation makes it
+ possible to combine generality with efficiency; the form can be given
+ in mathematical notation and the generated code is as efficient as
+ hand-optimized code.
+ .
+ This package installs the library for Python 3.
diff --git a/debian/rules b/debian/rules
index 58e91ce..aa4710f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,11 @@
 #!/usr/bin/make -f
 
+#export DH_VERBOSE=1
+export PYBUILD_NAME=ffc
+export PYBUILD_DISABLE=test
+#export PYBUILD_TEST_ARGS={dir}/test
+#export PYBUILD_TEST_PYTEST=1
+
 DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
 DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
 DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
@@ -15,13 +21,21 @@ FENICS_NEXT_VERSION=$(FENICS_MAJOR_VERSION).$(shell echo $$(( $(FENICS_MINOR_VER
 USCAN_DESTDIR := $(CURDIR)
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_compress:
 	dh_compress -X.py -X.ufl
 
 override_dh_clean:
 	dh_clean ffc/git_commit_hash.py
+	rm -rf *.egg-info
+
+override_dh_auto_install:
+	dh_auto_install
+# Note: The ffc script is removed for not to conflict with the same script
+#       in the python-ffc package
+	rm debian/python3-ffc/usr/bin/ffc
+	mv debian/python3-ffc/usr/share/man/man1/ffc.1.gz debian/python3-ffc/usr/share/man/man1/ffc-3.1.gz
 
 override_dh_gencontrol:
 	dh_gencontrol -- -Vsource:Next-Upstream-Version=$(FENICS_NEXT_VERSION)~

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/fenics/ffc.git



More information about the debian-science-commits mailing list