File osmfilter.spec of Package osmfilter

#
# spec file for package osmfilter
#
# 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:           osmfilter
Version:        1.4.6
Release:        0
Summary:        Filter OpenStreetMap data files for specific tags
License:        AGPL-3.0-only
URL:            https://wiki.openstreetmap.org/wiki/Osmfilter
Source0:        http://m.m.i24.cc/osmfilter.c

%description
Osmfilter is a command line tool used to filter OpenStreetMap data files for specific tags. You can define different kinds of filters to get OSM objects (i.e. nodes, ways, relations), including their dependent objects, e.g. nodes of ways, ways of relations, relations of other relations.

%prep
%setup -q -c -T
cp %SOURCE0 .

%build
%__cc $RPM_OPT_FLAGS -std=gnu89 osmfilter.c -o osmfilter

%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 osmfilter ${RPM_BUILD_ROOT}%_bindir/

%files
%defattr(-,root,root)
%attr(0755,root,root) %_bindir/osmfilter

%changelog
openSUSE Build Service is sponsored by