File ergodox-wally-cli.spec of Package ergodox-wally-cli
#
# spec file for package ergodox-wally-cli
#
# Copyright (c) 2020 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 http://bugs.opensuse.org/
#
%define pkg_name wally-cli
Name: ergodox-wally-cli
Version: 0
Release: 0
Summary: The EZ Flash(ing tool) (cmdline)
License: MIT
Url: https://ergodox-ez.com/pages/wally
Source: %{pkg_name}-%{version}.tar.xz
# go mod vendor && ( rm -f ../vendor.tar.xz && tar cfvJ ../vendor.tar.xz vendor/ )
Source1: vendor.tar.xz
BuildRequires: golang(API)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: golang-packaging
Requires: ergodox-wally-udev-rules
Provides: zsa-wally-cli = %{version}-%{release}
%{go_nostrip}
%description
ZSA keyboards can do a lot — and all of that intelligence lives right on the
board. You customize the firmware online, download a file, and flash it.
This package only holds the commandline tool for flashing.
%prep
%setup -n %{pkg_name}-%{version} -a 1
%build
go build -mod=vendor -buildmode=pie .
%install
install -D -m 0755 wally-cli %{buildroot}%{_bindir}/wally-cli
%files
%{_bindir}/wally-cli
%doc README.md
%changelog