[woo] 01/01: Initial debian packaging.

Anton Gladky gladk at moszumanska.debian.org
Wed Aug 5 16:51:24 UTC 2015


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

gladk pushed a commit to branch master
in repository woo.

commit 038baf6001a06010ef02d9101963cce0bff88950
Author: Anton Gladky <gladk at debian.org>
Date:   Wed Aug 5 18:14:17 2015 +0200

    Initial debian packaging.
---
 debian/changelog                     |  11 ++++
 debian/compat                        |   1 +
 debian/control                       | 108 +++++++++++++++++++++++++++++++++++
 debian/patches/10_libqglviewer.patch |  39 +++++++++++++
 debian/patches/20_fix_FTBFS.patch    |  38 ++++++++++++
 debian/patches/30_libqglviewer.patch |  50 ++++++++++++++++
 debian/patches/series                |   3 +
 debian/rules                         |  12 ++++
 debian/source/format                 |   1 +
 9 files changed, 263 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..448b519
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,11 @@
+woo (1.0-1) unstable; urgency=medium
+
+  * bump debian version to 1.0
+
+ -- Václav Šmilauer <eu at doxos.eu>  Fri, 27 Feb 2015 11:00:22 +0100
+
+woo (0.99) unstable; urgency=low
+
+  * source package automatically created by stdeb 0.6.0+git
+
+ -- Václav Šmilauer <eu at doxos.eu>  Mon, 10 Dec 2012 12:40:45 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..5a7701b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,108 @@
+Source: woo
+Maintainer: Václav Šmilauer <eu at doxos.eu>
+Section: python
+Priority: optional
+Build-Depends:
+ python-all,
+ python-all-dev,
+ python-setuptools,
+ python3-setuptools,
+ python3-all,
+ python3-all-dev,
+ debhelper,
+ libboost-all-dev,
+ pyqt4-dev-tools,
+ libqt4-dev,
+ libqt4-dev-bin,
+ qt4-dev-tools,
+ libgle3-dev,
+ libqglviewer-dev-qt4,
+ libvtk5-dev,
+ libgts-dev,
+ libeigen3-dev,
+ freeglut3-dev,
+Standards-Version: 3.9.1
+X-Python3-Version: >= 3.4
+X-Python-Version: >= 2.7
+
+
+Package: python-woo
+Conflicts: python-woo-singlecore
+Architecture: any
+Depends:
+ ${misc:Depends},
+ ${python:Depends},
+ ${shlibs:Depends},
+ python-xlrd,
+ python-xlwt,
+ python-numpy,
+ python-matplotlib,
+ python-colorama,
+ python-qt4,
+ python-xlib,
+ python-genshi,
+ python-psutil,
+ python-minieigen,
+ python-imaging,
+ python-h5py,
+ python-lockfile,
+ ipython,
+ mencoder | libav-tools | ffmpeg,
+ python-prettytable
+Description: Discrete dynamic computations, esp. granular mechanics (python 2)
+ Extesible and portable framework primarily for mechanics
+ granular materials. Computation parts are written in c++ parallelized using
+ OpenMP, fully accessible and modifiable from python (ipython console or
+ scripts). Arbitrarily complex scene can be scripted. Qt-based user interface
+ is provided, featuring flexible OpenGL display, inspection of all objects
+ and runtime modification. Parametric preprocessors can be written in pure
+ python, and batch system can be used to drive parametric studies. New
+ material models and particle shapes can be added (in c++) without modifying
+ existing classes.
+ .
+ Woo is an evolution of the Yade package
+ (http://www.launchpad.net/yade), aiming at more flexibility, extensibility,
+ tighter integration with python and user-friendliness.
+ .
+ This version is built with OpenMP enabled, and targets Python 2.x
+
+
+Package: python3-woo
+Architecture: any
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ ${shlibs:Depends},
+ python3-xlrd,
+ python3-xlsxwriter,
+ python3-numpy,
+ python3-matplotlib,
+ python3-colorama,
+ python3-pyqt4,
+ python3-xlib,
+ python3-genshi,
+ python3-psutil,
+ python3-minieigen,
+ python3-imaging | python3-pil,
+ python3-h5py,
+ python3-lockfile,
+ ipython3,
+ mencoder | libav-tools | ffmpeg,
+ python3-prettytable
+Description: Discrete dynamic compuations, esp. granular mechanics (python 3)
+ Extesible and portable framework primarily for mechanics
+ granular materials. Computation parts are written in c++ parallelized using
+ OpenMP, fully accessible and modifiable from python (ipython console or
+ scripts). Arbitrarily complex scene can be scripted. Qt-based user interface
+ is provided, featuring flexible OpenGL display, inspection of all objects
+ and runtime modification. Parametric preprocessors can be written in pure
+ python, and batch system can be used to drive parametric studies. New
+ material models and particle shapes can be added (in c++) without modifying
+ existing classes.
+ .
+ Woo is an evolution of the Yade package
+ (http://www.launchpad.net/yade), aiming at more flexibility, extensibility,
+ tighter integration with python and user-friendliness.
+ .
+ This version is built with OpenMP enabled, and targets Python 3.x.
+
diff --git a/debian/patches/10_libqglviewer.patch b/debian/patches/10_libqglviewer.patch
new file mode 100644
index 0000000..c566aeb
--- /dev/null
+++ b/debian/patches/10_libqglviewer.patch
@@ -0,0 +1,39 @@
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ woo (1.0) unstable; urgency=medium
+ .
+   * bump debian version to 1.0
+Author: Václav Šmilauer <eu at doxos.eu>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- woo-1.0.orig/gui/qt4/GLViewer.cpp
++++ woo-1.0/gui/qt4/GLViewer.cpp
+@@ -631,7 +631,11 @@ void GLViewer::draw(bool withNames, bool
+ 		#endif
+ 		if(manipulatedClipPlane>=0){
+ 			assert(manipulatedClipPlane<Renderer::numClipPlanes);
++#if QGLVIEWER_VERSION>=0x020603
++			qreal v0,v1,v2; manipulatedFrame()->getPosition(v0,v1,v2);
++#else
+ 			float v0,v1,v2; manipulatedFrame()->getPosition(v0,v1,v2);
++#endif
+ 			double q0,q1,q2,q3; manipulatedFrame()->getOrientation(q0,q1,q2,q3);
+ 			Vector3r newPos(v0,v1,v2); Quaternionr newOri(q0,q1,q2,q3);
+ 			const Vector3r& oldPos(Renderer::clipPlanePos[manipulatedClipPlane]);
diff --git a/debian/patches/20_fix_FTBFS.patch b/debian/patches/20_fix_FTBFS.patch
new file mode 100644
index 0000000..449077a
--- /dev/null
+++ b/debian/patches/20_fix_FTBFS.patch
@@ -0,0 +1,38 @@
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ woo (1.0-1) unstable; urgency=medium
+ .
+   * bump debian version to 1.0
+Author: Václav Šmilauer <eu at doxos.eu>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+Index: woodem-1.0/core/Scene.cpp
+===================================================================
+--- woodem-1.0.orig/core/Scene.cpp
++++ woodem-1.0/core/Scene.cpp
+@@ -90,7 +90,7 @@ void Scene::backgroundLoop(){
+ 		}
+ 	} catch(std::exception& e){
+ 		LOG_ERROR("Exception: "<<endl<<e.what());
+-		except=make_shared<std::exception>(e);
++		except=boost::make_shared<std::exception>(e);
+ 		{ boost::mutex::scoped_lock l(runMutex); runningFlag=false; }
+ 		return;
+ 	}
diff --git a/debian/patches/30_libqglviewer.patch b/debian/patches/30_libqglviewer.patch
new file mode 100644
index 0000000..7239d24
--- /dev/null
+++ b/debian/patches/30_libqglviewer.patch
@@ -0,0 +1,50 @@
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ woo (1.0-1) unstable; urgency=medium
+ .
+   * bump debian version to 1.0
+Author: Václav Šmilauer <eu at doxos.eu>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+Index: woodem-1.0/setup.py
+===================================================================
+--- woodem-1.0.orig/setup.py
++++ woodem-1.0/setup.py
+@@ -311,17 +311,17 @@ if 'opengl' in features:
+ 		# this assumes gcc can be run
+ 		try:
+ 			# this will for sure fail - either the lib is not found (the first error reported), or we get "undefined reference to main" when the lib is there
+-			subprocess.check_output(['gcc','-lqglviewer-qt4'],stderr=subprocess.STDOUT)
++			subprocess.check_output(['gcc','-lQGLViewer-qt4'],stderr=subprocess.STDOUT)
+ 		except (subprocess.CalledProcessError,) as e:
+ 			#print(20*'=','output from gcc -lqglviewer-qt4',20*'=')
+ 			#print(e.output)
+ 			#print(60*'=')
+ 			if ' -lqglviewer-qt4' in e.output.decode('utf-8').split('\n')[0]:
+ 				print('info: library check: qglviewer-qt4 not found, using QGLViewer instead')
+-				cxxLibs+=['QGLViewer']
++				cxxLibs+=['QGLViewer-qt4']
+ 			else:
+ 				print('info: library check: qglviewer-qt4 found')
+-				cxxLibs+=['qglviewer-qt4']
++				cxxLibs+=['QGLViewer-qt4']
+ 	# qt4 without OpenGL is pure python and needs no additional compile options
+ 	if ('qt4' in features):
+ 		cppDef+=[('QT_CORE_LIB',None),('QT_GUI_LIB',None),('QT_OPENGL_LIB',None),('QT_SHARED',None)]
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3adfd8e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+10_libqglviewer.patch
+20_fix_FTBFS.patch
+30_libqglviewer.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b71658c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+export PYBUILD_NAME=woo
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_clean:
+
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

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



More information about the debian-science-commits mailing list