File osmupdate.spec of Package osmupdate

#
# spec file for package osmupdate
#
# 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:           osmupdate
Version:        0.4.5
Release:        0
Summary:        Download and cumulate OpenStreetMap Changefiles of different categories (minutely, hourly, daily)
License:        AGPL-3.0-only
URL:            https://wiki.openstreetmap.org/wiki/Osmupdate
Source0:        http://m.m.i24.cc/osmupdate.c

%description
Osmupdate downloads and cumulates OSM Changefiles of different categories (minutely, hourly, daily). This allows you to create new changefiles for every time period you need and to update your OSM data files in regular or irregular intervals, just as you like.

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

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

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

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

%changelog
openSUSE Build Service is sponsored by