File golang-github-docker-libnetwork.spec of Package golang-github-docker-libnetwork.4666

#
# spec file for package golang
#
# Copyright (c) 2017 SUSE LINUX 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         docker
%global repo            libnetwork
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           golang-%{provider}-%{project}-%{repo}
Version:        0.0.0+git20170119.7b2b1fe
Release:        0
Summary:        Docker Networking
License:        Apache-2.0
Group:          Development/Languages/Golang
Url:            http://github.com/docker/libnetwork
Source0:        %{repo}-%{version}.tar.xz
Source1:        %{name}-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  fdupes
BuildRequires:  golang-packaging
BuildRequires:  xz
BuildRequires:  golang(API) = 1.7

%{go_provides}

%description
Libnetwork provides a native Go implementation for connecting containers

The goal of libnetwork is to deliver a robust Container Network Model that provides a consistent programming interface and the required network abstractions for applications.

%package -n docker-libnetwork
Summary:        Docker Networking
Group:          System/Management
AutoReqProv:    Off

%description -n docker-libnetwork
docker-proxy binary


%prep
%setup -q -n %{repo}-%{version}

%build
%goprep %{import_path}
export CGO_ENABLED=0
%gobuild cmd/proxy

%install
%{goinstall}
mv %{buildroot}/%{_bindir}/proxy %{buildroot}/%{_bindir}/docker-proxy
%{gosrc}
%{gofilelist}

%fdupes %{buildroot}/%{_prefix}

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

%files -n docker-libnetwork
%defattr(-,root,root,-)
%{_bindir}/docker-proxy

%changelog
openSUSE Build Service is sponsored by