# Run tests in check section # Requires a usb device %bcond_with check # https://github.com/thorduri/go-libusb %global goipath github.com/thorduri/go-libusb %global commit bbed4ca2a465660f336e1e5a4b2fe549667a2ca1 %global common_description %{expand: The gousb package is an attempt at wrapping the libusb library into a Go-like binding.} %gometa Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Idiomatic Go bindings for libusb-1.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: pkgconfig(libusb) %description %{common_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(libusb) %description devel %{common_description} %prep #%%gosetup -q %forgesetup %install %goinstall %if %{with check} %check %gochecks %endif %files devel -f devel.file-list %license LICENSE %doc README.md %changelog * Thu Jan 31 2019 Jakub Jelen - 0-0.1.20181130gitbbed4ca - First package for Fedora