# Generated by go2rpm 1.3 %bcond_without check # https://github.com/fyne-io/mobile %global goipath github.com/fyne-io/mobile Version: 0.1.2 %gometa %global common_description %{expand: This repository is a fork of the Go mobile repository that holds packages and build tools for using Go on mobile platforms. The primary focus of this fork is to rapidly add funcitonality required to support the requirements of mobile support in the Fyne toolkit. At some point it will be merged into the main repository.} %global golicenses LICENSE PATENTS %global godocs doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md Name: %{goname} Release: 1%{?dist} Summary: Fork of Go on Mobile for the Fyne project # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/image/draw) BuildRequires: golang(golang.org/x/image/math/f64) BuildRequires: golang(golang.org/x/tools/go/packages) %if %{with check} # Tests BuildRequires: golang(golang.org/x/tools/go/packages/packagestest) BuildRequires: pkgconfig(glesv2) %endif %description %{common_description} %gopkg %prep %goprep sed -i "s|golang.org/x/mobile|github.com/fyne-io/mobile|" $(find . -name *.go -type f) %install %gopkginstall %if %{with check} %check for test in "TestGenGo" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -t cmd %endif %gopkgfiles %changelog * Sat Jan 30 21:49:46 CET 2021 Robert-André Mauchin - 0.1.2-1 - Initial package