From 379daf93b18b0e716f4d075b364a25142288330f Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 19 Nov 2004 16:35:31 +0000 Subject: [PATCH] Added debian package builder scripts. git-svn-id: http://svn.osgeo.org/geos/trunk@585 5242fede-7e19-0410-aef8-94bd7d2200fb --- debian/changelog | 6 ++ debian/compat | 1 + debian/control | 52 ++++++++++++++++ debian/copyright | 28 +++++++++ debian/geos-config.1 | 63 +++++++++++++++++++ debian/libgeos-dev.dirs | 4 ++ debian/libgeos-dev.docs | 4 ++ debian/libgeos-dev.install | 7 +++ debian/libgeos-doc.doc-base | 10 +++ debian/libgeos-doc.docs | 3 + debian/libgeos.dirs | 1 + debian/libgeos.docs | 3 + debian/libgeos.install | 1 + debian/makedoc | 8 +++ debian/rules | 117 ++++++++++++++++++++++++++++++++++++ debian/shlibs.local | 1 + debian/watch | 6 ++ 17 files changed, 315 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/geos-config.1 create mode 100644 debian/libgeos-dev.dirs create mode 100644 debian/libgeos-dev.docs create mode 100644 debian/libgeos-dev.install create mode 100644 debian/libgeos-doc.doc-base create mode 100644 debian/libgeos-doc.docs create mode 100644 debian/libgeos.dirs create mode 100644 debian/libgeos.docs create mode 100644 debian/libgeos.install create mode 100755 debian/makedoc create mode 100755 debian/rules create mode 100644 debian/shlibs.local create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000..5a1806a2d3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +geos (2.0.1-1) unstable; urgency=low + + * Initial Release. + + -- Alex Bodnaru Mon, 8 Nov 2004 06:47:01 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000000..b8626c4cff --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000..cc87619218 --- /dev/null +++ b/debian/control @@ -0,0 +1,52 @@ +Source: geos +Section: science +Priority: optional +Maintainer: Alex Bodnaru +Build-Depends: debhelper (>= 4.0.0), c++-compiler, doxygen, autoconf2.13, autotools-dev +Standards-Version: 3.6.1 + +Package: libgeos-dev +Section: science +Priority: optional +Architecture: any +Depends: libgeos (= ${Source-Version}) +Recommends: libgeos-doc (= ${Source-Version}) +Description: GEOS (Geometry Engine - Open Source) development files + GEOS (Geometry Engine - Open Source) is a C++ port of the + Java Topology Suite (JTS). As such, it aims to contain the + complete functionality of JTS in C++. This includes all + the OpenGIS "Simple Features for SQL" spatial predicate + functions and spatial operators, as well as specific JTS + topology functions such as IsValid(). + . + This package contains the files required to compile and + link a program with GEOS. + +Package: libgeos +Section: science +Priority: optional +Architecture: any +Depends: ${shlibs:Depends} +Description: GEOS (Geometry Engine - Open Source) library + GEOS (Geometry Engine - Open Source) is a C++ port of the + Java Topology Suite (JTS). As such, it aims to contain the + complete functionality of JTS in C++. This includes all + the OpenGIS "Simple Features for SQL" spatial predicate + functions and spatial operators, as well as specific JTS + topology functions such as IsValid(). + +Package: libgeos-doc +Section: science +Priority: optional +Architecture: any +Recommends: www-browser libgeos (= ${Source-Version}) +Description: GEOS (Geometry Engine - Open Source) documentation + GEOS (Geometry Engine - Open Source) is a C++ port of the + Java Topology Suite (JTS). As such, it aims to contain the + complete functionality of JTS in C++. This includes all + the OpenGIS "Simple Features for SQL" spatial predicate + functions and spatial operators, as well as specific JTS + topology functions such as IsValid(). + . + This package contains a reference manual for the GEOS library + claees. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000..69d576afbd --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Alex Bodnaru on +Mon, 8 Nov 2004 06:47:01 +0200. + +It was downloaded from http://geos.refractions.net + +Upstream Authors: See /usr/share/libgeos/AUTHORS + +License: LGPL + +Copyright: + +This package is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser 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 +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this package; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + diff --git a/debian/geos-config.1 b/debian/geos-config.1 new file mode 100644 index 0000000000..0f20014e4a --- /dev/null +++ b/debian/geos-config.1 @@ -0,0 +1,63 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH GEOS 1 "November 8, 2004" +.\" Please adjust this date whenever revising the manpage. +.SH NAME +geos-config - script to get information about the installed version of GEOS +.SH SYNOPSIS +.B geos-config +[\-\-prefix\fI[=DIR]\fP] [\-\-version] [\-\-libs] [\-\-cflags] [\-\-includes] [\-\-jtsport] +.br +.SH DESCRIPTION +.PP +\fIgeos-config\fP is a tool that is used to configure to determine +the compiler and linker flags that should be used to compile +and link programs that use \fIGEOS\fP. It is also used internally +to the .m4 macros for GNU autoconf that are included with \fIGEOS\fP. +. +\fIGEOS (Geometry Engine - Open Source)\fP is a C++ port of the +\fIJava Topology Suite (JTS)\fP. As such, it aims to contain the +complete functionality of JTS in C++. This includes all the +\fIOpenGIS "Simple Features for SQL"\fP spatial predicate functions +and spatial operators, as well as specific JTS topology +functions such as IsValid(). +. +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +.l +\fIgeos-config\fP accepts the following options: +.TP 8 +.B \-\-version +Print the currently installed version of \fIGEOS\fP on the standard output. +.TP 8 +.B \-\-libs +Print the linker flags that are necessary to link a \fIGEOS\fP program. +.TP 8 +.B \-\-cflags +Print the compiler flags that are necessary to compile a \fIGEOS\fP program. +.TP 8 +.B \-\-prefix=PREFIX +If specified, use PREFIX instead of the installation prefix that \fIGEOS\fP +was built with when computing the output for the \-\-cflags and +\-\-libs options. This option must be specified before any +\-\-libs or \-\-cflags options. +.TP 8 +.B \-\-jtsport +Print the version of Java Topology Suite library, which is implemented +by the current \fIGEOS\fP library. + +.SH SEE ALSO +.BR /usr/share/doc/libgeos-doc/html/index.html +.br +The installed \fIGEOS\fP library is fully documented in the GEOS documentation +package, at +.IR /usr/share/doc/libgeos-doc/html/index.html +and the pages at the same location, viewable with a web browser. +. +For further information, see the \fIGEOS\fP home page, at +http://geos.refractions.net/. +.SH AUTHOR +See /usr/share/doc/libgeos/AUTHORS +.PP +This manual page was written by Alex Bodnaru , +for the Debian project (but may be used by others). diff --git a/debian/libgeos-dev.dirs b/debian/libgeos-dev.dirs new file mode 100644 index 0000000000..c2de429524 --- /dev/null +++ b/debian/libgeos-dev.dirs @@ -0,0 +1,4 @@ +usr/bin +usr/lib +usr/include +usr/include/geos diff --git a/debian/libgeos-dev.docs b/debian/libgeos-dev.docs new file mode 100644 index 0000000000..b0f9c78e00 --- /dev/null +++ b/debian/libgeos-dev.docs @@ -0,0 +1,4 @@ +README +NEWS +TODO +AUTHORS diff --git a/debian/libgeos-dev.install b/debian/libgeos-dev.install new file mode 100644 index 0000000000..763aee4039 --- /dev/null +++ b/debian/libgeos-dev.install @@ -0,0 +1,7 @@ +usr/bin/* +usr/include/* +usr/include/geos/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/*.la +usr/share/man/man1/* \ No newline at end of file diff --git a/debian/libgeos-doc.doc-base b/debian/libgeos-doc.doc-base new file mode 100644 index 0000000000..6ca1c52387 --- /dev/null +++ b/debian/libgeos-doc.doc-base @@ -0,0 +1,10 @@ +Document: geos-reference-manual +Title: GEOS Reference Manual +Author: See /usr/share/doc/libgeos-dev/AUTHORS +Abstract: This manual provides the libgeos + API reference. +Section: science + +Format: HTML +Index: /usr/share/doc/libgeos-doc/html/index.html +Files: /usr/share/doc/libgeos-doc/html/*.html diff --git a/debian/libgeos-doc.docs b/debian/libgeos-doc.docs new file mode 100644 index 0000000000..924bae56c3 --- /dev/null +++ b/debian/libgeos-doc.docs @@ -0,0 +1,3 @@ +doc/doxygen_docs/html +README +AUTHORS diff --git a/debian/libgeos.dirs b/debian/libgeos.dirs new file mode 100644 index 0000000000..68457717bd --- /dev/null +++ b/debian/libgeos.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libgeos.docs b/debian/libgeos.docs new file mode 100644 index 0000000000..0b4cf0a50d --- /dev/null +++ b/debian/libgeos.docs @@ -0,0 +1,3 @@ +NEWS +TODO +AUTHORS diff --git a/debian/libgeos.install b/debian/libgeos.install new file mode 100644 index 0000000000..d0dbfd18ac --- /dev/null +++ b/debian/libgeos.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/debian/makedoc b/debian/makedoc new file mode 100755 index 0000000000..d3ddb2cf4f --- /dev/null +++ b/debian/makedoc @@ -0,0 +1,8 @@ +#!/bin/sh + +cd doc +make doxygen-html +cd doxygen_docs +cd ../.. +mkdir -p debian/tmp/usr/share/man/man1 +cp debian/geos-config.1 debian/tmp/usr/share/man/man1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000..53de70ab70 --- /dev/null +++ b/debian/rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# shared library versions +version=`ls source/geom/.libs/lib*.so.* | \ + awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +major=`ls source/geom/.libs/lib*.so.* | \ + awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + $(MAKE) check + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + $(MAKE) installcheck DESTDIR=$(CURDIR)/debian/tmp + $(CURDIR)/debian/makedoc + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples doc/example.cpp + dh_install --sourcedir=debian/tmp +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/shlibs.local b/debian/shlibs.local new file mode 100644 index 0000000000..8754714f17 --- /dev/null +++ b/debian/shlibs.local @@ -0,0 +1 @@ +libgeos 2.0.1 geos (>> 2.0.1-0), geos (<< 2.0.1-99) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000000..6590f1262a --- /dev/null +++ b/debian/watch @@ -0,0 +1,6 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +geos.refractions.net / geos-(.*)\.tar.bz2 debian uupdate