# Generated by go2rpm 1.18.0 %bcond check 1 %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/diamondburned/gotk4-layer-shell %global goipath github.com/diamondburned/gotk4-layer-shell %global commit 6efa9f6dc438e10869f9ef0b8f7b5197e585bac1 %global godevelheader %{expand: Requires: pkgconfig(gtk-layer-shell-0) Requires: pkgconfig(gtk4-layer-shell-0) } %gometa -L -f %global common_description %{expand: Auto-generated gtk-layer-shell bindings for Go and gotk4 (GTK3).} %global golicenses LICENSE.md pkg/LICENSE %global godocs README.md _examples Name: golang-github-diamondburned-gotk4-layer-shell Version: 0 Release: %autorelease -p Summary: Auto-generated gtk-layer-shell bindings for Go and gotk4 (GTK3) License: AGPL-3.0-only AND MPL-2.0 URL: %{gourl} Source: %{gosource} BuildRequires: pkgconfig(gtk-layer-shell-0) BuildRequires: pkgconfig(gtk4-layer-shell-0) BuildRequires: golang(github.com/diamondburned/gotk4/gir) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/core/glib) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/gdk/v3) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/gdk/v4) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/gtk/v3) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/gtk/v4) %description %{common_description} %godevelpkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build %gobuild -o %{gobuilddir}/bin/gotk4-layer-shell %{goipath} %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %if %{without bootstrap} %files %license LICENSE.md pkg/LICENSE %doc README.md %{_bindir}/gotk4-layer-shell %endif %gopkgfiles %changelog %autochangelog