[qwtplot3d] 17/39: * Add qt5 library version * Add dependency on libqt5opengl5-dev * Make svn references canonical * Bump standards version to 3.9.5

Andreas Tille tille at debian.org
Mon Dec 25 10:30:03 UTC 2017


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

tille pushed a commit to branch master
in repository qwtplot3d.

commit ea2297748ebf3ca9ede665b82ad85ab9e319be09
Author: Gudjon I. Gudjonsson <gudjon at gudjon.org>
Date:   Thu Jul 17 08:58:32 2014 +0000

    * Add qt5 library version
    * Add dependency on libqt5opengl5-dev
    * Make svn references canonical
    * Bump standards version to 3.9.5
---
 debian/changelog                         |  9 +++++++++
 debian/control                           | 33 +++++++++++++++++++++++++++-----
 debian/libqwtplot3d-qt5-0.install        |  1 +
 debian/libqwtplot3d-qt5-dev.install      |  2 ++
 debian/patches/01_makefile.patch         |  4 ++--
 debian/patches/02_examples_include.patch | 28 +++++++++++++++++++++++++++
 debian/rules                             | 22 ++++++++++++++-------
 7 files changed, 85 insertions(+), 14 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index cb823a4..14e6329 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+qwtplot3d (0.2.7+svn191-8) UNRELEASED; urgency=medium
+
+  * Add qt5 library version
+  * Add dependency on libqt5opengl5-dev
+  * Make svn references canonical
+  * Bump standards version to 3.9.5
+
+ -- Gudjon I. Gudjonsson <gudjon at gudjon.org>  Wed, 16 Jul 2014 21:01:54 +0000
+
 qwtplot3d (0.2.7+svn191-7) unstable; urgency=low
 
   * Remove -lGLU from examples/common.pro, Reverting
diff --git a/debian/control b/debian/control
index 2eb728d..6a1c60e 100644
--- a/debian/control
+++ b/debian/control
@@ -4,13 +4,12 @@ Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.
 Uploaders: Gudjon I. Gudjonsson <gudjon at gudjon.org>,
  Andreas Tille <tille at debian.org>
 Build-Depends: debhelper (>= 8), doxygen, libqt4-dev, libqt4-opengl-dev, zlib1g-dev,
- libglu1-mesa-dev | libglu-dev
-Standards-Version: 3.9.3
+ libglu1-mesa-dev | libglu-dev, libqt5opengl5-dev
+Standards-Version: 3.9.5
 Section: libs
 Homepage: http://qwtplot3d.sourceforge.net
-Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/qwtplot3d/trunk/
-Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/qwtplot3d/trunk
-DM-Upload-Allowed: yes
+Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/qwtplot3d/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-science/packages/qwtplot3d/trunk
 
 Package: libqwtplot3d-qt4-dev
 Section: libdevel
@@ -36,6 +35,30 @@ Description: 3D plotting library based on Qt4/OpenGL (runtime)
  This package contains the files necessary for running applications that
  use the QwtPlot3D library and Qt4.
 
+Package: libqwtplot3d-qt5-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libqwtplot3d-qt5-0 (= ${binary:Version})
+Description: 3D plotting library based on Qt5/OpenGL (development)
+ QwtPlot3D is a feature rich Qt/OpenGL-based C++ programming
+ library, providing essentially a bunch of 3D-widgets for 
+ programmers.
+ .
+ This package contains the QwtPlot3D development files for Qt5.
+
+Package: libqwtplot3d-qt5-0
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: libqwtplot3d-qt4
+Replaces: libqwtplot3d-qt4
+Description: 3D plotting library based on Qt5/OpenGL (runtime)
+ QwtPlot3D is a feature rich Qt/OpenGL-based C++ programming
+ library, providing essentially a bunch of 3D-widgets for 
+ programmers.
+ .
+ This package contains the files necessary for running applications that
+ use the QwtPlot3D library and Qt5.
+
 Package: libqwtplot3d-doc
 Section: doc
 Architecture: all
diff --git a/debian/libqwtplot3d-qt5-0.install b/debian/libqwtplot3d-qt5-0.install
new file mode 100644
index 0000000..ef17f57
--- /dev/null
+++ b/debian/libqwtplot3d-qt5-0.install
@@ -0,0 +1 @@
+usr/lib/lib*qt5.so.*
diff --git a/debian/libqwtplot3d-qt5-dev.install b/debian/libqwtplot3d-qt5-dev.install
new file mode 100644
index 0000000..566d068
--- /dev/null
+++ b/debian/libqwtplot3d-qt5-dev.install
@@ -0,0 +1,2 @@
+usr/include/qwtplot3d-qt5
+usr/lib/libqwtplot3d-qt5.so
diff --git a/debian/patches/01_makefile.patch b/debian/patches/01_makefile.patch
index 4e9f052..d63583a 100644
--- a/debian/patches/01_makefile.patch
+++ b/debian/patches/01_makefile.patch
@@ -67,10 +67,10 @@ Fixes the makefiles to install according to the Debian FHS
  #
  
 -TARGET            = qwtplot3d
