46 changes: 35 additions & 11 deletions debian/control.raring
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Source: qgis
Section: science
Priority: extra
Priority: optional
Maintainer: QGIS developers <qgis-developer@lists.osgeo.org>
Build-Depends:
bison,
cmake (>= 2.8),
debhelper (>= 7),
debhelper (>= 9),
flex,
grass-dev,
libexpat1-dev,
libfcgi-dev,
libgdal-dev (>= 1.9.0) | libgdal1-dev (<< 1.9.0),
libgdal-dev (>= 1.9.0),
libgeos-dev (>= 3.0.0),
libgsl0-dev,
libpq-dev,
Expand Down Expand Up @@ -72,8 +72,10 @@ Description: QGIS - architecture-independent data

Package: libqgis{QGIS_ABI}
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Replaces: qgis (<=0.9.2rc1), libqgis-core1, libqgis-gui1, libqgis0, libqgis1
Conflicts: libqgis-core{QGIS_ABI}, libqgis-gui{QGIS_ABI}
Description: QGIS - shared libraries
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -87,7 +89,7 @@ Section: libdevel
Depends:
grass-dev,
libexpat1-dev,
libgdal-dev (>= 1.9.0) | libgdal1-dev (<< 1.9.0),
libgdal-dev (>= 1.9.0),
libgeos-dev (>= 3.0.0),
libgsl0-dev,
libpq-dev,
Expand Down Expand Up @@ -132,9 +134,15 @@ Description: GRASS plugin for QGIS - architecture-independent data
Package: python-qgis
Section: python
Architecture: any
Depends: python-qt4 (>=4.1.0), python-sip (>= 4.5.0), python-qgis-common (= ${source:Version}),
python-psycopg2, python-qscintilla2,
${python:Depends}, ${misc:Depends}, ${sip:Depends}
Depends:
python-qt4 (>= 4.1.0),
python-sip (>= 4.5.0),
python-qgis-common (= ${source:Version}),
python-psycopg2,
python-qscintilla2,
${python:Depends},
${misc:Depends},
${sip:Depends}
Provides: ${python:Provides}
XB-Python-Version: ${python:Versions}
Description: Python bindings to QGIS
Expand All @@ -147,7 +155,13 @@ Package: python-qgis-common
Section: python
Architecture: all
Provides: ${python:Provides}
Depends: gdal-bin, python-gdal, python-matplotlib, ${python:Depends}, ${misc:Depends}, ${sip:Depends}
Depends:
gdal-bin,
python-gdal,
python-matplotlib,
${python:Depends},
${misc:Depends},
${sip:Depends}
XB-Python-Version: ${python:Versions}
Description: Python bindings to QGIS - architecture-independent files
QGIS is a Geographic Information System (GIS) which manages, analyzes and
Expand All @@ -158,7 +172,10 @@ Description: Python bindings to QGIS - architecture-independent files

