# Run tests in check section # disable for bootstrapping %bcond_with check %global goipath github.com/golang/freetype %global goipath2 github.com/BurntSushi/freetype-go/freetype %global goname2 %gorpmname %{goipath2} %global commit e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4 %gometa Name: %{goname} Version: 0 Release: 0.3%{?dist} Summary: The Freetype font rasterizer in the Go programming language License: GPLv2+ or FTL URL: %{gourl} Source0: %{gosource} %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel %{summary}. This package contains library source intended for building other packages which use import path with %{import_path} prefix. %package -n compat-%{goname2}-devel Summary: %{summary} BuildArch: noarch Obsoletes: %{goname2}-devel < %{version}-%{release} %description -n compat-%{goname2}-devel %{summary}. This package contains compatibility glue for code that still imports the %{goipath2} Go namespace. %prep %forgeautosetup %install %goinstall # Add symlink to older name install -d -p %{buildroot}%{gopath}/src/%(dirname %{goipath2}) ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{goipath2} %if %{with check} %check %gochecks %endif %files devel -f devel.file-list %doc README %license LICENSE %files -n compat-%{goname2}-devel %dir %{gopath}/src/%(dirname %{goipath2}) %{gopath}/src/%{goipath2} %changelog * Sun Nov 4 2018 mosquito - 0-0.2.20181104gitb763ddb - Rewrite rpm spec * Mon Aug 7 2017 mosquito - 0.1-1 - Initial package build