The package rpms/golang-googlecode-goauth2.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-googlecode-goauth2.git/com....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 89123cad4a65f0b9a4dc505dee8c035953e6c98c
Author: Robert-André Mauchin <zebob.m(a)gmail.com>
Date: Mon Apr 23 15:50:41 2018 +0200
Bump to upstream 6881fee410a5daf86371371f9ad451b95e168b71
Update to new Go packaging
diff --git a/.gitignore b/.gitignore
index a2fd6b2..90c52c5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/afe77d958c701557ec5dc56f6936fcc194d15520.tar.gz
/oauth2-5432cc9.tar.gz
+/oauth2-6881fee410a5daf86371371f9ad451b95e168b71.tar.gz
diff --git a/golang-googlecode-goauth2.spec b/golang-googlecode-goauth2.spec
index e9731d3..b736e49 100644
--- a/golang-googlecode-goauth2.spec
+++ b/golang-googlecode-goauth2.spec
@@ -1,239 +1,90 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0
condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply
a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
# Run tests in check section
-# Cyclic deps among cloud, grpc and oauth2
-%global with_check 0
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
+%bcond_without check
+
+%global goipath
golang.org/x/oauth2
+%global forgeurl
https://github.com/golang/oauth2
+%global oldgoipath
code.google.com/p/goauth2
+%global oldgoname %gorpmname %{oldgoipath}
+%global commit 6881fee410a5daf86371371f9ad451b95e168b71
-%global provider github
-%global provider_tld com
-%global project golang
-%global repo oauth2
-#
https://github.com/golang/oauth2
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path
golang.org/x/oauth2
-%global commit 5432cc9688e6250a0dd8f5a5f4c781d92b398be6
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-%global gc_rev afe77d958c701557ec5dc56f6936fcc194d15520
-%global gc_shortrev %(r=%{gc_rev}; echo ${r:0:12})
-%global gc_provider google
-%global gc_provider_sub code
-%global gc_provider_tld com
-%global gc_repo goauth2
-%global gc_import_path
%{gc_provider_sub}.%{gc_provider}.%{gc_provider_tld}/p/%{gc_repo}
-%global gc_name golang-%{gc_provider}%{gc_provider_sub}-%{gc_repo}
-
-%global x_name golang-golangorg-oauth2
-%global devel_main %{x_name}-devel
+%global common_description %{expand:
+A client implementation for OAuth 2.0 spec.}
+
+%gometa
Name: golang-googlecode-goauth2
Version: 0
-Release: 0.23.git%{shortcommit}%{?dist}
-Summary: OAuth 2.0 for Go clients
+Release: 0.24%{?dist}
+Summary: A client implementation for OAuth 2.0 spec
License: BSD
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-Source1:
https://%{gc_repo}.%{gc_provider}%{gc_provider_sub}.%{gc_provider_tld}/archive/%{gc_rev}.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}}
-# 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}
-
-%description
-%{summary}
-
-%if 0%{?with_devel}
-%package -n %{x_name}-devel
-Summary: %{summary}
-BuildArch: noarch
+URL: %{gourl}
+Source0: %{gosource}
-%if 0%{?with_check}
+BuildRequires:
golang(cloud.google.com/go/compute/metadata)
BuildRequires:
golang(golang.org/x/net/context)
+BuildRequires:
golang(golang.org/x/net/context/ctxhttp)
BuildRequires:
golang(google.golang.org/appengine)
BuildRequires:
golang(google.golang.org/appengine/urlfetch)
-%endif
-Requires:
golang(golang.org/x/net/context)
-Requires:
golang(google.golang.org/appengine)
-Requires:
golang(google.golang.org/appengine/urlfetch)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/amazon) = %{version}-%{release}
-Provides: golang(%{import_path}/bitbucket) = %{version}-%{release}
-Provides: golang(%{import_path}/clientcredentials) = %{version}-%{release}
-Provides: golang(%{import_path}/facebook) = %{version}-%{release}
-Provides: golang(%{import_path}/fitbit) = %{version}-%{release}
-Provides: golang(%{import_path}/foursquare) = %{version}-%{release}
-Provides: golang(%{import_path}/github) = %{version}-%{release}
-Provides: golang(%{import_path}/google) = %{version}-%{release}
-Provides: golang(%{import_path}/heroku) = %{version}-%{release}
-Provides: golang(%{import_path}/hipchat) = %{version}-%{release}
-Provides: golang(%{import_path}/jws) = %{version}-%{release}
-Provides: golang(%{import_path}/jwt) = %{version}-%{release}
-Provides: golang(%{import_path}/linkedin) = %{version}-%{release}
-Provides: golang(%{import_path}/mediamath) = %{version}-%{release}
-Provides: golang(%{import_path}/microsoft) = %{version}-%{release}
-Provides: golang(%{import_path}/odnoklassniki) = %{version}-%{release}
-Provides: golang(%{import_path}/paypal) = %{version}-%{release}
-Provides: golang(%{import_path}/slack) = %{version}-%{release}
-Provides: golang(%{import_path}/uber) = %{version}-%{release}
-Provides: golang(%{import_path}/vk) = %{version}-%{release}
-Provides: golang(%{import_path}/yandex) = %{version}-%{release}
-
-%description -n %{x_name}-devel
-%{summary}
+%description
+%{common_description}
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%package -n %{gc_name}-devel
+%package devel
Summary: %{summary}
BuildArch: noarch
-Provides: golang(%{gc_import_path}/appengine/serviceaccount) =
%{version}-%{release}
-Provides: golang(%{gc_import_path}/compute/serviceaccount) = %{version}-%{release}
-Provides: golang(%{gc_import_path}/oauth) = %{version}-%{release}
-Provides: golang(%{gc_import_path}/oauth/jwt) = %{version}-%{release}
-
-%description -n %{gc_name}-devel
-%{summary}
+%description devel
+%{common_description}
This package contains library source intended for
building other packages which use import path with
-%{gc_import_path} prefix.
-%endif
+%{goipath} prefix.
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%package -n compat-%{oldgoname}-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n compat-%{oldgoname}-devel
+%{common_description}
+
+This package contains compatibility glue for code that still imports the
+%{oldgoipath} Go namespace.
-# test subpackage tests code from devel subpackage
-Requires: %{x_name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
%prep
-%setup -q -n %{gc_repo}-%{gc_shortrev} -T -b 1
-%setup -q -n %{repo}-%{commit}
+%forgeautosetup
-%build
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- install -d -p %{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
-
-install -d -p %{buildroot}/%{gopath}/src/%{gc_import_path}/
-pushd ../%{gc_repo}-%{gc_shortrev}
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- install -d -p %{buildroot}/%{gopath}/src/%{gc_import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{gc_import_path}/$file
- echo "%%{gopath}/src/%%{gc_import_path}/$file" >>
../%{repo}-%{commit}/gc_devel.file-list
-done
-popd
+%goinstall
-%endif
+install -m 0755 -vd %{buildroot}%{gopath}/src/%(dirname %{oldgoipath})
+ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{oldgoipath}
-# testing files for this project
-%if 0%{?with_unit_test}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
+%if %{with check}
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-# No dependency directories so far
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
+%gochecks
%endif
-%gotest %{import_path}
-%gotest %{import_path}/clientcredentials
-# open testdata/gcloud/credentials: no such file or directory
-#%gotest %{import_path}/google
-%gotest %{import_path}/internal
-%gotest %{import_path}/jws
-%gotest %{import_path}/jwt
-%endif
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
-%files -n %{x_name}-devel -f devel.file-list
+%files devel -f devel.file-list
%license LICENSE
-%doc README.md CONTRIBUTING.md AUTHORS CONTRIBUTORS
-%dir %{gopath}/src/%{import_path}
+%doc README.md CONTRIBUTORS CONTRIBUTING.md AUTHORS
-%files -n %{gc_name}-devel -f gc_devel.file-list
-%license LICENSE
-%doc README.md CONTRIBUTING.md AUTHORS CONTRIBUTORS
-%dir %{gopath}/src/%{gc_import_path}
-%endif
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc README.md CONTRIBUTING.md AUTHORS CONTRIBUTORS
-%endif
+%files -n compat-%{oldgoname}-devel
+%dir %{gopath}/src/%(dirname %{oldgoipath})
+%{gopath}/src/%{oldgoipath}
+
%changelog
+* Wed Mar 21 2018 Robert-André Mauchin <zebob.m(a)gmail.com> -
0-0.24.20180423git6881fee
+- Bump to upstream 6881fee410a5daf86371371f9ad451b95e168b71
+- Update to new Go packaging
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.23.git5432cc9
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index f69195a..65a3cb2 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-SHA512 (oauth2-5432cc9.tar.gz) =
ec212f2369cc4aa568a2c76fd736450a7f429a9dce93c4c1656e04ab3cba39e858e067ab9be8a2cf94dc391b00c67a253c7d8fdce63469b6ea129aa529d51fc3
-SHA512 (afe77d958c701557ec5dc56f6936fcc194d15520.tar.gz) =
813ae04e2887165f2f4a35cfd594f784d4057d28c94248a059ff9e4852eaf26ada289217bf506dddf17919466720849de18f4ec0beb296645eae26bdea8c470e
+SHA512 (oauth2-6881fee410a5daf86371371f9ad451b95e168b71.tar.gz) =
bec09e224f035ce6adde1c87de3e0eea21098bd3faabd9e8372bd30096ddd5a92a14470445d9dd50ac840f8fb674456d49343ba552bc87c8e70a67e7e36e1ff7