-+TARGET            = qwtplot3d-qt4
++TARGET            = qwtplot3d-qt$$QT_VERSION
 +# Install directives
 +INSTALLBASE	  = /usr
-+headers.path      = $$INSTALLBASE/include/qwtplot3d-qt4
++headers.path      = $$INSTALLBASE/include/qwtplot3d-qt$$QT_VERSION
 +headers.files     = $$HEADERS
 +target.path       = $$INSTALLBASE/lib
 +INSTALLS          = doc headers target
diff --git a/debian/patches/02_examples_include.patch b/debian/patches/02_examples_include.patch
index 2bbc029..ff1ae9c 100644
--- a/debian/patches/02_examples_include.patch
+++ b/debian/patches/02_examples_include.patch
@@ -97,3 +97,31 @@ Change include directory from local to system wide
  
  using namespace Qwt3D;
  
+--- a/examples/common.pro
++++ b/examples/common.pro
+@@ -8,8 +8,8 @@
+ linux-g++:QMAKE_CXXFLAGS += -fno-exceptions
+ 
+ unix{
+-  unix:LIBS += -lqwtplot3d-qt4
+-  INCLUDEPATH    += /usr/include/qwtplot3d-qt4
++  unix:LIBS += -lqwtplot3d-qt$$QT_MAJOR_VERSION
++  INCLUDEPATH    += /usr/include/qwtplot3d-qt$$QT_MAJOR_VERSION
+ }
+ 
+ DEPENDPATH	= $$INCLUDEPATH
+--- a/qwtplot3d.pro
++++ b/qwtplot3d.pro
+@@ -1,10 +1,10 @@
+ # pro file for building the makefile for qwtplot3d
+ #
+ 
+-TARGET            = qwtplot3d-qt$$QT_VERSION
++TARGET            = qwtplot3d-qt$$QT_MAJOR_VERSION
+ # Install directives
+ INSTALLBASE	  = /usr
+-headers.path      = $$INSTALLBASE/include/qwtplot3d-qt$$QT_VERSION
++headers.path      = $$INSTALLBASE/include/qwtplot3d-qt$$QT_MAJOR_VERSION
+ headers.files     = $$HEADERS
+ target.path       = $$INSTALLBASE/lib
+ INSTALLS          = doc headers target
diff --git a/debian/rules b/debian/rules
index c10c34e..eec6750 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@
 # shared library versions, option 1
 version=0.2.7
 major=0
+QTS=4 5
 
 CFLAGS = -Wall -g
 
@@ -18,9 +19,13 @@ endif
 build: build-arch build-indep
 build-arch:
 	dh_testdir
-	mkdir -p build/qt4
-	cp -Rl `ls . |grep -v build|grep -v debian` build/qt4
-	cd build/qt4 && qmake-qt4 qwtplot3d.pro && $(MAKE)
+	set -e; for qtvers in ${QTS};\
+	do\
+		mkdir -p build/qt$$qtvers; \
+		cp -Rl `ls . |grep -v build|grep -v debian` build/qt$$qtvers; \
+		cd build/qt$$qtvers && qmake -qt=$$qtvers qwtplot3d.pro && $(MAKE); \
+		cd $(CURDIR)/; \
+	done
 
 build-indep:
 	dh_testdir
@@ -39,10 +44,13 @@ install: build
 	dh_testroot
 	dh_prep
 	dh_installdirs
-
-	cd build/qt4 && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install
-	mkdir -p debian/tmp/usr/include/qwtplot3d-qt4
-	cp -a include/* debian/tmp/usr/include/qwtplot3d-qt4
+	set -e; for qtvers in ${QTS};\
+	do\
+		mkdir -p $(CURDIR)/debian/tmp/usr/include/qwtplot3d-qt$$qtvers; \
+		cp -a include/* debian/tmp/usr/include/qwtplot3d-qt$$qtvers; \
+		cd build/qt$$qtvers && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install; \
+		cd $(CURDIR)/; \
+	done
 	mkdir -p debian/tmp/usr/share/doc/libqwtplot3d-doc/html
 	cp build/qt4/doc/web/doxygen/* debian/tmp/usr/share/doc/libqwtplot3d-doc/html
 

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



More information about the debian-science-commits mailing list