File golang-github-google-gousb.spec of Package golang-github-google-gousb
#
# spec file for package golang-github-google-gousb
#
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: golang-github-google-gousb
Version: 1.1.0
Release: 0
Summary: Provides low-level interface for accessing USB devices
License: Apache-2.0
Group: Development/Languages/Other
Url: https://github.com/google/gousb
Source: https://github.com/google/gousb/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: golang-packaging
%{go_provides}
%description
The gousb package is an attempt at wrapping the libusb library into a Go-like binding.
%prep
%setup -q -n gousb-%{version}
%build
%{goprep} github.com/google/gousb/
%{gobuild} ...
%install
%goinstall
%gosrc
%gofilelist
%check
%{gotest} github.com/google/gousb/
%files -f file.lst
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%{_bindir}/lsusb
%{_bindir}/rawread
%{_bindir}/regen
%changelog