File golang-github-fsouza-go-dockerclient.spec of Package golang-github-fsouza-go-dockerclient

#
# spec file for package golang-github-jwilder-docker-gen
#
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%global provider        github
%global provider_tld    com
%global project         fsouza
%global repo            go-dockerclient
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}
%global docker          v17.04.0-ce-rc2.tar.gz

Name:           golang-%{provider}-%{project}-%{repo}
Version:        0.0.0+git20170403.e24e809
Release:        0
License:        MIT
Summary:        Go client for the Docker remote API 
Url:            https://%{provider_prefix}
Group:          Development/Languages/Golang
Source:         %{repo}-%{version}.tar.xz
Source1:        %{docker}
BuildRequires:  golang-packaging
BuildRequires:  fdupes
BuildRequires:  golang(golang.org/x/net/context)
Requires:       golang(golang.org/x/net/context)
BuildRequires:  golang(golang.org/x/net/context/ctxhttp)
Requires:       golang(golang.org/x/net/context/ctxhttp)
BuildRequires:  golang-github-gorilla-mux
Requires:       golang-github-gorilla-mux
BuildRequires:  golang-github-hashicorp-go-cleanhttp
Requires:       golang-github-hashicorp-go-cleanhttp
BuildRequires:  golang-github-docker-go-units
Requires:       golang-github-docker-go-units
BuildRequires:  golang-github-cpuguy83-go-md2man
Requires:       golang-github-cpuguy83-go-md2man
Requires:       docker
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%{go_nostrip}
%{go_provides}

%description
This package presents a client for the Docker remote API. It also provides support
for the extensions in the Swarm API. It currently supports the Docker API up to
version 1.23.

This package also provides support for docker's network API, which is a simple
passthrough to the libnetwork remote API. Note that docker's network API is
only available in docker 1.8 and above, and only enabled in docker if
DOCKER_EXPERIMENTAL is defined during the docker build process.

%prep
%setup -q -n %{repo}-%{version}
mkdir -p vendor/github.com/docker/
tar xvzf %{SOURCE1}
mv docker-17.04.0-ce-rc2 vendor/github.com/docker/docker/

%build
%goprep %{import_path}
%gobuild

%install
%goinstall
%gosrc
%gofilelist

%fdupes %{buildroot}/%{_prefix}

%check
%gotest %{import_path}

%files -f file.lst
%defattr(-,root,root)
%doc LICENSE

%files

%changelog