Package: qgis-providers
Architecture: any
Depends: qgis-providers-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis-providers-common (= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Replaces: qgis (<= 1.6)
Breaks: qgis (<= 1.6)
Description: collection of data providers to QGIS
Expand All @@ -180,7 +197,10 @@ Description: collection of data providers to QGIS - architecture-independent fil

Package: qgis-mapserver
Architecture: any
Depends: qgis-providers (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis-providers (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Description: QGIS mapserver
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand Down Expand Up @@ -209,7 +229,11 @@ Description: QGIS API documentation

Package: qgis-plugin-globe
Architecture: any
Depends: qgis (= ${binary:Version}), qgis-plugin-globe-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis (= ${binary:Version}),
qgis-plugin-globe-common (= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Description: OSG globe plugin for QGIS
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand Down
50 changes: 36 additions & 14 deletions debian/control.saucy
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Source: qgis
Section: science
Priority: extra
Priority: optional
Maintainer: QGIS developers <qgis-developer@lists.osgeo.org>
Build-Depends:
bison,
cmake (>= 2.8),
debhelper (>= 7),
debhelper (>= 9),
flex,
grass-dev,
libexpat1-dev,
libfcgi-dev,
libgdal-dev (>= 1.9.0) | libgdal1-dev (<< 1.9.0),
libgdal-dev (>= 1.9.0),
libgeos-dev (>= 3.0.0),
libgsl0-dev,
libpq-dev,
Expand Down Expand Up @@ -72,8 +72,10 @@ Description: QGIS - architecture-independent data

Package: libqgis{QGIS_ABI}
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Replaces: qgis (<=0.9.2rc1), libqgis-core1, libqgis-gui1, libqgis0, libqgis1
Conflicts: libqgis-core{QGIS_ABI}, libqgis-gui{QGIS_ABI}
Description: QGIS - shared libraries
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -87,7 +89,7 @@ Section: libdevel
Depends:
grass-dev,
libexpat1-dev,
libgdal-dev (>= 1.9.0) | libgdal1-dev (<< 1.9.0),
libgdal-dev (>= 1.9.0),
libgeos-dev (>= 3.0.0),
libgsl0-dev,
libpq-dev,
Expand Down Expand Up @@ -119,7 +121,7 @@ Description: GRASS plugin for QGIS

Package: qgis-plugin-grass-common
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}
Depends: python2.7, ${python:Depends}, ${misc:Depends}
Replaces: qgis-common (<< 1.5)
Breaks: qgis-common (<< 1.5)
Description: GRASS plugin for QGIS - architecture-independent data
Expand All @@ -132,11 +134,16 @@ Description: GRASS plugin for QGIS - architecture-independent data
Package: python-qgis
Section: python
Architecture: any
Depends: python-qt4 (>=4.1.0), python-sip (>= 4.5.0), python-qgis-common (= ${source:Version}),
python-psycopg2, python-qscintilla2,
${python:Depends}, ${misc:Depends}, ${sip:Depends}
Depends:
python-qt4,
python-sip,
python-qgis-common (= ${source:Version}),
python-psycopg2,
python-qscintilla2,
${python:Depends},
${misc:Depends},
${sip:Depends}
Provides: ${python:Provides}
XB-Python-Version: ${python:Versions}
Description: Python bindings to QGIS
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -147,8 +154,13 @@ Package: python-qgis-common
Section: python
Architecture: all
Provides: ${python:Provides}
Depends: gdal-bin, python-gdal, python-matplotlib, ${python:Depends}, ${misc:Depends}, ${sip:Depends}
XB-Python-Version: ${python:Versions}
Depends:
gdal-bin,
python-gdal,
python-matplotlib,
${python:Depends},
${misc:Depends},
${sip:Depends}
Description: Python bindings to QGIS - architecture-independent files
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -158,7 +170,10 @@ Description: Python bindings to QGIS - architecture-independent files

Package: qgis-providers
Architecture: any
Depends: qgis-providers-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis-providers-common (= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Replaces: qgis (<= 1.6)
Breaks: qgis (<= 1.6)
Description: collection of data providers to QGIS
Expand All @@ -180,7 +195,10 @@ Description: collection of data providers to QGIS - architecture-independent fil

Package: qgis-mapserver
Architecture: any
Depends: qgis-providers (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis-providers (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Description: QGIS mapserver
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand Down Expand Up @@ -209,7 +227,11 @@ Description: QGIS API documentation

Package: qgis-plugin-globe
Architecture: any
Depends: qgis (= ${binary:Version}), qgis-plugin-globe-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis (= ${binary:Version}),
qgis-plugin-globe-common (= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Description: OSG globe plugin for QGIS
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand Down
62 changes: 42 additions & 20 deletions debian/control.sid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: qgis
Section: science
Priority: extra
Priority: optional
Maintainer: QGIS developers <qgis-developer@lists.osgeo.org>
Build-Depends:
bison,
Expand All @@ -10,7 +10,7 @@ Build-Depends:
grass-dev,
libexpat1-dev,
libfcgi-dev,
libgdal1-dev,
libgdal-dev (>= 1.10.1-0~),
libgeos-dev (>= 3.0.0),
libgsl0-dev,
libpq-dev,
Expand All @@ -24,10 +24,9 @@ Build-Depends:
libspatialindex-dev,
pkg-config,
pyqt4-dev-tools,
python,
python-dev (>= 2.6.6-3~),
python-all (>= 2.6.6-3~),
python-all-dev (>= 2.6.6-3~),
python-qt4 (>= 4.1.0),
python-qt4-dev (>=4.1.0),
python-sip (>= 4.5.0),
python-sip-dev (>= 4.5.0),
libosgearth-dev,
Expand All @@ -39,9 +38,9 @@ Build-Depends:
xvfb, xauth,
xfonts-base, xfonts-100dpi, xfonts-75dpi, xfonts-scalable
Build-Conflicts: libqgis-dev, qgis-dev
Standards-Version: 3.9.3
XS-Python-Version: current
Standards-Version: 3.9.5
Homepage: http://qgis.org/
X-Python-Version: >= 2.7, << 2.8

Package: qgis
Architecture: any
Expand Down Expand Up @@ -70,8 +69,10 @@ Description: QGIS - architecture-independent data

Package: libqgis{QGIS_ABI}
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Replaces: qgis (<=0.9.2rc1), libqgis-core1, libqgis-gui1, libqgis0, libqgis1
Conflicts: libqgis-core{QGIS_ABI}, libqgis-gui{QGIS_ABI}
Description: QGIS - shared libraries
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -85,7 +86,7 @@ Section: libdevel
Depends:
grass-dev,
libexpat1-dev,
libgdal1-dev,
libgdal-dev (>= 1.10.1-0~),
libgeos-dev (>= 3.0.0),
libgsl0-dev,
libpq-dev,
Expand All @@ -95,7 +96,7 @@ Depends:
libsqlite3-dev,
python-qt4 (>=4.1.0),
python-qt4-dev (>=4.1.0),
qt4-designer (>=4.4.0),
qt4-designer (>= 4.8.0),
${misc:Depends}
Provides: qgis-dev
Replaces: qgis-dev, libqgis1-dev, libqgis1.4.0-dev
Expand All @@ -117,7 +118,7 @@ Description: GRASS plugin for QGIS

Package: qgis-plugin-grass-common
Architecture: all
Depends: python, ${python:Depends}, ${misc:Depends}
Depends: python2.7, ${python:Depends}, ${misc:Depends}
Replaces: qgis-common (<< 1.5)
Breaks: qgis-common (<< 1.5)
Description: GRASS plugin for QGIS - architecture-independent data
Expand All @@ -130,12 +131,18 @@ Description: GRASS plugin for QGIS - architecture-independent data
Package: python-qgis
Section: python
Architecture: any
Depends: python-qt4 (>=4.1.0), python-sip (>= 4.5.0), python-qgis-common (= ${source:Version}),
python-psycopg2, python-qscintilla2,
python-pyspatialite,
${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, ${sip:Depends}
Depends:
python-qt4,
python-sip,
python-qgis-common (= ${source:Version}),
python-psycopg2,
python-qscintilla2,
python-pyspatialite,
${shlibs:Depends},
${python:Depends},
${misc:Depends},
${sip:Depends}
Provides: ${python:Provides}
XB-Python-Version: ${python:Versions}
Description: Python bindings to QGIS
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -146,8 +153,13 @@ Package: python-qgis-common
Section: python
Architecture: all
Provides: ${python:Provides}
Depends: gdal-bin, python-gdal, python-matplotlib, ${python:Depends}, ${misc:Depends}, ${sip:Depends}
XB-Python-Version: ${python:Versions}
Depends:
gdal-bin,
python-gdal,
python-matplotlib,
${python:Depends},
${misc:Depends},
${sip:Depends}
Description: Python bindings to QGIS - architecture-independent files
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -157,7 +169,10 @@ Description: Python bindings to QGIS - architecture-independent files

Package: qgis-providers
Architecture: any
Depends: qgis-providers-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis-providers-common (= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Replaces: qgis (<= 1.6)
Breaks: qgis (<= 1.6)
Description: collection of data providers to QGIS
Expand All @@ -179,7 +194,10 @@ Description: collection of data providers to QGIS - architecture-independent fil

Package: qgis-mapserver
Architecture: any
Depends: qgis-providers (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis-providers (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Description: QGIS mapserver
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand Down Expand Up @@ -208,7 +226,11 @@ Description: QGIS API documentation

Package: qgis-plugin-globe
Architecture: any
Depends: qgis (= ${binary:Version}), qgis-plugin-globe-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis (= ${binary:Version}),
qgis-plugin-globe-common (= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Description: OSG globe plugin for QGIS
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand Down
60 changes: 41 additions & 19 deletions debian/control.sid-oracle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: qgis
Section: science
Priority: extra
Priority: optional
Maintainer: QGIS developers <qgis-developer@lists.osgeo.org>
Build-Depends:
bison,
Expand All @@ -10,7 +10,7 @@ Build-Depends:
grass-dev,
libexpat1-dev,
libfcgi-dev,
libgdal1-dev,
libgdal-dev (>= 1.10.1-0~),
libgeos-dev (>= 3.0.0),
libgsl0-dev,
libpq-dev,
Expand All @@ -24,10 +24,9 @@ Build-Depends:
libspatialindex-dev,
pkg-config,
pyqt4-dev-tools,
python,
python-dev (>= 2.6.6-3~),
python-all (>= 2.6.6-3~),
python-all-dev (>= 2.6.6-3~),
python-qt4 (>= 4.1.0),
python-qt4-dev (>=4.1.0),
python-sip (>= 4.5.0),
python-sip-dev (>= 4.5.0),
libosgearth-dev,
Expand All @@ -40,9 +39,9 @@ Build-Depends:
xfonts-base, xfonts-100dpi, xfonts-75dpi, xfonts-scalable,
oracle-instantclient11.2-devel
Build-Conflicts: libqgis-dev, qgis-dev
Standards-Version: 3.9.3
XS-Python-Version: current
Standards-Version: 3.9.5
Homepage: http://qgis.org/
X-Python-Version: >= 2.7, << 2.8

Package: qgis
Architecture: any
Expand Down Expand Up @@ -71,8 +70,10 @@ Description: QGIS - architecture-independent data

Package: libqgis{QGIS_ABI}
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Replaces: qgis (<=0.9.2rc1), libqgis-core1, libqgis-gui1, libqgis0, libqgis1
Conflicts: libqgis-core{QGIS_ABI}, libqgis-gui{QGIS_ABI}
Description: QGIS - shared libraries
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -86,7 +87,7 @@ Section: libdevel
Depends:
grass-dev,
libexpat1-dev,
libgdal1-dev,
libgdal-dev (>= 1.10.1-0~),
libgeos-dev (>= 3.0.0),
libgsl0-dev,
libpq-dev,
Expand Down Expand Up @@ -118,7 +119,7 @@ Description: GRASS plugin for QGIS

Package: qgis-plugin-grass-common
Architecture: all
Depends: python, ${python:Depends}, ${misc:Depends}
Depends: python2.7, ${python:Depends}, ${misc:Depends}
Replaces: qgis-common (<< 1.5)
Breaks: qgis-common (<< 1.5)
Description: GRASS plugin for QGIS - architecture-independent data
Expand All @@ -131,12 +132,18 @@ Description: GRASS plugin for QGIS - architecture-independent data
Package: python-qgis
Section: python
Architecture: any
Depends: python-qt4 (>=4.1.0), python-sip (>= 4.5.0), python-qgis-common (= ${source:Version}),
python-psycopg2, python-qscintilla2,
python-pyspatialite,
${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, ${sip:Depends}
Depends:
python-qt4,
python-sip,
python-qgis-common (= ${source:Version}),
python-psycopg2,
python-qscintilla2,
python-pyspatialite,
${shlibs:Depends},
${python:Depends},
${misc:Depends},
${sip:Depends}
Provides: ${python:Provides}
XB-Python-Version: ${python:Versions}
Description: Python bindings to QGIS
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -147,8 +154,13 @@ Package: python-qgis-common
Section: python
Architecture: all
Provides: ${python:Provides}
Depends: gdal-bin, python-gdal, python-matplotlib, ${python:Depends}, ${misc:Depends}, ${sip:Depends}
XB-Python-Version: ${python:Versions}
Depends:
gdal-bin,
python-gdal,
python-matplotlib,
${python:Depends},
${misc:Depends},
${sip:Depends}
Description: Python bindings to QGIS - architecture-independent files
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand All @@ -158,7 +170,10 @@ Description: Python bindings to QGIS - architecture-independent files

Package: qgis-providers
Architecture: any
Depends: qgis-providers-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis-providers-common (= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Replaces: qgis (<= 1.6)
Breaks: qgis (<= 1.6)
Description: collection of data providers to QGIS
Expand All @@ -180,7 +195,10 @@ Description: collection of data providers to QGIS - architecture-independent fil

Package: qgis-mapserver
Architecture: any
Depends: qgis-providers (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis-providers (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Description: QGIS mapserver
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand Down Expand Up @@ -209,7 +227,11 @@ Description: QGIS API documentation

Package: qgis-plugin-globe
Architecture: any
Depends: qgis (= ${binary:Version}), qgis-plugin-globe-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Depends:
qgis (= ${binary:Version}),
qgis-plugin-globe-common (= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Description: OSG globe plugin for QGIS
QGIS is a Geographic Information System (GIS) which manages, analyzes and
display databases of geographic information.
Expand Down
1,781 changes: 1,717 additions & 64 deletions debian/copyright

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions debian/libqgis-dev.install
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ usr/lib/libqgis_core.so
usr/lib/libqgis_gui.so
usr/lib/libqgis_analysis.so
usr/lib/libqgis_networkanalysis.so
usr/lib/libqgisgrass.so
usr/lib/libqgispython.so
usr/lib/libqgissqlanyconnection.so
usr/share/qgis/FindQGIS.cmake
3 changes: 3 additions & 0 deletions debian/qgis-common.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
usr/share/qgis/doc/CODING
usr/share/qgis/doc/CODING.html
usr/share/qgis/doc/favicon.ico
usr/share/qgis/doc/index.html
usr/share/qgis/doc/style.css
Expand All @@ -9,6 +10,8 @@ usr/share/qgis/doc/TRANSLATORS
usr/share/qgis/doc/DONORS
usr/share/qgis/doc/INSTALL
usr/share/qgis/doc/INSTALL.html
usr/share/qgis/doc/news
usr/share/qgis/doc/news.html
usr/share/qgis/doc/images
usr/share/qgis/i18n/*
usr/share/qgis/images/*
Expand Down
1 change: 1 addition & 0 deletions debian/qgis-providers-common.install
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
usr/share/qgis/svg/*
usr/share/qgis/resources/qgis.db
usr/share/qgis/resources/srs.db
usr/share/qgis/resources/customization.xml
usr/share/qgis/resources/symbology-ng-style.db
usr/share/qgis/resources/cpt-city-qgis-min/*
45 changes: 8 additions & 37 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
QT_PLUGIN_DIR = usr/lib/$(DEB_BUILD_MULTIARCH)/qt4/plugins

DEB_TEST_TARGET ?= Experimental

ifeq (,$(DISTRIBUTION))
DISTRIBUTION := $(shell dpkg-parsechangelog --format rfc822 | sed -ne "s/^Distribution: //p")
endif

ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"squeeze wheezy jessie lucid maverick natty oneiric precise quantal raring saucy sid-oracle"))
ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"wheezy jessie precise quantal raring saucy sid-oracle"))
DISTRIBUTION := sid
endif

Expand All @@ -27,11 +29,6 @@ TESTMAKE=xvfb-run -a -n 1 -s "-screen 0 1280x1024x24 -dpi 96" $(MAKE)
else
TESTMAKE=$(MAKE)
endif
ifneq (,$(findstring $(DISTRIBUTION),"lucid"))
# excludes tests requiring unittest2 not available on lucid
TESTMAKE += ARGS="-E PyQgsRectangle"
endif


QGIS_MAJOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MAJOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
QGIS_MINOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MINOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
Expand All @@ -54,31 +51,17 @@ CMAKE_OPTS := \

MAKEFLAGS += VERBOSE=YES

ifneq (,$(findstring $(DISTRIBUTION),"squeeze lucid"))
CMAKE_OPTS += -D WITH_STAGED_PLUGINS=FALSE
endif

ifeq (,$(findstring $(DISTRIBUTION),"squeeze lucid maverick natty oneiric"))
DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
QT_PLUGIN_DIR = usr/lib/$(DEB_BUILD_MULTIARCH)/qt4/plugins
else
QT_PLUGIN_DIR = usr/lib/qt4/plugins
endif

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif

ifneq (,$(findstring $(DISTRIBUTION),"squeeze wheezy jessie sid lucid maverick natty oneiric precise raring saucy"))
ifneq (,$(findstring $(DISTRIBUTION),"wheezy jessie sid precise raring saucy"))
CMAKE_OPTS += -D WITH_PYSPATIALITE=TRUE
endif

ifneq (,$(findstring $(DISTRIBUTION),"squeeze lucid maverick natty oneiric"))
CMAKE_OPTS += -D WITH_INTERNAL_SPATIALITE=TRUE
endif

ifneq (,$(findstring $(DISTRIBUTION),"squeeze lucid maverick natty oneiric jessie"))
ifneq (,$(findstring $(DISTRIBUTION),"jessie"))
CMAKE_OPTS += -D WITH_GLOBE=FALSE
else
CMAKE_OPTS += -D WITH_GLOBE=TRUE
Expand All @@ -92,7 +75,7 @@ ifneq (,$(findstring -oracle,$(DISTRIBUTION)))
CMAKE_OPTS += -D WITH_ORACLE=TRUE
endif

ifneq (,$(findstring $(DISTRIBUTION),"sid sid-oracle"))
ifneq (,$(findstring $(DISTRIBUTION),"sid"))
CMAKE_OPTS += -D SPATIALINDEX_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libspatialindex.so
endif

Expand Down Expand Up @@ -159,17 +142,9 @@ build: build-stamp
build-stamp: debian/build/CMakeCache.txt
dh_testdir

ifneq (,$(findstring $(DISTRIBUTION),"squeeze lucid"))
perl -0777 -i.bak -pe 's/^%Module\(name=(.*),\s*version=(\d+),\s*keyword_arguments="Optional"\s*\)/%Module $$1 $$2/m;' python/core/core.sip python/gui/gui.sip python/analysis/analysis.sip python/analysis/network/networkanalysis.sip
endif

# Add here commands to compile the package.
$(MAKE) -C debian/build

ifneq (,$(findstring $(DISTRIBUTION),"squeeze lucid"))
for i in python/core/core.sip python/gui/gui.sip python/analysis/analysis.sip python/analysis/network/networkanalysis.sip; do mv $$i.bak $$i; done
endif

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# Code to run the package test suite - and ignore the outcome for now
-LD_LIBRARY_PATH=$(PWD)/debian/build/output/lib:$(LD_LIBRARY_PATH) $(TESTMAKE) -C debian/build $(DEB_TEST_TARGET)
Expand Down Expand Up @@ -204,6 +179,8 @@ install: build
# Add here commands to install the package into debian/tmp.
$(MAKE) -C debian/build install DESTDIR=$(CURDIR)/debian/tmp

perl -i -pe 's=#!/usr/bin/env python=#!/usr/bin/python2.7=;' $(find debian/tmp -name "*.py")

# remove unwanted files
! [ -f debian/tmp/usr/share/qgis/doc/api/installdox ] || rm debian/tmp/usr/share/qgis/doc/api/installdox
! [ -f debian/tmp/usr/share/qgis/doc/api/jquery.js ] || ln -sf /usr/share/javascript/jquery/jquery.js debian/tmp/usr/share/qgis/doc/api/jquery.js
Expand Down Expand Up @@ -234,14 +211,8 @@ binary-arch: build install
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis-plugin-grass/usr/bin/qgis
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis-plugin-grass/usr/bin/qbrowser

ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"natty oneiric"))
dh_sip
endif
ifneq (,$(findstring $(DISTRIBUTION),"wheezy jessie sid quantal raring saucy"))
dh_python2 --no-guessing-versions
else
dh_pycentral
endif
dh_installmenu
dh_icons
dh_installman -pqgis qgis.1 qbrowser.1
Expand Down
15 changes: 7 additions & 8 deletions doc/linux.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@ sudo apt-get update
== Install build dependencies ==

|| Distribution | install command for packages |
| lucid | ``apt-get install bison cmake doxygen flex git-core graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libpq-dev libproj-dev libqt4-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-base xvfb`` |
| maverick | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libpq-dev libproj-dev libqt4-dev libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-base xvfb`` |
| natty | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libpq-dev libproj-dev libqt4-dev libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-base xvfb`` |
| oneiric | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libpq-dev libproj-dev libqt4-dev libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-base xvfb`` |
| precise | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-base xvfb`` |
| sid | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-base xvfb`` |
| squeeze | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libpq-dev libproj-dev libqt4-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-base xvfb`` |
| wheezy | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-base xvfb`` |
| precise | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb`` |
| quantal | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb`` |
| raring | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libpython2.7-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb`` |
| saucy | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libpython2.7-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb`` |
| wheezy | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb`` |
| jessie | ``apt-get install bison cmake flex grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libpq-dev libproj-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev`` |
| sid | ``apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev pkg-config pyqt4-dev-tools python-all python-all-dev python-qt4 python-qt4-dev python-sip python-sip-dev txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb`` |

(extracted from the respective control files in ``debian/``)

Expand Down