#add 2020-04-26 %global _unpackaged_files_terminate_build 0 %global with_debug 1 %if 0%{?with_debug} %global debug_package %{nil} %endif Name: go-gir-generator Version: 2.0.8 Release: 1%{?dist}.02 Summary: Generate static golang bindings for GObject License: GPLv3 URL: ssh://gerrit.uniontech.com:29418/go-gir-generator Source0: %{name}-%{version}.orig.tar.xz BuildRequires: compiler(go-compiler) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gudev-1.0) Provides: golang(gir/gobject-2.0) Provides: golang(gir/gio-2.0) Provides: golang(gir/glib-2.0) Provides: golang(gir/gudev-1.0) Provides: pkgconfig(pkg.deepin.io/gir/gio-2.0) Provides: deepin-gir-generator %description Generate static golang bindings for GObject %prep %setup -q -n %{name}-%{version} %build %ifarch loongarch64 export CGO_ENABLED=1 export GOOS=linux %endif export GOPATH="%{gopath}" %make_build %install %make_install %files %doc README.md %license LICENSE %{_bindir}/gir-generator %{gopath}/src/pkg.deepin.io/gir/ %changelog * Tue Jun 14 2022 uoser - 2.0.8-1.02 - A/E compatiable