# Run tests in check section %bcond_without check %global goipath github.com/tarm/serial %global commit eaafced92e9619f03c72527efeab21e326f3bc36 %global common_description %{expand: A Go package to allow you to read and write from the serial port as a stream of bytes.} %gometa Name: %{goname} Version: 0 Release: 0.2%{?dist} Summary: Read and write from the serial port as a stream of bytes Group: Development/Other License: BSD URL: %{gourl} Source0: %{gosource} BuildArch: noarch BuildRequires: golang(golang.org/x/sys/unix) %description %{common_description} %package devel Summary: %{summary} %description devel %{common_description} This package contains library source intended for building other packages which use import path with %{goipath} prefix. %prep %forgeautosetup %install %goinstall %if %{with check} %check %gochecks %endif %files devel -f devel.file-list %license LICENSE %doc README.md %changelog * Sun Nov 25 2018 pterjan <pterjan> 0-0.2.mga7 + Revision: 1334417 - imported package golang-github-tarm-serial