File gpsdate.spec of Package gpsdate
#
# spec file for package gpsdate
#
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# 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: gpsdate
Version: 0~git20221214
Release: 0
Summary: Utility for setting RTC based on gpsd time
License: GPL-2.0-or-later
Group: Hardware/Other
URL: https://gitea.sysmocom.de/sysmocom/gpsdate
#Git-Clone: https://gitea.sysmocom.de/sysmocom/gpsdate.git
Source: %{name}-%{version}.tar.xz
Patch0: gpsdate-obey-cflags.patch
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libgps)
%description
Utility for setting RTC based on gpsd time.
%prep
%setup -q
%patch0 -p1
%build
CFLAGS="%{optflags}"
%make_build
%install
install -Dpm 0755 gpsdate %{buildroot}/%{_sbindir}/gpsdate
%files
%license COPYING
%{_sbindir}/gpsdate
%changelog