# Generated by go2rpm %bcond_without check # https://github.com/hpcloud/tail %global goipath github.com/hpcloud/tail Version: 1.0.0 %global commit a1dbeea552b7c8df4b542c66073e393de198a800 %gometa %global common_description %{expand: A Go package striving to emulate the features of the BSD tail program.} %global golicenses LICENSE.txt %global godocs CHANGES.md README.md Name: %{goname} Release: 2%{?dist} Summary: Go package for reading from continously updated files (tail -f) License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(gopkg.in/fsnotify/fsnotify.v1) BuildRequires: golang(gopkg.in/tomb.v1) %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 %{golicenses} %doc %{godocs} %{_bindir}/* %gopkgfiles %changelog * Wed Apr 24 12:28:07 CEST 2019 Robert-André Mauchin - 1.0.0-2.20190308gita1dbeea - Update to new macros * Fri Mar 08 2019 Robert-André Mauchin - 1.0.0-1.20190308gita1dbeea - First package for Fedora