File etherwake.spec of Package etherwake
#
# spec file for package etherwake
#
# 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: etherwake
Version: 1.09
Release: 0
Summary: A little tool to send magic Wake-on-LAN packets
License: GPL-1.0-only
Group: Productivity/Networking/Boot/Utilities
URL: https://web.archive.org/web/20060427201642/http://www.scyld.com/wakeonlan.html
Source: https://launchpad.net/ubuntu/+archive/primary/+files/%{name}_%{version}.orig.tar.gz
%description
A little tool to send magic Wake-on-LAN packets
You can wake up WOL compliant Computers which have been powered down to
sleep mode or start WOL compliant Computers with a BIOS feature.
WOL is an abbreviation for Wake-on-LAN. It is a standard that allows you
to turn on a computer from another location over a network connection.
etherwake also supports WOL passwords.
%prep
%setup -q -n etherwake-1.09.orig
%build
cc %{optflags} -o etherwake ether-wake.c
%install
install -D -m 0755 etherwake %{buildroot}%{_sbindir}/etherwake
install -D -m 0644 etherwake.8 %{buildroot}%{_mandir}/man8/etherwake.8
%files
%{_sbindir}/etherwake
%{_mandir}/man8/etherwake.8%{?ext_man}
%changelog