[sfcgal] 02/04: Initial files for building a debian package
Sven Geggus
giggls-guest at moszumanska.debian.org
Fri Jun 12 09:14:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
giggls-guest pushed a commit to branch master
in repository sfcgal.
commit b9c57aa42f8a0431259c6f11f93cf16dc2009127
Author: Sven Geggus <sven-deb at geggus.net>
Date: Wed Jun 10 11:00:24 2015 +0200
Initial files for building a debian package
---
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 50 ++++++++++++++++++++++++++++++++++++++++++++
debian/copyright | 23 ++++++++++++++++++++
debian/docs | 2 ++
debian/gbp.conf | 16 ++++++++++++++
debian/get-orig-source | 45 +++++++++++++++++++++++++++++++++++++++
debian/libsfcgal-dev.dirs | 2 ++
debian/libsfcgal-dev.install | 3 +++
debian/libsfcgal1.dirs | 1 +
debian/libsfcgal1.install | 1 +
debian/rules | 30 ++++++++++++++++++++++++++
debian/sfcgal-bin.dirs | 1 +
debian/sfcgal-bin.install | 1 +
debian/source/format | 1 +
debian/watch | 22 +++++++++++++++++++
16 files changed, 204 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..369cfce
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+sfcgal (1.1.0-1) UNRELEASED; urgency=low
+
+ * Initial release
+
+ -- Sven Geggus <sven-deb at geggus.net> Tue, 09 Jun 2015 14:24:02 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..31387ff
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,50 @@
+Source: sfcgal
+Priority: optional
+Maintainer: Sven Geggus <sven-deb at geggus.net>
+Build-Depends: debhelper (>= 9), cmake,
+ libcgal-dev, libboost-all-dev, libmpfr-dev, libgmp-dev,
+ libopenscenegraph-dev, libopenthreads-dev, libpq-dev,
+ libqt4-dev, libqt4-opengl-dev, libopenscenegraph-dev
+Standards-Version: 3.9.5
+Section: libs
+Homepage: http://www.sfcgal.org/
+#Vcs-Git: git://anonscm.debian.org/collab-maint/sfcgal.git
+#Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/sfcgal.git;a=summary
+
+Package: libsfcgal-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends: libsfcgal1 (= ${binary:Version}), ${misc:Depends}
+Description: Library for ISO 19107:2013 and OGC Simple Features 1.2 for 3D operations.
+ SFCGAL is a C++ wrapper library around CGAL with the aim of
+ supporting ISO 19107:2013 and OGC Simple Features Access 1.2 for 3D
+ operations.
+ .
+ SFCGAL provides standard compliant geometry types and operations,
+ that can be accessed from its C or C++ APIs. PostGIS uses the C API,
+ to expose some SFCGAL's functions in spatial databases (cf. PostGIS
+ manual).
+
+Package: libsfcgal1
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: any
+Multi-Arch: same
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Library for ISO 19107:2013 and OGC Simple Features 1.2 for 3D operations.
+ SFCGAL is a C++ wrapper library around CGAL with the aim of
+ supporting ISO 19107:2013 and OGC Simple Features Access 1.2 for 3D
+ operations.
+ .
+ SFCGAL provides standard compliant geometry types and operations,
+ that can be accessed from its C or C++ APIs. PostGIS uses the C API,
+ to expose some SFCGAL's functions in spatial databases (cf. PostGIS
+ manual).
+
+Package: sfcgal-bin
+Architecture: any
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Simple viewer SFCGAL library
+ viewer-SFCGAL is a simple application demonstrating the features of
+ the SFCGAL library
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6b4694b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,23 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: SFCGAL
+Source: http://www.sfcgal.org/
+
+Files: *
+Copyright: 2012-2015 Mickael Borne (IGN), Hugo Mercier (Oslandia), Vincent Mora (Oslandia), Olivier Courtin (Oslandia)
+License: GPL-2+
+ 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 program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..8913f46
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README.md
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..21d0417
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,16 @@
+[DEFAULT]
+
+# The default name for the upstream branch is "upstream".
+# Change it if the name is different (for instance, "master").
+upstream-branch = upstream
+
+# The default name for the Debian branch is "master".
+# Change it if the name is different (for instance, "debian/unstable").
+debian-branch = master
+
+# git-import-orig uses the following names for the upstream tags.
+# Change the value if you are not using git-import-orig
+upstream-tag = upstream/%(version)s
+
+# Always use pristine-tar.
+pristine-tar = True
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..e486809
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,45 @@
+#!/bin/sh
+# if you need to repack for whatever reason you can
+# use this script via uscan or directly
+#
+# FIXME: currently the code is not conform to Debian Policy
+# http://www.debian.org/doc/debian-policy/ch-source.html
+# "get-orig-source (optional)"
+# This target may be invoked in any directory, ...
+# --> currently it is assumed the script is called in the
+# source directory featuring the debian/ dir
+
+COMPRESS=xz
+
+set -e
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+
+if ! echo $@ | grep -q upstream-version ; then
+ VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+ uscan --force-download
+else
+ VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\1?"`
+ if echo "$VERSION" | grep -q "upstream-version" ; then
+ echo "Unable to parse version number"
+ exit
+ fi
+fi
+
+TARDIR=${NAME}-${VERSION}
+mkdir -p ../tarballs
+cd ../tarballs
+# need to clean up the tarballs dir first because upstream tarball might
+# contain a directory with unpredictable name
+rm -rf *
+tar -xaf ../${TARDIR}.tar.gz
+
+UPSTREAMTARDIR=`find . -mindepth 1 -maxdepth 1 -type d`
+if [ "${UPSTREAMTARDIR}" != "${TARDIR}" ] ; then
+ mv "${UPSTREAMTARDIR}" "${TARDIR}"
+fi
+
+# Remove useless binaries
+# ... do something which needs to be done ...
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
+rm -rf ${TARDIR}
diff --git a/debian/libsfcgal-dev.dirs b/debian/libsfcgal-dev.dirs
new file mode 100644
index 0000000..4418816
--- /dev/null
+++ b/debian/libsfcgal-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
diff --git a/debian/libsfcgal-dev.install b/debian/libsfcgal-dev.install
new file mode 100644
index 0000000..4f3c444
--- /dev/null
+++ b/debian/libsfcgal-dev.install
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/bin/sfcgal-config
diff --git a/debian/libsfcgal1.dirs b/debian/libsfcgal1.dirs
new file mode 100644
index 0000000..6845771
--- /dev/null
+++ b/debian/libsfcgal1.dirs
@@ -0,0 +1 @@
+usr/lib
diff --git a/debian/libsfcgal1.install b/debian/libsfcgal1.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libsfcgal1.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b01f408
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+DH_VERBOSE = 1
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+# package maintainers to append LDFLAGS
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+
+# main packaging script based on dh7 syntax
+%:
+ dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DSFCGAL_BUILD_VIEWER=ON -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH)
+
+override_dh_auto_test:
+ true
diff --git a/debian/sfcgal-bin.dirs b/debian/sfcgal-bin.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/sfcgal-bin.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/sfcgal-bin.install b/debian/sfcgal-bin.install
new file mode 100644
index 0000000..0c1e4a6
--- /dev/null
+++ b/debian/sfcgal-bin.install
@@ -0,0 +1 @@
+usr/bin/viewer-SFCGAL
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)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..432d77c
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,22 @@
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php #PACKAGE#-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/#PACKAGE#-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/#PACKAGE#-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge
+# http://sf.net/#PACKAGE#/#PACKAGE#-(\d[\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
+
+# Uncomment to find new files on GooglePages
+# http://code.google.com/p/#PACKAGE#/downloads/list?can=1 \
+# .*/#PACKAGE#-([-.\d]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))|zip)
+
+# if tweaking of source is needed
+# \
+# debian debian/get-orig-source
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/sfcgal.git
More information about the Pkg-grass-devel
mailing list