From 8324513aab229ba196519417cca0b0b6aa68aaf2 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jul 03 2019 23:45:07 +0000 Subject: Update to new macros Signed-off-by: Robert-André Mauchin --- diff --git a/golang-deepin-dbus-factory.spec b/golang-deepin-dbus-factory.spec index 7b31105..4956453 100644 --- a/golang-deepin-dbus-factory.spec +++ b/golang-deepin-dbus-factory.spec @@ -1,43 +1,40 @@ -%global debug_package %{nil} -%global repo dbus-factory -%global import_path dbus +# Generated by go2rpm +%bcond_without check +%global debug_package %{nil} -Name: golang-deepin-%{repo} -Version: 3.1.17 -Release: 2%{?dist} +# https://github.com/linuxdeepin/dbus-factory +%global goipath github.com/linuxdeepin/dbus-factory +Version: 3.1.17 +%global tag 3.1.17 + +%gometa + +%global goname golang-deepin-dbus-factory + +%global common_description %{expand: +Golang DBus factory for Deepin Desktop Environment.} + +%global golicenses LICENSE +%global godocs CHANGELOG.md README.md + +Name: %{goname} +Release: 3%{?dist} Summary: Golang DBus factory for Deepin Desktop Environment -License: GPLv3+ -URL: https://github.com/linuxdeepin/dbus-factory -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 %{arm}} -# If go_compiler is not set to 1, there is no virtual provide. Use golang instead. -BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} +License: GPLv3 +URL: %{gourl} +Source0: %{gosource} BuildRequires: golang(pkg.deepin.io/lib) BuildRequires: deepin-dbus-generator BuildRequires: jq BuildRequires: libxml2 -Provides: deepin-go-%{repo} = %{version}-%{release} -Obsoletes: deepin-go-%{repo} < %{version}-%{release} %description -Golang DBus factory for Deepin Desktop Environment. - -%package devel -Summary: %{summary} -BuildArch: noarch - -%description devel -%{summary}. - -This package contains library source intended for -building other packages which use import path with -%{import_path} prefix. +%{common_description} %prep -%setup -q -n %{repo}-%{version} +%goprep %build %make_build @@ -45,12 +42,20 @@ building other packages which use import path with %install %make_install GOPATH=%{gopath} -%files devel -%doc README.md +%if %{with check} +%check +%gocheck +%endif + +%files %license LICENSE -%{gopath}/src/dbus/ +%doc CHANGELOG.md README.md +%{gopath}/src/dbus %changelog +* Tue Jun 04 22:31:59 CEST 2019 Robert-André Mauchin - 3.1.17-3 +- Update to new macros + * Thu Jan 31 2019 Fedora Release Engineering - 3.1.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild