File golang-org-x-net.spec of Package golang-org-x-net.6992

#
# spec file for package golang-org-x
#
# 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         golang
%global repo            net
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     golang.org/x/net

Name:           golang-org-x-%{repo}
Version:        1.5.2+git20161213.cfae461
Release:        0
Summary:        Additional go.network libraries
License:        BSD-3-Clause
Group:          Development/Languages/Golang
Url:            https://%{provider_prefix}
Source0:        %{repo}-%{version}.tar.xz
Source1:        rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  fdupes
BuildRequires:  golang-packaging
BuildRequires:  xz

BuildRequires:  golang-org-x-net-context
Requires:       golang-org-x-net-context
BuildRequires:  golang-org-x-net-html
Requires:       golang-org-x-net-html
BuildRequires:  golang-org-x-net-websocket
Requires:       golang-org-x-net-websocket
BuildRequires:  golang(golang.org/x/text/encoding)
Requires:       golang(golang.org/x/text/encoding)
BuildRequires:  golang(golang.org/x/text/encoding/charmap)
Requires:       golang(golang.org/x/text/encoding/charmap)
BuildRequires:  golang(golang.org/x/text/encoding/htmlindex)
Requires:       golang(golang.org/x/text/encoding/htmlindex)
BuildRequires:  golang(golang.org/x/text/transform)
Requires:       golang(golang.org/x/text/transform)
BuildRequires:  golang(golang.org/x/crypto/ssh/terminal)
Requires:       golang(golang.org/x/crypto/ssh/terminal)

%{go_nostrip}
%{go_provides}

%description
This package contains additional go.network libraries such as the websocket and
SPDY protocols that are developed by the Go team but outside of the main source
tree.

%package -n h2i
Summary:        An interactive HTTP/2 console
Group:          Development/Languages/Golang
AutoReqProv:    Off

%{go_exclusivearch}

%description -n h2i
The h2i command is an interactive HTTP/2 console.

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

%build
%goprep %{import_path}
%gobuild ...

%install
%goinstall
rm -rf $(find %{_builddir}/go/src/%{import_path}/* | grep -E 'net/(context|html|websocket)')
%gosrc
%gofilelist

%fdupes %{buildroot}%{_prefix}

%files -f file.lst
%defattr(-,root,root,-)
%doc README LICENSE PATENTS AUTHORS CONTRIBUTORS

%files -n h2i
%defattr(-,root,root)
%{_bindir}/h2i

%changelog
openSUSE Build Service is sponsored by