diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..978215f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gousb-18f4c1d8a750878c4f86ac3d7319b8aa462a79f9.tar.gz diff --git a/golang-github-google-gousb.spec b/golang-github-google-gousb.spec new file mode 100644 index 0000000..f845cd6 --- /dev/null +++ b/golang-github-google-gousb.spec @@ -0,0 +1,52 @@ +# Run tests in check section +# Requires a usb device +%bcond_with check + +# https://github.com/google/gousb +%global goipath github.com/google/gousb +%global commit 18f4c1d8a750878c4f86ac3d7319b8aa462a79f9 + +%global common_description %{expand: +The gousb package is an attempt at wrapping the libusb library into a +Go-like binding.} + +%gometa + +%global golicenses LICENSE +%global godocs AUTHORS CONTRIBUTING.md README.md + +%global godevelheader %{expand: +Requires: pkgconfig(libusb)} + +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} + +%gopkg + +%prep +%goprep + +%install +%gopkginstall + +%if %{with check} +%check +%gochecks +%endif + +%gopkgfiles + +%changelog +* Wed Jan 08 2020 Jakub Jelen - 0-0.1.20200108git18f4c1d8 +- First package for Fedora + diff --git a/sources b/sources new file mode 100644 index 0000000..c398876 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gousb-18f4c1d8a750878c4f86ac3d7319b8aa462a79f9.tar.gz) = 4f0f08370f0e90a0e40d0c7662689824edaac2a9ea2bdc1b9c974539e0a7841c0f43caf05b79d15535ad78990cdcb7526ab450776b6b46af1253ef5ee1b67b7b