# Generated by go2rpm %bcond_without check # https://github.com/linuxdeepin/go-gir-generator %global goipath pkg.deepin.io/gir %global forgeurl https://github.com/linuxdeepin/go-gir-generator Version: 2.0.2 %global tag 2.0.2 %gometa %global goname deepin-gir-generator %global common_description %{expand: Generate static golang bindings for GObject.} %global golicenses LICENSE %global godocs CHANGELOG.md README.md Name: %{goname} Release: 2%{?dist} Summary: Generate static golang bindings for GObject License: GPLv3 URL: %{gourl} Source0: %{gosource} BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gudev-1.0) %if %{with check} # Tests BuildRequires: golang(gopkg.in/check.v1) %endif %description %{common_description} %prep %goprep rm -rf gogtk-demo find . -name ".gitignore" -delete sed -i "s#go build#go build -buildmode pie -compiler gc -tags=\"rpm_crashtraceback \${BUILDTAGS:-}\" -ldflags \"\${LDFLAGS:-} -B 0x\$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\\n') -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\" -a -v -x#" Makefile %build mkdir -p out/src/pkg.deepin.io/gir/{glib-2.0,gio-2.0,gobject-2.0,gudev-1.0} export GOPATH="%{gopath}" %make_build %install %make_install rm -rf lib.in out src test %gopkginstall %files %doc CHANGELOG.md README.md %license LICENSE %{_bindir}/gir-generator %{gopath}/src/pkg.deepin.io/ %changelog * Tue Jun 04 19:37:05 CEST 2019 Robert-André Mauchin - 2.0.2-2 - Update to new macros * Fri May 10 2019 Robin Lee - 2.0.2-1 - new version * Wed Apr 17 2019 Robin Lee - 2.0.1-1 - new version * Thu Mar 28 2019 Robin Lee - 2.0.0-1 - new version * Thu Jan 31 2019 mosquito - 1.2.0-1 - Update to 1.2.0 * Thu Jan 31 2019 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 19 2018 mosquito - 1.1.0-2 - Provides gobject-2.0 gio-2.0 glib-2.0 gudev-1.0 * Thu Nov 1 2018 mosquito - 1.1.0-1 - Update to 1.1.0 * Fri Aug 17 2018 mosquito - 1.0.4-1 - Update to 1.0.4 * Mon Aug 06 2018 Zamir SUN - 1.0.3-1 - Update to 1.0.3 * Tue Jul 31 2018 Florian Weimer - 1.0.2-4 - Rebuild with fixed binutils * Thu Jul 12 2018 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Oct 14 2017 mosquito - 1.0.2-1 - Update to 1.0.2 * Thu Aug 3 2017 mosquito - 1.0.1-2 - Fix undefined type SettingsBackendLike * Fri May 19 2017 mosquito - 1.0.1-1.git9ee7058 - Update to 1.0.1 * Tue Jan 17 2017 mosquito - 0.9.6-1.gitfe260d3 - Update to 0.9.6 * Wed Jan 04 2017 Jaroslav Stepanek 0.9.6-3 - Renamed package to deepin-go-gir-generator * Sun Dec 18 2016 Jaroslav Stepanek 0.9.6-2 - Changed lib path * Fri Oct 28 2016 Jaroslav Stepanek 0.9.6-1 - Compilation rework * Thu Sep 29 2016 Jaroslav Stepanek 0.9.5-2 - Compilation rework * Sun Sep 18 2016 Jaroslav Stepanek 0.9.5-1 - Initial package build