# Generated by go2rpm %bcond_without check # https://github.com/shurcooL/vfsgen %global goipath github.com/shurcooL/vfsgen %global commit 6a9ea43bcacdf716a5c1b38efff722c07adf0069 %gometa %global common_description %{expand: Package Vfsgen takes an http.FileSystem (likely at go generate time) and generates Go code that statically implements the provided http.FileSystem.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Takes an input http.FileSystem and generates code that statically implements it License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/shurcooL/httpfs/vfsutil) %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc CONTRIBUTING.md README.md %{_bindir}/* %gopkgfiles %changelog * Wed May 15 15:59:45 CEST 2019 Robert-André Mauchin - 0-0.1.20190515git6a9ea43 - Initial package