File python-mapnik.spec of Package python-mapnik

# spec file for package python-mapnik
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-mapnik
Version:        3.0.16
Release:        0
Summary:        Python bindings for Mapnik
License:        LGPL-2.1+
Group:          Development/Libraries/Python
Source:         python-mapnik-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  freetype2-devel
BuildRequires:  gcc-c++
BuildRequires:  mapnik-devel
BuildRequires:  python-rpm-macros
%if 0%{?suse_version} > 1325
BuildRequires:  libboost_filesystem-devel >= 1.47
BuildRequires:  libboost_python-devel >= 1.47
BuildRequires:  libboost_python3-devel >= 1.47
BuildRequires:  libboost_regex-devel >= 1.47
BuildRequires:  libboost_system-devel >= 1.47
BuildRequires:  libboost_thread-devel >= 1.47
BuildRequires:  boost-devel >= 1.47

Python bindings for Mapnik mapping application

%setup -q


%python_expand %fdupes %{buildroot}%{$python_sitearch}

%files %{python_files}

openSUSE Build Service is sponsored by