File osmium-tool.spec of Package osmium-tool
#
# spec file for package osmium-tool
#
# Copyright (c) 2021 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/
#
Name: osmium-tool
Version: 1.19.0
Release: 0
Summary: Osmium Command Line Tool
License: GPL-3.0-or-later
URL: https://osmcode.org/osmium-tool/
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: libboost_program_options-devel
BuildRequires: libbz2-devel
BuildRequires: libexpat-devel
BuildRequires: liblz4-devel
BuildRequires: libosmium-devel
BuildRequires: protozero-devel
BuildRequires: nlohmann_json-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
%description
A multipurpose command line tool for working with OpenStreetMap data based on the Osmium library.
%prep
%autosetup -p1
%build
%cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5
%cmake_build
%install
%cmake_install
%files
%defattr(0644,root,root,0755)
%license LICENSE.txt
%attr(0755,root,root) %{_bindir}/osmium
%check
export PAGER=cat
%ctest --output-on-failure
%changelog