# Generated by go2rpm 1.14.0 %bcond check 0 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/oz/tz %global goipath github.com/oz/tz %global commit a0820b3dfb1911ed81532574482f2dc9adace491 %global latest 0.7.0 %gometa -f %global common_description %{expand: tz helps you schedule things across time zones. It's an interactive TUI program that displays time across the time zones of your choosing.} %global golicenses COPYING %global godocs docs README.md Name: tz Version: %{latest} Release: %autorelease -p Summary: A time zone helper License: GPL-3.0-only URL: https://github.com/oz/tz Source: %{gosource} Patch: improvements.diff BuildRequires: git %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} go mod vendor %endif %if %{without bootstrap} %build %gobuild -o %{gobuilddir}/bin/tz %{goipath} %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ chmod -R u+w %{gobuilddir}/pkg %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %if %{without bootstrap} %files %license COPYING vendor/modules.txt %doc docs README.md %{_bindir}/tz %endif %gopkgfiles %changelog %autochangelog