# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/erkexzcx/valetudopng %global goipath github.com/erkexzcx/valetudopng Version: 1.0.15 %gometa -f %global common_description %{expand: A Valetudo map renderer (ex Hypfer/ICantBelieveItsNotValetudo) for Home Assistant.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Valetudo map renderer for Home Assistant License: Apache-2.0 URL: %{gourl} Source: %{gosource} BuildRequires: js-jquery %description %{common_description} %package -n valetudopng Summary: %{summary} %description -n valetudopng %{common_description} %gopkg %prep %goprep %autopatch -p1 # Replace bundled jquery with the system one ln -sf %{_datadir}/web-assets/jquery/3/jquery.min.js web/static/js/JQuery.js %generate_buildrequires %go_generate_buildrequires %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 -n valetudopng %license LICENSE %doc README.md %{_bindir}/valetudopng %gopkgfiles %changelog %autochangelog