Add python support
authorDimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
Mon, 6 Sep 2010 21:04:21 +0000 (00:04 +0300)
committerDimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
Mon, 6 Sep 2010 21:04:21 +0000 (00:04 +0300)
debian/changelog
debian/control
debian/patches/debian-changes-1.10.2.1-1
debian/patches/debian-changes-1.10.2.1-2
debian/python-mathgl.install [new file with mode: 0644]
debian/rules

index 34cd40f1a7f7e38e3d28bc24698f2540b68bc436..bb31275079d543fb279eb0ed4bd7e27502ae4176 100644 (file)
@@ -1,6 +1,6 @@
-mathgl (1.10.2.1-2) UNRELEASED; urgency=low
+mathgl (1.10.2.1-2) unstable; urgency=low
 
-  * Update to Debian Policy 3.9.1.0.
+  * Add python support (Closes: #541481).
 
  -- Dimitrios Eftaxiopoulos <eftaxi12@otenet.gr>  Wed, 18 Aug 2010 08:42:17 +0200
        
index 524f6eb48e97ecf4029eb4369e726e9063603453..64db98b8c688ad8f4e1a3d0317908974c64017b9 100644 (file)
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
 Uploaders: Dimitrios Eftaxiopoulos <eftaxi12@otenet.gr>, D Haley <mycae@yahoo.com>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 7), libltdl-dev, libgsl0-dev, freeglut3-dev, libgl1-mesa-dev | libgl-dev, libpng-dev, libhdf5-serial-dev | libhdf5-dev, libjpeg-dev, libtiff-dev, libfltk-dev, libqt4-dev, libwxgtk2.8-dev, swig, texinfo, texi2html, texlive, texlive-generic-recommended, octave3.2-headers, libgif-dev, autoconf, automake, quilt
+Build-Depends: debhelper (>= 7), libltdl-dev, libgsl0-dev, freeglut3-dev, libgl1-mesa-dev | libgl-dev, libpng-dev, libhdf5-serial-dev | libhdf5-dev, libjpeg-dev, libtiff-dev, libfltk-dev, libqt4-dev, libwxgtk2.8-dev, swig, texinfo, texi2html, texlive, texlive-generic-recommended, octave3.2-headers, libgif-dev, autoconf, automake, quilt, python
 Standards-Version: 3.9.1
 Homepage: http://mathgl.sourceforge.net/index.html
 Vcs-Git: git://git.debian.org/debian-science/packages/mathgl.git
@@ -124,3 +124,16 @@ Description: library for scientific graphs. (GLUT runtime library)
  languages, such as, C, Fortran, Pascal, Forth, Python, Octave.
  .
  This package containst the GLUT frontend.
+
+Package: python-mathgl
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: library for scientific graphs. (Python module)
+ A free cross-platform library of fast C++ routines for plotting data in up
+ to 3 dimensions. It can export plots to bitmaps and vector EPS, SVG, IDTF
+ files. There are simple window interfaces based on GLUT, FLTK and/or Qt.
+ MathGL can also be used in the console. There are interfaces to a set of
+ languages, such as, C, Fortran, Pascal, Forth, Python, Octave.
+ .
+ This package provides the Python module for mathgl. 
index 047754599031641da70e801d4969175a3e0821b8..942691ab07b988f2f75cfa74c1c3a9b8aa8d8325 100644 (file)
@@ -28605,7 +28605,7 @@ Last-Update: <YYYY-MM-DD>
 +GREP = /bin/grep
 +GSL_FLAGS = -I/usr/include
 +GSL_LIBS = -L/usr/lib -lgsl -lgslcblas -lm
-+HAVE_SWIG = 
++HAVE_SWIG = true
 +HDF5_FLAGS = -DHAVE_HDF5 -DH5_USE_16_API
 +HDF5_LIBS = -lhdf5
 +INSTALL = /usr/bin/install -c
