debian/0000775000000000000000000000000012313267253007174 5ustar debian/patches/0000775000000000000000000000000011533531547010626 5ustar debian/patches/03_fix_const_char.patch0000664000000000000000000000044411533531541015136 0ustar This patch fixes compilation with sip 4.8.1 --- a/sip/qwt3d_plot.sip +++ b/sip/qwt3d_plot.sip @@ -41,7 +41,7 @@ %ConvertToSubClassCode static struct class_graph { - char *name; + const char *name; sipWrapperType **type; int yes, no; } graph[] = { debian/patches/series0000664000000000000000000000012011533531541012026 0ustar 01_configure.patch 02_ezplot.patch 03_fix_const_char.patch 04_fix_sip4.10.patch debian/patches/04_fix_sip4.10.patch0000664000000000000000000000176111533531541014115 0ustar 04_fix_sip4.10.dpatch by --- a/sip/Qwt3D_Qt4_Module.sip +++ b/sip/Qwt3D_Qt4_Module.sip @@ -36,7 +36,7 @@ // typedef unsigned int GLenum; typedef unsigned char GLboolean; -typedef unsigned int GLbitfield; +//typedef unsigned int GLbitfield; typedef void GLvoid; typedef /*signed*/ char GLbyte; /* 1-byte signed */ typedef short GLshort; /* 2-byte signed */ @@ -45,7 +45,7 @@ typedef unsigned short GLushort; /* 2-byte unsigned */ // typedef unsigned int GLuint; /* 4-byte unsigned */ typedef int GLsizei; /* 4-byte signed */ -typedef float GLfloat; /* single precision float */ +//typedef float GLfloat; /* single precision float */ typedef float GLclampf; /* single precision float in [0,1] */ typedef double GLdouble; /* double precision float */ typedef double GLclampd; /* double precision float in [0,1] */ debian/patches/02_ezplot.patch0000664000000000000000000000126211533531541013460 0ustar ezplot should not contain #!/usr/bin/python in first line. Fix import of Qwt3D modules --- a/qt4lib/PyQt4/Qwt3D/ezplot.py +++ b/qt4lib/PyQt4/Qwt3D/ezplot.py @@ -1,7 +1,5 @@ -#!/usr/bin/env python -""" -ezplot is some sugar coating for Qwt3D -""" +#ezplot is some sugar coating for Qwt3D + # Copyright (C) 2003-2007 Gerard Vermeulen # # This file is part of PyQwt3D. @@ -32,8 +30,8 @@ __all__ = ('plot',) import numpy as np -from _Qwt3D import SurfacePlot, RGBA -from _Qwt3D import X1, X2, X3, X4, Y1, Y2, Y3, Y4, Z1, Z2, Z3, Z4 +from PyQt4.Qwt3D._Qwt3D import SurfacePlot, RGBA +from PyQt4.Qwt3D._Qwt3D import X1, X2, X3, X4, Y1, Y2, Y3, Y4, Z1, Z2, Z3, Z4 def tocube(x, y, z): debian/patches/01_configure.patch0000664000000000000000000000112011533531541014114 0ustar The Debian QwtPlot3D libraries are named libqwtplot3d-qt{3,4}, not libqwtplot3d --- a/configure/configure.py +++ b/configure/configure.py @@ -586,7 +586,10 @@ elif 'qwtplot3d' not in options.extra_libs: # no, add 'qwtplot3d' if needed options.extra_libs.append('qwtplot3d') - + # This line is added by the Debian + while options.extra_libs.count('qwtplot3d'): + options.extra_libs.remove('qwtplot3d') + # do we also compile and link the sources of zlib into PyQwt3D? if options.zlib_sources: options.extra_defines.append('HAVE_ZLIB') debian/python-qwt3d-doc.install0000664000000000000000000000004111533531541013700 0ustar usr/share/doc/python-qwt3d-doc/* debian/README.source0000664000000000000000000000033211533531541011346 0ustar The source can be downloaded with the get-orig-source target in the debian/rules file. The dpatch system is used for applying patches before building. See /usr/share/doc/dpatch/README.source.gz for more information. debian/control0000664000000000000000000000304012146464213010573 0ustar Source: pyqwt3d Section: python Priority: optional Maintainer: Gudjon I. Gudjonsson Uploaders: Debian Python Modules Team Build-Depends: debhelper (>= 7), python-all-dev (>= 2.6.6-3), python-sip-dev, python-numpy (>= 1:1.0.2), libqt4-opengl-dev, python-qt4-dev (>= 4.8.3-3), python-qt4 (>= 4.8.3-3), python-qt4-gl (>= 4.5.1), libqwtplot3d-qt4-dev Homepage: http://pyqwt.sourceforge.net/ Standards-Version: 3.9.4 X-Python-Version: >= 2.3 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pyqwt3d/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pyqwt3d/trunk/ Package: python-qwt3d-qt4 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, ${sip:Depends}, python-qt4-gl, python-numpy, python-qwt5-qt4 Description: Python bindings of the QwtPlot3D library PyQwt3D is a set of Python bindings for the QwtPlot3D C++ class library which extends the Qt framework with widgets to visualize 3-dimensional data. . This package contains the Qt4 Python bindings Package: python-qwt3d-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: Documentation for the Python-qwt3d library PyQwt3D is a set of Python bindings for the QwtPlot3D C++ class library which extends the Qt framework with widgets to visualize 3-dimensional data. This package contains documentation and examples for both Qt3 and Qt4. The examples show how easy it is to make a 3D plot and how to save a 3D plot to an image or an (E)PS/PDF file. debian/python-qwt3d-doc.dirs0000664000000000000000000000003711533531541013200 0ustar usr/share/doc/python-qwt3d-doc debian/copyright0000664000000000000000000001342611623274017011134 0ustar This package was debianized by Gudjon I. Gudjonsson on Fri, 27 Apr 2007 17:55:13 +0200. It was downloaded from http://pyqwt.sourceforge.net/ Upstream Author: Gerard Vermeulen Copyright: © 2004-2007 Gerard Vermeulen License: PyQwt3D LICENSE Version 1, Septembre 2006 PyQwt3D is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. PyQwt3D is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with PyQwt3D; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. In addition, as a special exception, Gerard Vermeulen gives permission to link PyQwt3D dynamically with non-free versions of Qt and PyQt, and to distribute PyQwt3D in this form, provided that equally powerful versions of Qt and PyQt have been released under the terms of the GNU General Public License. If PyQwt3D is dynamically linked with non-free versions of Qt and PyQt, PyQwt3D becomes a free plug-in for a non-free program. Note from Gudjon: This license is equal to the PyQwt license. The Debian packaging is © 2007, Gudjon I. Gudjonsson and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. There are sources from three other projects included in the file tree: QwtPlot3d © 1999-2003 Christophe Geuzaine This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. zlib-1.2.3 Copyright © 1995-2005 Jean-loup Gailly Copyright © 1995-2004 Mark Adler /* zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.3, July 18th, 2005 Copyright © 1995-2005 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format). */ gl2ps /* * GL2PS, an OpenGL to PostScript Printing Library * Copyright © 1999-2003 Christophe Geuzaine * * This program is free software; you can redistribute it and/or * modify it under the terms of either: * * a) the GNU Library General Public License as published by the Free * Software Foundation, either version 2 of the License, or (at your * option) any later version; or * * b) the GL2PS License as published by Christophe Geuzaine, either * version 2 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either * the GNU Library General Public License or the GL2PS License for * more details. * * You should have received a copy of the GNU Library General Public * License along with this library in the file named "COPYING.LGPL"; * if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * You should have received a copy of the GL2PS License with this * library in the file named "COPYING.GL2PS"; if not, I will be glad * to provide one. * * For the latest info about gl2ps, see http://www.geuz.org/gl2ps/. * Please report all bugs and problems to . */ The example PyFontify.py contains Copyright # Based on FontText.py by Mitchell S. Chapman, # which was modified by Zachary Roadhouse, # then un-Tk'd by Just van Rossum. # Many thanks for regular expression debugging & authoring are due to: # Tim (the-incredib-ly y'rs) Peters and Cristian Tismer # So, who owns the copyright? ;-) How about this: # Copyright 1996-2001: # Mitchell S. Chapman, # Zachary Roadhouse, # Tim Peters, # Just van Rossum debian/changelog0000664000000000000000000001254612313267253011056 0ustar pyqwt3d (0.1.7~cvs20090625-12build1) trusty; urgency=medium * No-change rebuild against sip 4.15.5. -- Dmitry Shachnev Sat, 22 Mar 2014 15:05:57 +0400 pyqwt3d (0.1.7~cvs20090625-12) unstable; urgency=medium * Binary rebuild, no change. Fixes segmentation fault. -- Gudjon I. Gudjonsson Thu, 02 Jan 2014 17:42:23 +0100 pyqwt3d (0.1.7~cvs20090625-11) unstable; urgency=low * Removing -lz from configure and zlib1g-dev dependency * Removing -lGLU from configure (Closes: #676500) * Bump standards version to 3.9.4 * Add binary dependency on python-qwt5-qt4 -- Gudjon I. Gudjonsson Sat, 18 May 2013 22:18:47 +0200 pyqwt3d (0.1.7~cvs20090625-10) unstable; urgency=low * Team upload. [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Scott Kitterman ] * Add missing build-depends on zlib1g-dev to fix FTBFS (Closes: #70879) -- Scott Kitterman Sat, 18 May 2013 15:51:17 -0400 pyqwt3d (0.1.7~cvs20090625-9) unstable; urgency=low [ Jakub Wilk ] * Add epoch to python-numpy version in Build-Depends. [ Gudjon I. Gudjonsson ] * Bump standards version to 3.9.3 * Add -lGLU to configure.py command line -- Gudjon I. Gudjonsson Sun, 13 May 2012 09:58:59 +0200 pyqwt3d (0.1.7~cvs20090625-8) unstable; urgency=low * Add dependency on python-numpy (Closes: #641795) * Add build-arch and indep targets -- Gudjon I. Gudjonsson Tue, 15 Nov 2011 06:51:06 +0100 pyqwt3d (0.1.7~cvs20090625-7) unstable; urgency=low * Switch to dh_python2 (Closes: #634863) * Bump standards version to 3.9.2 * Upgraded dependencies * Add X-Python-Version * Change (C) to © in copyright file -- Gudjon I. Gudjonsson Sun, 14 Aug 2011 20:21:54 +0200 pyqwt3d (0.1.7~cvs20090625-6) unstable; urgency=low * Remove dependency on python-qt-dev -- Gudjon I. Gudjonsson Fri, 25 Mar 2011 09:34:10 +0100 pyqwt3d (0.1.7~cvs20090625-5) unstable; urgency=low * Remove qt3 support (Closes: #604372) * Switch from dpatch to quilt. Rewrite all patches * Switch to dpkg-source 3.0 (quilt) format * Bump standards version to 3.9.1 -- Gudjon I. Gudjonsson Sat, 26 Feb 2011 22:12:06 +0100 pyqwt3d (0.1.7~cvs20090625-4) unstable; urgency=low * Fix sip version (Closes: #567227) * Bump standards version to 3.8.4 * Add patch 04_fix_sip4.10 to fix compilation with sip4.10 * Add misc depends to python-qwt3d-doc * Removed pyqt version fix -- Gudjon I. Gudjonsson Sun, 07 Feb 2010 18:06:19 +0100 pyqwt3d (0.1.7~cvs20090625-3) unstable; urgency=low * Reubild in order to change binary dependencies from libqwtplot3d-qt{3,4} to libqwtplot3d-qt{3,4}-0 according to name change in qwtplot3d package -- Gudjon I. Gudjonsson Sun, 22 Nov 2009 23:57:36 +0100 pyqwt3d (0.1.7~cvs20090625-2) unstable; urgency=low * Change sip4 dependencies to >=4.9 * Add binary dependency on python-sip4 >=4.9 * Bump standards version to 3.8.3, no changes needed * Add README.source file -- Gudjon I. Gudjonsson Sat, 07 Nov 2009 12:54:42 +0100 pyqwt3d (0.1.7~cvs20090625-1) unstable; urgency=low [ Gudjon I. Gudjonsson ] * New CVS version - Builds from source (Closes: #527662) * Add patch 03_fix_const_char * Upgrade build dependencies to sip4 (4.8.1) * Bump Standards-Version to 3.8.2 (no changes needed) * Hardcode DEB_UPSTREAM_VERSION, change in next release [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn [ Bernd Zeimetz ] * Replace python-central by python-support to follow the change in python-qt4. This would not be an issue if python-central would create namespace packages properly. We should not need to change the build-dependency on python-qt4 as python-support should handle it for all versions in a sane way. * Depend on python-qtX-gl larger or equal than the version the package was built against. * Bump Standards-Version to 3.8.1, no changes needed. [ Piotr Ożarowski ] * Add get-orig-source rule * Prepare for Python 2.6: dh_install now recognizes files in /usr/local/*/dist-packages/ as well * Add preinst maintainer scipts in -qt3 and -qt4 packages -- Gudjon I. Gudjonsson Fri, 27 Jun 2009 16:18:13 +0200 pyqwt3d (0.1.6-2) unstable; urgency=medium [ Gudjon I. Gudjonsson ] * Add dependency on libqt4-opengl-dev (Closes: #482233) * Bump Standards-Version to 3.7.3 (no changes needed) [ Piotr Ożarowski ] * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now) -- Gudjon I. Gudjonsson Wed, 28 May 2008 00:06:00 +0200 pyqwt3d (0.1.6-1) unstable; urgency=low * New upstream release * Needs libqwtplot3d (>=0.2.7+svn191) that includes patches from Gerard. * Added some minor notes to the copyright file. * Added a patch to fix ezplot.py and set its ownership to 644. * Homepage field added * Add python-qt{3,4}-gl to python-qwt3d-qt{3,4}'s Depends and python-numpy to Recommends * Build-depend on python-sip4-dev >= 4.7.1-1 (closes: #442971) -- Gudjon I. Gudjonsson Sun, 30 Sep 2007 12:47:35 +0200 pyqwt3d (0.1.4-1) unstable; urgency=low * Initial release (Closes: #413355) -- Gudjon I. Gudjonsson Thu, 14 Jun 2007 22:49:54 +0200 debian/rules0000775000000000000000000000672512146464213010265 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PYTHONS := $(shell pyversions -vr) CURDIR := $(shell pwd) QTS=4 py_qt_version = $(shell dpkg -s python-qt$(strip $(1))-gl | grep '^Version' | sed 's,Version: \(.*\)-[^-]*$$,\1,') #DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') DEB_UPSTREAM_VERSION=0.1.7 CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif configure: configure-stamp configure-stamp: dh_testdir chmod 644 qt4lib/PyQt4/Qwt3D/ezplot.py for pyvers in ${PYTHONS};\ do\ for qtvers in ${QTS};\ do\ export QTDIR=/usr/share/qt$$qtvers;\ mkdir -p build/py$$pyvers-qt$$qtvers;\ cp -Rl `ls . |grep -v build|grep -v debian` build/py$$pyvers-qt$$qtvers;\ (cd build/py$$pyvers-qt$$qtvers/configure;\ python$$pyvers configure.py -$$qtvers -I /usr/include/qwtplot3d-qt$$qtvers --extra-libs=qwtplot3d-qt$$qtvers -D GL2PS_HAVE_ZLIB);\ done;\ done touch $@ build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: configure-stamp dh_testdir for pyvers in ${PYTHONS};\ do\ for qtvers in ${QTS};\ do\ export QTDIR=/usr/share/qt$$qtvers;\ (cd build/py$$pyvers-qt$$qtvers/configure;\ $(MAKE));\ done;\ done touch $@ build-indep: build-indep-stamp build-indep-stamp: configure-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp rm -rf build dh_clean install: build dh_testdir dh_testroot dh_installdirs for pyvers in ${PYTHONS};\ do\ for qtvers in ${QTS};\ do\ export QTDIR=/usr/share/qt$$qtvers;\ (cd build/py$$pyvers-qt$$qtvers/configure;\ $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install);\ done;\ done mkdir -p debian/tmp/usr/share/doc/python-qwt3d-doc/ cp -a qt4examples debian/tmp/usr/share/doc/python-qwt3d-doc/ cp -a Doc/html debian/tmp/usr/share/doc/python-qwt3d-doc/ binary-indep: build install dh_testdir -i dh_testroot -i dh_installchangelogs -i ANNOUNCEMENT-$(DEB_UPSTREAM_VERSION).TXT dh_installdocs -i dh_install -i --sourcedir=debian/tmp dh_link -i dh_compress -i --exclude=.py --exclude=.resX dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: build install dh_testdir -a dh_testroot -a dh_installchangelogs -a ANNOUNCEMENT-$(DEB_UPSTREAM_VERSION).TXT dh_installdocs -a dh_install -a --sourcedir=debian/tmp dh_link -a dh_strip -a dh_compress -a --exclude=.cpp --exclude=.h --exclude=.resX #echo 'python-qt4-gl:Depends=python-qt4-gl (>= $(call py_qt_version, 4))' >> debian/python-qwt3d-qt4.substvars dh_numpy -a dh_python2 -a dh_sip -a dh_installdeb -a dh_fixperms -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a get-orig-source: REV_DATE=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*cvs([0-9]+).*,\1,p'); \ VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-+~]+).*,\1,p'); \ if [ x$$REV_DATE = x ]; then \ uscan --force-download --rename --download-version=$$VER --destdir=.; \ else \ cvs -rQz5 -d:pserver:anonymous@pyqwt.cvs.sourceforge.net:/cvsroot/pyqwt export \ -D $$REV_DATE -d pyqwt3d-$$VER~cvs$$REV_DATE pyqwt3d && (\ find pyqwt3d-$$VER~cvs$$REV_DATE -name .cvsignore -type f -delete; \ tar -zcf ./pyqwt3d_$$VER~cvs$$REV_DATE.orig.tar.gz pyqwt3d-$$VER~cvs$$REV_DATE; \ rm -rf pyqwt3d-$$VER~cvs$$REV_DATE); \ fi binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/source/0000775000000000000000000000000011533531547010477 5ustar debian/source/format0000664000000000000000000000001411533531541011677 0ustar 3.0 (quilt) debian/python-qwt3d-qt4.install0000664000000000000000000000010311533531541013642 0ustar usr/*/python*/*-packages/PyQt4/Qwt3D/* usr/share/sip/PyQt4/Qwt3D/* debian/watch0000664000000000000000000000012711533531541010222 0ustar version=3 http://qa.debian.org/watch/sf.php/pyqwt/PyQwt3D-(.*)\.tar\.gz debian uupdate debian/compat0000664000000000000000000000000211533531541010367 0ustar 5 debian/python-qwt3d-qt4.dirs0000664000000000000000000000003211533531541013136 0ustar usr/share/sip/PyQt4/Qwt3D debian/python-qwt3d-qt4.preinst0000664000000000000000000000031211533531541013662 0ustar #!/bin/sh # TODO: remove this file after releasing Squeeze set -e if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 0.1.7~cvs20090625-1 then pycentral pkgremove python-qwt3d-qt4 fi #DEBHELPER#