The package rpms/deepin-dbus-generator.git has added or updated architecture specific
content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/deepin-dbus-generator.git/commit/....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 5598ea311f6492af86648b42de0daa8c89295af0
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Tue Jun 4 23:16:36 2019 +0200
Update to new macros
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/deepin-dbus-generator.spec b/deepin-dbus-generator.spec
index 3fb89d5..b887f1d 100644
--- a/deepin-dbus-generator.spec
+++ b/deepin-dbus-generator.spec
@@ -1,46 +1,64 @@
-%global repo go-dbus-generator
-
-Name: deepin-dbus-generator
-Version: 0.6.6
-Release: 6%{?dist}
-Summary: Convert dbus interfaces to go-lang or qml wrapper code
-License: GPLv3+
-URL:
https://github.com/linuxdeepin/go-dbus-generator
-Source0: %{url}/archive/%{version}/%{repo}-%{version}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
-BuildRequires: golang
-BuildRequires: golang(gopkg.in/check.v1)
-BuildRequires: golang(pkg.deepin.io/lib)
+# Generated by go2rpm
+%bcond_without check
+
+#
https://github.com/linuxdeepin/go-dbus-generator
+%global goipath
github.com/linuxdeepin/go-dbus-generator
+Version: 0.6.6
+%global tag 0.6.6
+
+%gometa
+
+%global goname deepin-dbus-generator
+
+%global common_description %{expand:
+Convert dbus interfaces to Golang or QML wrapper code.}
+
+%global golicenses LICENSE
+%global godocs README.md
+
+Name: %{goname}
+Release: 7%{?dist}
+Summary: Convert dbus interfaces to Golang or QML wrapper code
+
+License: GPLv3
+URL: %{gourl}
+Source0: %{gosource}
+
+BuildRequires: golang(pkg.deepin.io/lib/dbus)
+BuildRequires: golang(pkg.deepin.io/lib/dbus/introspect)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(Qt5)
BuildRequires: pkgconfig(Qt5Qml)
+%if %{with check}
+# Tests
+BuildRequires: golang(gopkg.in/check.v1)
+%endif
+
%description
-Static dbus binding generator for dlib.
+%{common_description}
%prep
-%setup -q -n %{repo}-%{version}
-# qmake path
-sed -i 's|qmake|qmake-qt5|' build_test.go template_qml.go
+%goprep
+find . -name "*.go" -exec sed -i
"s|launchpad.net/gocheck|gopkg.in/check.v1|" "{}" +;
%build
-export GOPATH="%{gopath}"
-BUILD_ID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
-function gobuild { go build -a -ldflags "-B $BUILD_ID" -v -x "$@"; }
-gobuild -o dbus-generator
+%gobuild -o %{gobuilddir}/bin/dbus-generator %{goipath}
%install
-install -Dm755 dbus-generator %{buildroot}%{_bindir}/dbus-generator
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%files
-%doc README.md
%license LICENSE
-%{_bindir}/dbus-generator
+%doc README.md
+%{_bindir}/*
%changelog
+* Tue Jun 04 22:43:13 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0.6.6-7
+- Update to new macros
+
* Thu Jan 31 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.6.6-6
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild