update go-gir-generator package

This commit is contained in:
hanshuang 2023-11-14 14:26:02 +08:00
parent 8a92b71abc
commit a23dd38317
2 changed files with 52 additions and 0 deletions

Binary file not shown.

52
go-gir-generator.spec Normal file
View File

@ -0,0 +1,52 @@
#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 <uoser@uniontech.com> - 2.0.8-1.02
- A/E compatiable