File nik5.spec of Package nik5
#
# spec file for package nik5
#
# Copyright (c) 2026 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global upstream_version v2.0-rc1
%global rpm_version v2.0~rc1
Name: nik5
Version: %{rpm_version}
Release: 1%{?dist}
Summary: Tool to create OSM map images using Mapnik
License: WTFPL
Group: Productivity/Other
URL: https://codeberg.org/Geofabrik/Nik5/tags
Source0: %{name}-%{upstream_version}.tar.gz
Patch0: tolerance.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: mapnik-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libexpat-devel
BuildRequires: gd-devel >= 2.0.28
Requires: gd
Requires: sed
%description
Nik5 is a C++ port of Nik4 by Ilya Zverev and a program that will render a
map image using a PostgreSQL+PostGIS database with a planet extract.
%prep
%autosetup -p0 -n %{name}
%build
%cmake
%cmake_build
%install
%cmake_install
%check
%ctest
%files
%license LICENSE.txt
%doc README.md CHANGELOG.md
/usr/bin/nik5
%changelog