# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/hebcal/hebcal %global goipath github.com/hebcal/hebcal Version: 5.8.1 %gometa -f %global goname hebcal %global common_description %{expand: A perpetual Jewish Calendar.} %global golicenses COPYING %global godocs AUTHORS NEWS.md README.md README_DE.md Name: %{goname} Release: %autorelease Summary: A perpetual Jewish Calendar License: GPL-2.0-only URL: %{gourl} Source: %{gosource} # this BuildRequires prevents automated processes from getting confused # upstream hebcal vs golang-github-hebcal-devel is not resolved properly BuildRequires: golang-github-hebcal-devel %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build # operations from Makefile echo "package main" > dcity.go echo "var defaultCity = \"New York\"" >> dcity.go %gobuild -o %{gobuilddir}/bin/hebcal %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files -n %{goname} %license COPYING %doc AUTHORS NEWS.md README.md README_DE.md %{_bindir}/* %gopkgfiles %changelog %autochangelog