From cb114a8b750c9a87884c1ff5c1d9f3055a2e38bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Thu, 25 Jun 2009 05:27:32 +0000 Subject: [PATCH] Debian build dir .. Thanks to Jean Pierre Charalambos git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@180 fdac6126-5c0c-442c-9429-916003d36597 --- debian/changelog | 11 ++++++++++ debian/compat | 1 + debian/control | 51 ++++++++++++++++++++++++++++++++++++++++++++++ debian/copyright | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ debian/rules | 37 +++++++++++++++++++++++++++++++++ 5 files changed, 153 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..40790204 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,11 @@ +openmesh (2.0~svn177-0~ppa1~jaunty1) jaunty; urgency=low + + * New upstream SVN snapshot. + * Splitting the library into libopenmesh and libopenmesh-dev, after + fixes to SONAMES added at this upstream revision. + * No documentation added yet. + * Removing r167 packages from the ppa because they do not conform with + packaging sources directly imported from SVN. According to debian + policies, in this case get-orig-source must be used. + + -- Jean Pierre Charalambos Wed, 24 Jun 2009 22:26:31 -0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..4a440bc8 --- /dev/null +++ b/debian/control @@ -0,0 +1,51 @@ +Source: openmesh +Section: libs +Priority: optional +Maintainer: Jean Pierre Charalambos +Build-Depends: cdbs, debhelper (>= 7), cmake, libglew1.5-dev, libqt4-dev, libqt4-opengl-dev, libqwt5-qt4-dev, freeglut3-dev, libfreetype6-dev, libgomp1 +Standards-Version: 3.8.0 +Homepage: http://www.openmesh.org + +Package: libopenmesh +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libglew1.5, libqt4-opengl, libqwt5-qt4, freeglut3, libfreetype6 +Description: OpenMesh is a generic and efficient data structure for representing + and manipulating polygonal meshes. OpenMesh provides the following features: + . + * Representation of arbitrary polygonal and pure triangle meshes. + * Explicit representation of vertices, halfedges, edges and faces. + * Fast neighborhood access, especially the one-ring neighborhood. + * Highly customizable. + . + This package contains the shared library needed to run programs using + OpenMesh. + +Package: libopenmesh-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libopenmesh (= ${binary:Version}), libglew1.5-dev, libqt4-dev, libqt4-opengl-dev, libqwt5-qt4-dev, freeglut3-dev, libfreetype6-dev +Suggests: qt4-designer(>= 4.5), qt4-dev-tools (>= 4.5), libopenmesh-doc, libopenmesh-apps +Description: OpenMesh is a generic and efficient data structure for representing + and manipulating polygonal meshes. OpenMesh provides the following features: + . + * Representation of arbitrary polygonal and pure triangle meshes. + * Explicit representation of vertices, halfedges, edges and faces. + * Fast neighborhood access, especially the one-ring neighborhood. + * Highly customizable. + . + This package contains all supplementary files (static library and headers) + you need to develop your own programs using the OpenMesh library. + +Package: libopenmesh-apps +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libopenmesh (= ${binary:Version}) +Description: OpenMesh is a generic and efficient data structure for representing + and manipulating polygonal meshes. OpenMesh provides the following features: + . + * Representation of arbitrary polygonal and pure triangle meshes. + * Explicit representation of vertices, halfedges, edges and faces. + * Fast neighborhood access, especially the one-ring neighborhood. + * Highly customizable. + . + This package contains some binary applications that show some features of the + OpenMesh library. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..c6667f99 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,53 @@ +This package was debianized by: + + Jean Pierre Charalambos on Sun, 21 Jun 2009 17:49:34 -0500 + +It was downloaded from: + + http://www.openmesh.org + +Upstream Author: + + Computer Graphics Group, RWTH Aachen + +Copyright: + + Copyright (C) 2001-2009 by Computer Graphics Group, RWTH Aachen + +License: + + This package 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. + + This package 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 this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is: + + Copyright C) 2009, Jean Pierre Charalambos + +and is licensed under the GPL, see above. + + +LICENSE_EXCEPTION added by the upstream authors + +As a special exception to the GNU Lesser General Public License, +you may use any file of this software library without restriction. +Specifically, if other files instantiate templates or use macros +or inline functions from this file, or you compile this file and +link it with other files to produce an executable, this file does +not by itself cause the resulting executable to be covered by the +GNU Lesser General Public License. This exception does not however +invalidate any other reasons why the executable file might be +covered by the GNU Lesser General Public License. diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..9fe262e4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/cmake.mk +#include /usr/share/cdbs/1/class/qmake.mk +#include /usr/share/cdbs/1/rules/simple-patchsys.mk + +# Add here any variable or target overrides you need. +PACKAGE = libopenmesh +SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p') +SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' ) +TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz +.PHONY: get-orig-source +get-orig-source: + rm -rf get-orig-source $(TARBALL) + mkdir get-orig-source + svn export -r $(SVN_REVISION) --username anonymous --password anonymous http://openmesh.org/svnrepo/OpenMesh/trunk/ \ + get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig + GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig + rm -rf get-orig-source + echo " "$(TARBALL)" created; move it to the right destination to build the package" + +install/libopenmesh:: + #dh_install -libopenmesh --autodest debian/tmp/usr/lib/OpenMesh/lib*.so.* + ln -sf libOpenMeshCore.so.2.0 debian/tmp/usr/lib/OpenMesh/libOpenMeshCore.so.2 + ln -sf libOpenMeshTools.so.2.0 debian/tmp/usr/lib/OpenMesh/libOpenMeshTools.so.2 + dh_install -plibopenmesh debian/tmp/usr/lib/OpenMesh/lib*.so.* /usr/lib/ + +install/libopenmesh-dev:: + #dh_install -plibopenmesh-dev --autodest debian/tmp/usr/lib/OpenMesh/lib*.so + #dh_install -plibopenmesh-dev debian/tmp/usr/lib/OpenMesh/lib*.prl /usr/lib/ + dh_install -plibopenmesh-dev debian/tmp/usr/lib/OpenMesh/lib*.so /usr/lib/ + dh_install -plibopenmesh-dev debian/tmp/usr/lib/OpenMesh/lib*.a /usr/lib/ + dh_install -plibopenmesh-dev --autodest debian/tmp/usr/include/OpenMesh + +install/libopenmesh-apps:: + dh_install -plibopenmesh-apps debian/tmp/usr/bin/* /usr/lib/OpenMesh/Apps -- GitLab