[dgit import tarball openorienteering-mapper 0.9.5-3 openorienteering-mapper_0.9.5-3.debian.tar.xz]
--- /dev/null
+# Updating the Git repository to a new upstream version
+
+1. Add the upstream git repository to our checkout as an additional
+ remote if not already present.
+
+ # git remote add upstream git@github.com:OpenOrienteering/mapper.git
+
+2. Update all remotes
+
+ # git remote update
+
+3. Download the new upstream release
+
+ # uscan --download
+
+ or, a particular upstream release
+
+ # uscan --download-version X.Y.Z
+
+4. Merge the upstream release tag to the debian branch
+
+ # git checkout debian
+ # git merge vX.Y.Z
+
+5. Commit the upstream tarball to the pristine-tar branch
+
+ # pristine-tar commit ../openorienteering-mapper_X.Y.Z.orig.tar.gz vX.Y.Z
+
+6. Push the changes to salsa
+
+ # git push origin debian
+ # git push origin pristine-tar
+
+ -- Gaudenz Steinlin <gaudenz@debian.org>, Mon, 26 Mar 2018 23:13:01 +0200
--- /dev/null
+openorienteering-mapper (0.9.5-3) unstable; urgency=medium
+
+ * Cherry-pick upstream commit updating expected
+ test failures with PROJ 8.2.0 (Closes: #998827)
+
+ -- Graham Inggs <ginggs@debian.org> Tue, 28 Dec 2021 09:45:41 +0000
+
+openorienteering-mapper (0.9.5-2) unstable; urgency=medium
+
+ [ Bas Couwenberg ]
+ * Add patch to fix FTBFS with PROJ 8.
+ (closes: #983254)
+
+ -- Graham Inggs <ginggs@debian.org> Sun, 24 Oct 2021 08:00:58 +0000
+
+openorienteering-mapper (0.9.5-1) unstable; urgency=medium
+
+ * New upstream release
+ * Refresh fix-help-data-dir.patch
+ * Export XDG_RUNTIME_DIR for QSettings
+ * Update location of extra license file
+ * Bump Standards-Version to 4.6.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org> Sat, 25 Sep 2021 09:47:16 +0000
+
+openorienteering-mapper (0.9.4-2) unstable; urgency=medium
+
+ [ Vagrant Cascadian ]
+ * debian/rules: Disable fixfilepath feature, as it triggers
+ build failures when enabled, see #972294
+
+ [ Graham Inggs ]
+ * Bump Standards-Version to 4.5.1, no changes
+
+ -- Graham Inggs <ginggs@debian.org> Mon, 11 Jan 2021 10:50:08 +0000
+
+openorienteering-mapper (0.9.4-1) unstable; urgency=medium
+
+ * New upstream release
+ * Switch to debhelper 13
+ * Build with -Wno-dev to suppress project developer warnings
+ * Add build dependencies on Qt5 sensors, positioning and
+ serial port libraries
+ * Set a writable HOME to prevent a FTBFS on the buildds
+ * Mark fix-help-data-dir.patch not needed by upstream
+ * Add Lintian overrides for spelling error false positives
+
+ -- Graham Inggs <ginggs@debian.org> Sun, 18 Oct 2020 11:10:11 +0000
+
+openorienteering-mapper (0.9.3-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Graham Inggs <ginggs@debian.org> Wed, 27 May 2020 10:07:46 +0000
+
+openorienteering-mapper (0.9.2-1) unstable; urgency=medium
+
+ [ Graham Inggs ]
+ * New upstream release
+ * Refresh fix-help-data-dir.patch
+ * Update debian/copyright
+ * Bump Standards-Version to 4.5.0, no changes
+
+ [ Debian Janitor ]
+ * Use secure URI in Homepage field
+ * Set upstream metadata fields: Bug-Database, Bug-Submit,
+ Repository, Repository-Browse
+
+ -- Graham Inggs <ginggs@debian.org> Mon, 11 May 2020 19:51:27 +0000
+
+openorienteering-mapper (0.9.1-1) unstable; urgency=medium
+
+ * New upstream release
+ * Update debian/watch to ignore pre-release versions
+ * Refresh fix-help-data-dir.patch
+ * Do not define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H, no longer needed
+ * Update debian/copyright
+ * Bump Standards-Version to 4.4.1, no changes
+ * Add build dependency on qt5-image-formats-plugins
+
+ -- Graham Inggs <ginggs@debian.org> Mon, 16 Dec 2019 07:41:29 +0000
+
+openorienteering-mapper (0.8.4-2) unstable; urgency=medium
+
+ * Define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H for PROJ 6.0.0 compatibility,
+ thanks Bas Couwenberg (Closes: #931935)
+ * Switch to debhelper 12
+ * Set Rules-Requires-Root: no
+ * Bump Standards-Version to 4.4.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org> Fri, 30 Aug 2019 13:35:14 +0000
+
+openorienteering-mapper (0.8.4-1) unstable; urgency=medium
+
+ * New upstream release
+ * Refresh fix-help-data-dir.patch
+ * Update debian/watch to ignore preview snapshots
+ * Bump Standards-Version to 4.3.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org> Tue, 25 Dec 2018 11:21:02 +0000
+
+openorienteering-mapper (0.8.1.1-1) unstable; urgency=medium
+
+ [ Gaudenz Steinlin ]
+ * New upstream release
+ - Fix build on big-endian systems (Closes: #865180)
+ - Fix reproducible builds (Closes: #876934)
+ - Update for PROJ5
+ * Change VCS URLs to salsa.debian.org
+ * Document updating to a new upstream release
+
+ [ Graham Inggs ]
+ * Add Build-Depends on sqlite3
+ * Switch to debhelper compat level 11
+ * Skip tests when DEB_BUILD_OPTIONS=nocheck
+ * Bump Standards-Version to 4.1.3, no changes
+
+ -- Graham Inggs <ginggs@debian.org> Thu, 29 Mar 2018 13:49:31 +0000
+
+openorienteering-mapper (0.7.0-1) unstable; urgency=medium
+
+ * New upstream release
+ * Add Build-Depends on libgdal-dev
+ * Update fix-help-data-dir.patch
+ * Do not build with -mno-rla on mips64el, no longer needed
+ * Remove extra license file and replace it with a symlink
+ * Strip RPATH from /usr/bin/Mapper
+ * Bump Standards-Version to 4.1.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org> Mon, 11 Sep 2017 14:11:05 +0000
+
+openorienteering-mapper (0.6.8-3) unstable; urgency=medium
+
+ * Build with -mno-lra on mips64el to avoid FTBFS, see #871514
+
+ -- Graham Inggs <ginggs@debian.org> Thu, 31 Aug 2017 15:41:19 +0000
+
+openorienteering-mapper (0.6.8-2) unstable; urgency=medium
+
+ * Upload to unstable, fixes build with GCC 7 (Closes: #871820)
+ * Add myself to Uploaders
+ * Remove duplicate .desktop entry and icons (Closes: #853952)
+ * Use secure URIs for VCS fields
+ * Switch to debhelper compat level 10
+ * Update debian/copyright
+ * Bump Standards-Version to 4.0.1, no further changes
+ * Drop start wrapper that set QT_SELECT, no longer required,
+ fixes opening files with spaces in their names (Closes: #872291)
+ * Enable all build-time tests again, fixed upstream
+
+ -- Graham Inggs <ginggs@debian.org> Thu, 17 Aug 2017 12:41:15 +0000
+
+openorienteering-mapper (0.6.8-1) experimental; urgency=medium
+
+ * [6d69f6] New upstream release
+
+ -- Gaudenz Steinlin <gaudenz@debian.org> Thu, 16 Mar 2017 17:18:31 +0100
+
+openorienteering-mapper (0.6.7-1) unstable; urgency=medium
+
+ * [ffc784] New upstream release
+
+ -- Gaudenz Steinlin <gaudenz@debian.org> Thu, 22 Dec 2016 08:55:05 +0100
+
+openorienteering-mapper (0.6.6-1) unstable; urgency=medium
+
+ * [9a1799] New upstream release (Closes: #847408)
+
+ -- Gaudenz Steinlin <gaudenz@debian.org> Tue, 13 Dec 2016 15:52:35 +0100
+
+openorienteering-mapper (0.6.5-1) unstable; urgency=medium
+
+ * [129c93] New upstream release (Closes: #839205)
+ * [9a7095] Update watch file to point to github (Closes: #839205)
+
+ -- Gaudenz Steinlin <gaudenz@debian.org> Fri, 30 Sep 2016 10:36:50 +0200
+
+openorienteering-mapper (0.6.3-2) unstable; urgency=medium
+
+ * [5723e4] Update copyright information
+
+ -- Gaudenz Steinlin <gaudenz@debian.org> Fri, 01 Jul 2016 16:24:51 +0200
+
+openorienteering-mapper (0.6.3-1) unstable; urgency=medium
+
+ * New upstream release
+ * [bd2e4e] Remove enable-tests-in-release-build.patch applied upstream
+ * [1ee6ca] Build-depend on qtbase5-private-dev and libcups2-dev
+ * [17b3b6] Add doxygen to build dependencies
+ * [d78d2b] Add zlib1g-dev to build dependencies
+ * [7a100f] Exclude test which currently fail
+ * [2ef3f5] Update Hompage control field
+ * [6dda6c] Update standards version to 3.9.8 (no changes)
+ * [b1fc9a] Refresh patch for upstream version 0.6.3
+ * [1d5247] Disable currently failing autosave test
+
+ -- Gaudenz Steinlin <gaudenz@debian.org> Thu, 30 Jun 2016 22:25:53 +0200
+
+openorienteering-mapper (0.5.96-1) unstable; urgency=low
+
+ * Initial release (Closes: #773110)
+
+ -- Gaudenz Steinlin <gaudenz@debian.org> Tue, 22 Sep 2015 23:09:55 +0200
--- /dev/null
+debian/home/
--- /dev/null
+Source: openorienteering-mapper
+Section: graphics
+Priority: optional
+Maintainer: Gaudenz Steinlin <gaudenz@debian.org>
+Uploaders: Graham Inggs <ginggs@debian.org>
+Build-Depends: chrpath,
+ cmake,
+ debhelper-compat (= 13),
+ doxygen,
+ libcups2-dev,
+ libgdal-dev,
+ libpolyclipping-dev,
+ libproj-dev,
+ libqt5sensors5-dev,
+ libqt5serialport5-dev,
+ libqt5sql5-sqlite,
+ pkg-config,
+ qt5-image-formats-plugins,
+ qtbase5-dev,
+ qtbase5-private-dev,
+ qtpositioning5-dev,
+ qttools5-dev,
+ qttools5-dev-tools,
+ sqlite3,
+ xauth,
+ xvfb,
+ zlib1g-dev
+Standards-Version: 4.6.0
+Rules-Requires-Root: no
+Homepage: https://www.openorienteering.org/apps/mapper/
+Vcs-Git: https://salsa.debian.org/debian/openorienteering-mapper.git
+Vcs-Browser: https://salsa.debian.org/debian/openorienteering-mapper
+
+Package: openorienteering-mapper
+Architecture: any
+Depends: qttools5-dev-tools, ${misc:Depends}, ${shlibs:Depends}
+Description: Orienteering map drawing application
+ OpenOrienteering Mapper is an application to draw maps for forest,
+ sprint, MTB and radio orienteering races. It comes with predefined
+ symbol sets implementing the IOF standards ISOM (1:15000, 1:10000)
+ and ISSOM (1:5000, 1:4000). It is easy to implement additional symbol
+ sets.
+ .
+ It provides a Free alternative to existing proprietary map drawing
+ applications and supports multiple platforms. It is available for
+ Android, Windows, Mac OS X and Linux.
+ .
+ While it is under continuous development and considered in beta
+ state, it has been used to produce maps for orienteering races. All
+ required functions for drawing maps are implemented and the program
+ works very stable. So it can be considered ready for productive use,
+ although it is like always a good idea to keep backups of your files.
--- /dev/null
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: openorienteering-mapper
+Source: https://github.com/OpenOrienteering/mapper
+
+Files: *
+Copyright: 2012-2017 Thomas Schöps
+ 2012-2020 Kai Pastor
+ 2012, 2013 Pete Curtis
+ 2012, 2013 Jan Dalheimer
+License: GPL-3+
+
+Files: 3rd-party/qtsingleapplication/src/*
+Copyright: 2013 Digia Plc and/or its subsidiary(-ies)
+License: BSD-3-clause
+
+Files: test/tst_qglobal.*
+Copyright: 2016 The Qt Company Ltd
+License: GPL-3
+
+Files: src/util/qoverload.h
+Copyright: 2016 The Qt Company Ltd / 2016 Intel Corporation
+License: GPL-3
+
+Files: src/util/qasconst.h
+Copyright: 2016 The Qt Company Ltd / 2016 Intel Corporation
+License: GPL-3
+
+Files: debian/*
+Copyright: 2014-2019 Gaudenz Steinlin <gaudenz@debian.org>
+ 2019-2020 Graham Inggs <ginggs@debian.org>
+License: GPL-3+
+
+License: GPL-3+
+ This program 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 3 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 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+License: GPL-3
+ This is a modified version of a file from the Qt Toolkit.
+ You can redistribute it and/or modify it under the terms of
+ the GNU General Public License, version 3, as published by
+ the Free Software Foundation.
+ .
+ OpenOrienteering 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 OpenOrienteering. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+License: BSD-3-clause
+ This file is part of a Qt Solutions component.
+ .
+ You may use this file under the terms of the BSD license as follows:
+ .
+ "Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+ the names of its contributors may be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
--- /dev/null
+[DEFAULT]
+debian-branch = debian
+
+[dch]
+git-log=--author=gaudenz@debian.org --no-max-parents
--- /dev/null
+# False positive, German text
+openorienteering-mapper: spelling-error-in-binary usr/bin/Mapper Programm Program
+# False positive, French text
+openorienteering-mapper: spelling-error-in-binary usr/bin/Mapper exemple example
--- /dev/null
+doc/man/Mapper.1
--- /dev/null
+Description: Fix path to help files and QT assistant
+ Install Manual and About files to /usr/share/openorienteering-mapper/doc/
+ instead of /usr/share/doc/openorienteering-mapper/.
+Author: Graham Inggs <ginggs@debian.org>
+Forwarded: not-needed
+Last-Update: 2021-09-24
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -125,7 +125,7 @@
+ set(MAPPER_RUNTIME_DESTINATION "${BIN_INSTALL_DIR}")
+ set(MAPPER_LIBRARY_DESTINATION "${LIB_INSTALL_DIR}")
+ set(MAPPER_DATA_DESTINATION "${SHARE_INSTALL_DIR}/${Mapper_PACKAGE_NAME}")
+- set(MAPPER_ABOUT_DESTINATION "${SHARE_INSTALL_DIR}/doc/${Mapper_PACKAGE_NAME}")
++ set(MAPPER_ABOUT_DESTINATION "${SHARE_INSTALL_DIR}/${Mapper_PACKAGE_NAME}/doc")
+ elseif(WIN32)
+ set(MAPPER_RUNTIME_DESTINATION .)
+ set(MAPPER_LIBRARY_DESTINATION .)
--- /dev/null
+Description: TemplateTest: Update expected fails for PROJ 8.2.0
+Origin: upstream, https://github.com/OpenOrienteering/mapper/commit/e247f7270fc36ac9c62abe2f179a891d1df98616
+Author: Kai Pastor <dg0yt@darc.de>
+Last-Update: 2021-12-17
+
+--- a/test/template_t.cpp
++++ b/test/template_t.cpp
+@@ -51,6 +51,8 @@
+
+ #ifdef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
+ # include <proj_api.h>
++#else
++# include <proj.h>
+ #endif
+
+ #include "test_config.h"
+@@ -444,7 +446,7 @@
+ QVERIFY(map.getTemplate(template_index)->loadTemplateFile());
+ QCOMPARE(temp->getTemplateState(), Template::Loaded);
+
+-#if !defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) || PJ_VERSION >= 600
++#if (!defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) && (PROJ_VERSION_MAJOR)*100+(PROJ_VERSION_MINOR) < 802) || PJ_VERSION >= 600
+ QEXPECT_FAIL("TemplateTrack from v0.8.4", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
+ #else
+ QEXPECT_FAIL("TemplateTrack NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
+@@ -567,7 +569,7 @@
+ ogr_template_center = center(temp);
+ }
+
+-#if !defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) || PJ_VERSION >= 600
++#if (!defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) && (PROJ_VERSION_MAJOR)*100+(PROJ_VERSION_MINOR) < 802) || PJ_VERSION >= 600
+ QEXPECT_FAIL("TemplateTrack NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
+ QEXPECT_FAIL("OgrTemplate NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
+ #endif
--- /dev/null
+Description: Add support for proj.h, proj_api.h is removed in PROJ 8.
+Author: Bas Couwenberg <sebastic@debian.org>
+Bug-Debian: https://bugs.debian.org/983254
+Forwarded: https://github.com/OpenOrienteering/mapper/pull/1994
+
+--- a/cmake/FindPROJ4.cmake
++++ b/cmake/FindPROJ4.cmake
+@@ -91,6 +91,21 @@ if(PROJ4_INCLUDE_DIR AND EXISTS "${PROJ4
+ string(REGEX REPLACE "^.*PJ_VERSION [0-9][0-9]([0-9]).*$" "\\1" PROJ4_VERSION_PATCH "${PROJ4_H}")
+ set(PROJ4_VERSION "${PROJ4_VERSION_MAJOR}.${PROJ4_VERSION_MINOR}.${PROJ4_VERSION_PATCH}")
+ set(PROJ4_VERSION_COUNT 3)
++else()
++ find_path(PROJ4_INCLUDE_DIR NAMES proj.h ${_PROJ4_SEARCH} PATH_SUFFIXES include)
++ mark_as_advanced(PROJ4_INCLUDE_DIR)
++
++ if(PROJ4_INCLUDE_DIR AND EXISTS "${PROJ4_INCLUDE_DIR}/proj.h")
++ file(STRINGS "${PROJ4_INCLUDE_DIR}/proj.h" PROJ_VERSION_MAJOR REGEX "^#define PROJ_VERSION_MAJOR [0-9]+$")
++ file(STRINGS "${PROJ4_INCLUDE_DIR}/proj.h" PROJ_VERSION_MINOR REGEX "^#define PROJ_VERSION_MINOR [0-9]+$")
++ file(STRINGS "${PROJ4_INCLUDE_DIR}/proj.h" PROJ_VERSION_PATCH REGEX "^#define PROJ_VERSION_PATCH [0-9]+$")
++
++ string(REGEX REPLACE "^.*PROJ_VERSION_[A-Z]+ ([0-9]).*$" "\\1" PROJ4_VERSION_MAJOR "${PROJ_VERSION_MAJOR}")
++ string(REGEX REPLACE "^.*PROJ_VERSION_[A-Z]+ ([0-9]).*$" "\\1" PROJ4_VERSION_MINOR "${PROJ_VERSION_MINOR}")
++ string(REGEX REPLACE "^.*PROJ_VERSION_[A-Z]+ ([0-9]).*$" "\\1" PROJ4_VERSION_PATCH "${PROJ_VERSION_PATCH}")
++ set(PROJ4_VERSION "${PROJ4_VERSION_MAJOR}.${PROJ4_VERSION_MINOR}.${PROJ4_VERSION_PATCH}")
++ set(PROJ4_VERSION_COUNT 3)
++ endif()
+ endif()
+
+ # Allow PROJ4_LIBRARY to be set manually, as the location of the proj library
--- /dev/null
+fix-help-data-dir.patch
+proj8.patch
+proj8.2.0.patch
--- /dev/null
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+# 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
+export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath
+
+# 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
+
+PKGDIR = $(CURDIR)/debian/openorienteering-mapper
+
+# QSettings needs a writable HOME
+export HOME = $(CURDIR)/debian/home
+export XDG_RUNTIME_DIR = $(HOME)
+
+# main packaging script based on dh7 syntax
+%:
+ dh $@
+
+# debmake generated override targets
+# This is example for Cmake (See http://bugs.debian.org/641051 )
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+ -DMapper_BUILD_QT=OFF \
+ -DMapper_BUILD_CLIPPER=OFF \
+ -DMapper_BUILD_PROJ=OFF \
+ -DMapper_BUILD_PACKAGE=OFF \
+ -DMapper_AUTORUN_UNIT_TESTS=OFF \
+ -DMapper_AUTORUN_SYSTEM_TESTS=OFF \
+ -Wno-dev
+
+override_dh_auto_install:
+ dh_auto_install
+ # remove extra license file and replace it with a symlink
+ rm -f $(PKGDIR)/usr/share/doc/openorienteering-mapper/common-licenses/GPL-3.txt
+ ln -s /usr/share/common-licenses/GPL-3 $(PKGDIR)/usr/share/doc/openorienteering-mapper/common-licenses/GPL-3.txt
+ # strip RPATH from /usr/bin/Mapper
+ /usr/bin/chrpath -d $(PKGDIR)/usr/bin/Mapper
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ # The tests need a running X server, so use Xvfb to run the tests in automated
+ # build environments.
+ cd obj-$(DEB_HOST_GNU_TYPE) ; xvfb-run /usr/bin/ctest --force-new-ctest-process -j1 --extra-verbose
+endif
--- /dev/null
+3.0 (quilt)
--- /dev/null
+Bug-Database: https://github.com/OpenOrienteering/mapper/issues
+Bug-Submit: https://github.com/OpenOrienteering/mapper/issues/new
+Repository: https://github.com/OpenOrienteering/mapper.git
+Repository-Browse: https://github.com/OpenOrienteering/mapper
--- /dev/null
+version=4
+
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/openorienteering-mapper-$1\.tar\.gz/ \
+ https://github.com/OpenOrienteering/mapper/tags .*/v?(\d\.\S*)\.tar\.gz