SHA256
1
0
forked from pool/sunwait
Files
sunwait/sunwait.spec
Jan Baier 6b81137464 - update to version 20220613
- ADD standard(ish) unixy command line flags
    - Fix unused variable warning during compile.
    - Document use of an arbitrary date specification
- add sunwait-fix-parentheses.patch

OBS-URL: https://build.opensuse.org/package/show/science/sunwait?expand=0&rev=9
2022-08-04 16:42:37 +00:00

52 lines
1.5 KiB
RPMSpec

#
# spec file for package sunwait
#
# Copyright (c) 2022 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: sunwait
Version: 20220613
Release: 0
Summary: Sunrise, sunset and twilight calculator
License: GPL-2.0-or-later
Group: Productivity/Scientific/Astronomy
URL: https://github.com/risacher/sunwait
Source: %{name}-%{version}.tar.xz
Patch0: sunwait-no-rpm-opt-flags.patch
Patch1: sunwait-fix-parentheses.patch
BuildRequires: gcc-c++
%description
Sunwait is a small C program for calculating sunrise and sunset, as well as
civil, nautical, and astronomical twilights. It has features that make it
useful for home automation tasks.
%prep
%setup -q
%autopatch
%build
%make_build
%install
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 sunwait %{buildroot}%{_bindir}
%files
%license LICENSE
%{_bindir}/sunwait
%changelog