diff --git a/deepin-dbus-generator.spec b/deepin-dbus-generator.spec new file mode 100644 index 0000000..3e4bee0 --- /dev/null +++ b/deepin-dbus-generator.spec @@ -0,0 +1,44 @@ +%global repo go-dbus-generator +%global with_debug 1 +%global _unpackaged_files_terminate_build 0 + +%if 0%{?with_debug} +%global debug_package %{nil} +%endif + +Name: deepin-dbus-generator +Version: 0.6.6 +Release: 1 +Summary: Convert dbus interfaces to go-lang or qml wrapper code +License: GPLv3+ +URL: https://github.com/linuxdeepin/go-dbus-generator +Source0: https://github.com/linuxdeepin/%{repo}/archive/%{version}/%{repo}-%{version}.tar.gz + +ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}} +BuildRequires: golang compiler(go-compiler) pkgconfig(glib-2.0) pkgconfig(gobject-2.0) pkgconfig(Qt5) pkgconfig(Qt5Qml) + +%description +Static dbus binding generator for dlib. + +%prep +%setup -q -n %{repo}-%{version} +# qmake path +sed -i 's|qmake|qmake-qt5|' build_test.go template_qml.go + +%build +export GOPATH=%{_builddir}/%{name}-%{version}-%{release_name}/vendor +BUILD_ID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" +function gobuild { go build -mod=vendor -a -ldflags "-B $BUILD_ID" -v -x "$@"; } +gobuild -o dbus-generator + +%install +install -Dm755 dbus-generator %{buildroot}%{_bindir}/dbus-generator + +%files +%doc README.md +%license LICENSE +%{_bindir}/dbus-generator + +%changelog +* Thu Sep 10 2020 chenbo pan - 0.6.6-1 +- Initial build diff --git a/deepin-dbus-generator.yaml b/deepin-dbus-generator.yaml new file mode 100644 index 0000000..da4d3d9 --- /dev/null +++ b/deepin-dbus-generator.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: linuxdeepin/go-dbus-generator +tag_prefix: ^ +seperator: . diff --git a/go-dbus-generator-0.6.6.tar.gz b/go-dbus-generator-0.6.6.tar.gz new file mode 100644 index 0000000..773756d Binary files /dev/null and b/go-dbus-generator-0.6.6.tar.gz differ