The package rpms/golang-deepin-go-lib.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/golang-deepin-go-lib.git/commit/?....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit ff952c3d58b0520cde6e5132b8defc69235297fd
Author: mosquito <sensor.wen(a)gmail.com>
Date: Tue Nov 20 10:30:46 2018 +0800
Update source file
diff --git a/.gitignore b/.gitignore
index 30d07f5..010dc58 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/go-lib-c314181.tar.gz
/go-lib-c3fe5dc.tar.gz
/go-lib-b199d0d.tar.gz
+/go-lib-b199d0dc96e979398ea3985334ccf9c20236d1a7.tar.gz
diff --git a/sources b/sources
index c53727b..69a8dcd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (go-lib-b199d0d.tar.gz) =
c32e40460ee252f63c5fcf1049f5183db98a041d391b9175f8a26b83040466b33a904fce7559febd31043db29cfa2d74381ec90ac5c939e0d3aadb68b7591ec5
+SHA512 (go-lib-b199d0dc96e979398ea3985334ccf9c20236d1a7.tar.gz) =
c32e40460ee252f63c5fcf1049f5183db98a041d391b9175f8a26b83040466b33a904fce7559febd31043db29cfa2d74381ec90ac5c939e0d3aadb68b7591ec5
commit 7fc384b1ea1370d5d0ce2b9ed11f334a1b3b9298
Author: mosquito <sensor.wen(a)gmail.com>
Date: Tue Nov 20 10:21:48 2018 +0800
New go packaging
diff --git a/golang-deepin-go-lib.spec b/golang-deepin-go-lib.spec
index 3d67394..e0ed32a 100644
--- a/golang-deepin-go-lib.spec
+++ b/golang-deepin-go-lib.spec
@@ -1,27 +1,20 @@
-%global debug_package %{nil}
+# Run tests in check section
+# disable for bootstrapping
+%bcond_with check
-%global provider github
-%global provider_tld com
-%global project linuxdeepin
-%global repo go-lib
-#
https://github.com/linuxdeepin/go-lib
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path pkg.deepin.io/lib
-%global commit b199d0dc96e979398ea3985334ccf9c20236d1a7
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global goipath pkg.deepin.io/lib
+%global forgeurl
https://github.com/linuxdeepin/go-lib
+%global commit b199d0dc96e979398ea3985334ccf9c20236d1a7
+
+%gometa
Name: golang-deepin-go-lib
Version: 1.3.0
Release: 1%{?dist}
Summary: Go bindings for Deepin Desktop Environment development
License: GPLv3
-URL: https://%{provider_prefix}
-Source0: %{url}/archive/%{commit}/%{repo}-%{shortcommit}.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}
+URL: %{gourl}
+Source0: %{gosource}
%description
DLib is a set of Go bindings/libraries for DDE development.
@@ -30,229 +23,47 @@ Containing dbus (forking from guelfey), glib, gdkpixbuf, pulse and
more.
%package devel
Summary: %{summary}
BuildArch: noarch
+%if %{with check}
# Required for tests
BuildRequires: deepin-gir-generator
BuildRequires: dbus-x11
BuildRequires: iso-codes
BuildRequires: mobile-broadband-provider-info
BuildRequires:
golang(github.com/linuxdeepin/go-x11-client)
-BuildRequires:
golang(github.com/BurntSushi/xgb/xproto)
-BuildRequires:
golang(github.com/BurntSushi/xgbutil)
-BuildRequires:
golang(github.com/BurntSushi/xgbutil/xevent)
-BuildRequires:
golang(github.com/BurntSushi/xgbutil/xprop)
-BuildRequires:
golang(github.com/BurntSushi/xgbutil/xwindow)
-BuildRequires:
golang(github.com/cryptix/wav)
-BuildRequires:
golang(golang.org/x/net/context)
-BuildRequires:
golang(golang.org/x/image/bmp)
-BuildRequires:
golang(golang.org/x/image/tiff)
-BuildRequires: golang(gopkg.in/check.v1)
-BuildRequires: golang(gopkg.in/alecthomas/kingpin.v2)
BuildRequires:
golang(github.com/smartystreets/goconvey/convey)
-BuildRequires: pkgconfig(gobject-2.0)
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(gdk-3.0)
+BuildRequires: golang(gopkg.in/check.v1)
BuildRequires: pkgconfig(gio-2.0)
+BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(gdk-x11-3.0)
BuildRequires: pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires: pkgconfig(libpulse)
-BuildRequires: pkgconfig(libcanberra)
-
-Requires:
golang(github.com/linuxdeepin/go-x11-client)
-Requires:
golang(github.com/BurntSushi/xgb/xproto)
-Requires:
golang(github.com/BurntSushi/xgbutil)
-Requires:
golang(github.com/BurntSushi/xgbutil/xevent)
-Requires:
golang(github.com/BurntSushi/xgbutil/xprop)
-Requires:
golang(github.com/BurntSushi/xgbutil/xwindow)
-Requires:
golang(github.com/cryptix/wav)
-Requires:
golang(golang.org/x/net/context)
-Requires:
golang(golang.org/x/image/bmp)
-Requires:
golang(golang.org/x/image/tiff)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/app) = %{version}-%{release}
-Provides: golang(%{import_path}/appinfo) = %{version}-%{release}
-Provides: golang(%{import_path}/appinfo/desktopappinfo) = %{version}-%{release}
-Provides: golang(%{import_path}/arch) = %{version}-%{release}
-Provides: golang(%{import_path}/archive) = %{version}-%{release}
-Provides: golang(%{import_path}/archive/gzip) = %{version}-%{release}
-Provides: golang(%{import_path}/archive/utils) = %{version}-%{release}
-Provides: golang(%{import_path}/asound) = %{version}-%{release}
-Provides: golang(%{import_path}/backlight/common) = %{version}-%{release}
-Provides: golang(%{import_path}/backlight/display) = %{version}-%{release}
-Provides: golang(%{import_path}/backlight/keyboard) = %{version}-%{release}
-Provides: golang(%{import_path}/calendar) = %{version}-%{release}
-Provides: golang(%{import_path}/calendar/lunar) = %{version}-%{release}
-Provides: golang(%{import_path}/calendar/util) = %{version}-%{release}
-Provides: golang(%{import_path}/cgroup) = %{version}-%{release}
-Provides: golang(%{import_path}/dbus) = %{version}-%{release}
-Provides: golang(%{import_path}/dbus/interfaces) = %{version}-%{release}
-Provides: golang(%{import_path}/dbus/introspect) = %{version}-%{release}
-Provides: golang(%{import_path}/dbus/property) = %{version}-%{release}
-Provides: golang(%{import_path}/dbus1) = %{version}-%{release}
-Provides: golang(%{import_path}/dbus1/introspect) = %{version}-%{release}
-Provides: golang(%{import_path}/dbus1/prop) = %{version}-%{release}
-Provides: golang(%{import_path}/dbusutil) = %{version}-%{release}
-Provides: golang(%{import_path}/dbusutil/gsprop) = %{version}-%{release}
-Provides: golang(%{import_path}/dbusutil/proxy) = %{version}-%{release}
-Provides: golang(%{import_path}/encoding/kv) = %{version}-%{release}
-Provides: golang(%{import_path}/event) = %{version}-%{release}
-Provides: golang(%{import_path}/fsnotify) = %{version}-%{release}
-Provides: golang(%{import_path}/gdkpixbuf) = %{version}-%{release}
-Provides: golang(%{import_path}/gettext) = %{version}-%{release}
-Provides: golang(%{import_path}/graphic) = %{version}-%{release}
-Provides: golang(%{import_path}/gsettings) = %{version}-%{release}
-Provides: golang(%{import_path}/initializer) = %{version}-%{release}
-Provides: golang(%{import_path}/initializer/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/iso) = %{version}-%{release}
-Provides: golang(%{import_path}/keyfile) = %{version}-%{release}
-Provides: golang(%{import_path}/locale) = %{version}-%{release}
-Provides: golang(%{import_path}/log) = %{version}-%{release}
-Provides: golang(%{import_path}/mime) = %{version}-%{release}
-Provides: golang(%{import_path}/mobileprovider) = %{version}-%{release}
-Provides: golang(%{import_path}/notify) = %{version}-%{release}
-Provides: golang(%{import_path}/notify/dbusnotify) = %{version}-%{release}
-Provides: golang(%{import_path}/pam) = %{version}-%{release}
-Provides: golang(%{import_path}/pinyin) = %{version}-%{release}
-Provides: golang(%{import_path}/procfs) = %{version}-%{release}
-Provides: golang(%{import_path}/profile) = %{version}-%{release}
-Provides: golang(%{import_path}/proxy) = %{version}-%{release}
-Provides: golang(%{import_path}/pulse) = %{version}-%{release}
-Provides: golang(%{import_path}/pulse/simple) = %{version}-%{release}
-Provides: golang(%{import_path}/sound) = %{version}-%{release}
-Provides: golang(%{import_path}/sound_effect) = %{version}-%{release}
-Provides: golang(%{import_path}/sound_effect/theme) = %{version}-%{release}
-Provides: golang(%{import_path}/stb_vorbis) = %{version}-%{release}
-Provides: golang(%{import_path}/strv) = %{version}-%{release}
-Provides: golang(%{import_path}/tasker) = %{version}-%{release}
-Provides: golang(%{import_path}/timer) = %{version}-%{release}
-Provides: golang(%{import_path}/users/group) = %{version}-%{release}
-Provides: golang(%{import_path}/users/passwd) = %{version}-%{release}
-Provides: golang(%{import_path}/users/shadow) = %{version}-%{release}
-Provides: golang(%{import_path}/utils) = %{version}-%{release}
-Provides: golang(%{import_path}/xdg/basedir) = %{version}-%{release}
-Provides: golang(%{import_path}/xdg/userdir) = %{version}-%{release}
-Provides: deepin-%{repo} = %{version}-%{release}
-Obsoletes: deepin-%{repo} < %{version}-%{release}
+%endif
%description devel
%{summary}.
This package contains library source intended for
building other packages which use import path with
-%{import_path} prefix.
-
-%package unit-test-devel
-Summary: Unit tests for %{name} package
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test-devel
-%{summary}.
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
+%{goipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%forgeautosetup
%install
-# source codes for building projects
-install -d %{buildroot}%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.[h|c]" -or -iname "*.go" \! -iname
"*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- install -d %{buildroot}%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-
-# testing files for this project
-install -d %{buildroot}%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go" -or -iname "testdata*"); do
- dirprefix=$(dirname $file)
- install -d -p %{buildroot}%{gopath}/src/%{import_path}/$dirprefix
- cp -pav $file %{buildroot}%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >>
unit-test-devel.file-list
- while [ "$dirprefix" != "." ]; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
- dirprefix=$(dirname $dirprefix)
- done
-done
-
-sort -u -o devel.file-list devel.file-list
-sort -u -o unit-test-devel.file-list unit-test-devel.file-list
+%goinstall
+%if %{with check}
%check
-export GOPATH=%{buildroot}%{gopath}:%{gopath}
-
-%if ! 0%{?gotest:1}
-%global gotest go test
+%gochecks
%endif
-%gotest %{import_path}/app ||:
-%gotest %{import_path}/appinfo ||:
-%gotest %{import_path}/appinfo/desktopappinfo ||:
-%gotest %{import_path}/arch ||:
-%gotest %{import_path}/archive ||:
-%gotest %{import_path}/archive/gzip ||:
-%gotest %{import_path}/archive/utils ||:
-%gotest %{import_path}/backlight/common ||:
-%gotest %{import_path}/backlight/display ||:
-%gotest %{import_path}/backlight/keyboard ||:
-%gotest %{import_path}/calendar ||:
-%gotest %{import_path}/calendar/lunar ||:
-%gotest %{import_path}/calendar/util ||:
-%gotest %{import_path}/dbus ||:
-%gotest %{import_path}/dbus/interfaces ||:
-%gotest %{import_path}/dbus/introspect ||:
-%gotest %{import_path}/dbus/property ||:
-%gotest %{import_path}/encoding/kv ||:
-%gotest %{import_path}/event ||:
-%gotest %{import_path}/gdkpixbuf ||:
-#%%gotest %%{import_path}/gettext ||:
-%gotest %{import_path}/graphic ||:
-%gotest %{import_path}/initializer ||:
-%gotest %{import_path}/initializer/v2 ||:
-%gotest %{import_path}/iso ||:
-%gotest %{import_path}/keyfile ||:
-%gotest %{import_path}/locale ||:
-%gotest %{import_path}/log ||:
-%gotest %{import_path}/mime ||:
-%gotest %{import_path}/mobileprovider ||:
-%gotest %{import_path}/notify ||:
-%gotest %{import_path}/notify/dbusnotify ||:
-%gotest %{import_path}/pinyin ||:
-%gotest %{import_path}/procfs ||:
-%gotest %{import_path}/profile ||:
-%gotest %{import_path}/proxy ||:
-%gotest %{import_path}/pulse ||:
-%gotest %{import_path}/sound ||:
-%gotest %{import_path}/strv ||:
-%gotest %{import_path}/tasker ||:
-%gotest %{import_path}/timer ||:
-%gotest %{import_path}/users/group ||:
-%gotest %{import_path}/users/passwd ||:
-%gotest %{import_path}/users/shadow ||:
-%gotest %{import_path}/utils ||:
-%gotest %{import_path}/xdg/basedir ||:
-%gotest %{import_path}/xdg/userdir ||:
-
%files devel -f devel.file-list
%doc README.md
%license LICENSE
-%dir %{gopath}/src/%{import_path}/
-
-%files unit-test-devel -f unit-test-devel.file-list
-%doc README.md
-%license LICENSE
%changelog
-* Fri Nov 9 2018 mosquito <sensor.wen(a)gmail.com> - 1.3.0-1
-- Back to 1.3.0
+* Fri Nov 9 2018 mosquito <sensor.wen(a)gmail.com> - 1.3.0-1.20181119gitb199d0d
+- Update to 1.3.0
* Sat Aug 25 2018 mosquito <sensor.wen(a)gmail.com> - 1.2.11-1
- Back to 1.2.11
commit 8298be55a426269941c92e82a6b3d4ae46b4e4e8
Author: mosquito <sensor.wen(a)gmail.com>
Date: Mon Nov 19 15:51:42 2018 +0800
Release 1.3.0
diff --git a/.gitignore b/.gitignore
index f72a57c..30d07f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/go-lib-2d45507.tar.gz
/go-lib-c314181.tar.gz
/go-lib-c3fe5dc.tar.gz
+/go-lib-b199d0d.tar.gz
diff --git a/golang-deepin-go-lib.spec b/golang-deepin-go-lib.spec
index 03a3c40..3d67394 100644
--- a/golang-deepin-go-lib.spec
+++ b/golang-deepin-go-lib.spec
@@ -7,11 +7,11 @@
#
https://github.com/linuxdeepin/go-lib
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path pkg.deepin.io/lib
-%global commit c3fe5dcaf7a8ac229246ebd0248e366e0c7e6201
+%global commit b199d0dc96e979398ea3985334ccf9c20236d1a7
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-deepin-go-lib
-Version: 1.2.11
+Version: 1.3.0
Release: 1%{?dist}
Summary: Go bindings for Deepin Desktop Environment development
License: GPLv3
@@ -251,6 +251,9 @@ export GOPATH=%{buildroot}%{gopath}:%{gopath}
%license LICENSE
%changelog
+* Fri Nov 9 2018 mosquito <sensor.wen(a)gmail.com> - 1.3.0-1
+- Back to 1.3.0
+
* Sat Aug 25 2018 mosquito <sensor.wen(a)gmail.com> - 1.2.11-1
- Back to 1.2.11
diff --git a/sources b/sources
index 2574846..c53727b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (go-lib-c3fe5dc.tar.gz) =
f81b919af0c0df9549e681eb7b6341d5600073d86160074d7cf8330468e1243e607cf81b9cefdf00c6dfe5738f47571c779018247f057b82c65fb4d55dd9c99e
+SHA512 (go-lib-b199d0d.tar.gz) =
c32e40460ee252f63c5fcf1049f5183db98a041d391b9175f8a26b83040466b33a904fce7559febd31043db29cfa2d74381ec90ac5c939e0d3aadb68b7591ec5