File libosmium.spec of Package libosmium

#
# spec file for package libosmium
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


Name:           libosmium
Version:        2.15.6
Release:        0
Summary:        C++ framework for working with OSM data files
License:        BSL-1.0
Group:          Development/Libraries/C and C++
Url:            http://osmcode.org/libosmium/
Source:         https://github.com/osmcode/libosmium/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  boost-devel > 1.38
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  graphviz-gnome
BuildRequires:  libgeos-devel
BuildRequires:  libprotozero-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(gdal)
BuildRequires:  pkgconfig(libsparsehash)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(proj)
BuildRequires:  pkgconfig(zlib)

%description
Osmium is a C++ framework for working with OSM data files. Osmium can read
OSM data in XML or binary format (PBF) and can call different handlers for
each OSM object.

%package devel
Summary:        C++ framework for working with OSM data files
Group:          Development/Libraries/C and C++
#Requires:       libprotozero-devel

%description devel
Osmium is a C++ framework for working with OSM data files. Osmium can read
OSM data in XML or binary format (PBF) and can call different handlers for
each OSM object. This package contains the header files to develop own
applications based on libosmium.

%prep
%setup -q

%build
%cmake \
  -DINSTALL_GDALCPP=ON \
  -DCMAKE_CXX_FLAGS="%{optflags} -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
%make_jobs

%install
%cmake_install

%files devel
%defattr(0644,root,root,0755)
%license LICENSE
%doc README.md
%{_includedir}/gdalcpp.hpp
%dir %{_includedir}/osmium
%{_includedir}/osmium/*
%exclude /debugsourcefiles.list

%changelog