@@ -28649,12 +28649,12 @@ Last-Update: <YYYY-MM-DD>
 +PNG_LIBS = -lpng
 +PTHREAD_FLAGS = -DHAVE_PTHREAD
 +PTHREAD_LIBS = -lpthread
-+PYTHON = 
-+PYTHON_EXEC_PREFIX = 
-+PYTHON_HEADERS = 
-+PYTHON_PLATFORM = 
-+PYTHON_PREFIX = 
-+PYTHON_VERSION = 
++PYTHON = /usr/bin/python
++PYTHON_EXEC_PREFIX = ${exec_prefix}
++PYTHON_HEADERS = -I/usr/include/python2.6 -I/usr/include/python2.6 -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
++PYTHON_PLATFORM = linux2
++PYTHON_PREFIX = ${prefix}
++PYTHON_VERSION = 2.6
 +QMAKE = /usr/bin/qmake-qt4
 +QT_CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(QT_DEFINES)
 +QT_CPPFLAGS = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I.
@@ -28720,13 +28720,13 @@ Last-Update: <YYYY-MM-DD>
 +mkdir_p = /bin/mkdir -p
 +oldincludedir = /usr/include
 +pdfdir = ${docdir}
-+pkgpyexecdir = 
-+pkgpythondir = 
++pkgpyexecdir = ${pyexecdir}/mathgl
++pkgpythondir = ${pythondir}/mathgl
 +prefix = /usr
 +program_transform_name = s,x,x,
 +psdir = ${docdir}
-+pyexecdir = 
-+pythondir = 
++pyexecdir = ${exec_prefix}/lib/python2.6/dist-packages
++pythondir = ${prefix}/lib/python2.6/dist-packages
 +sbindir = ${exec_prefix}/sbin
 +sharedstatedir = ${prefix}/com
 +srcdir = .
index 8942369a96d127aa344eaf1fddd60d3dd6277038..77a0f95c10a68286a846ed33622561f2f637a9ae 100644 (file)
@@ -3,12 +3,13 @@ Description: Upstream changes introduced in version 1.10.2.1-2
  Here's the last changelog entry, hopefully it gives details on why
  those changes were made:
  .
- mathgl (1.10.2.1-2) UNRELEASED; urgency=low
+ mathgl (1.10.2.1-2) unstable; urgency=low
  .
-   * Update to Debian Policy 3.9.1.0.
+   * Add python support (Closes: #541481).
  .
  The person named in the Author field signed this changelog entry.
 Author: Dimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
+Bug-Debian: http://bugs.debian.org/541481
 
 ---
 The information above should follow the Patch Tagging Guidelines, please
diff --git a/debian/python-mathgl.install b/debian/python-mathgl.install
new file mode 100644 (file)
index 0000000..64a7411
--- /dev/null
@@ -0,0 +1 @@
+debian/tmp/usr/lib/python2.6/dist-packages/*
index 8186293da1aa6d87d822ff9805edfa7334e93366..67c6b9c5b2945b6852d961ea95070b111b4f306e 100755 (executable)
@@ -25,7 +25,7 @@ configure-stamp: $(QUILT_STAMPFN)
        CFLAGS="$(CFLAGS)" \
                ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
                --infodir=\$${prefix}/share/info --host=$(DEB_HOST_GNU_TYPE) \
-               --build=$(DEB_BUILD_GNU_TYPE) --enable-all --enable-octave
+               --build=$(DEB_BUILD_GNU_TYPE) --enable-all --enable-octave --enable-python
        touch $@
 
 build: build-stamp
@@ -51,6 +51,8 @@ install: build
        cp texinfo/*.pdf $(CURDIR)/debian/tmp/usr/share/doc/mathgl/
        rm -f debian/tmp/usr/bin/*_example
        rm -f debian/tmp/usr/share/info/dir
+       find debian -name *.pyc* -type f -delete
+       find debian -name *.pyo* -type f -delete
 
 binary-indep: build install