File osmconvert.spec of Package osmconvert
#
# spec file for package osmconvert
#
# Copyright (c) 2023 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: osmconvert
Version: 0.8.11
Release: 0
Summary: Convert and process OpenStreetMap files
License: AGPL-3.0-only
URL: https://wiki.openstreetmap.org/wiki/Osmconvert
Source0: http://m.m.i24.cc/osmconvert.c
BuildRequires: zlib-devel
%description
Osmconvert can be used to convert and process OpenStreetMap files. It masters fewer functions than the commonly-used Osmosis: for example, there is no way to access a database with osmconvert. However, the program runs faster and offers a few special functions (--all-to-nodes, --complete-multipolygons and --out-statistics).
%prep
%setup -q -c -T
cp %SOURCE0 .
%build
%__cc $RPM_OPT_FLAGS -std=gnu89 osmconvert.c -lz -o osmconvert
%install
# make sure that make install (or whatever installer the software in question is using) will place any files under $RPM_BUILD_ROOT, with the same hierarchy that should be used when the software is finally installed
mkdir -p ${RPM_BUILD_ROOT}%_bindir/
install osmconvert ${RPM_BUILD_ROOT}%_bindir/
%files
%defattr(-,root,root)
%attr(0755,root,root) %_bindir/osmconvert
%changelog