d69a546
# Generated by go2rpm 1.5.0
14fc688
%bcond_without check
14fc688
14fc688
# https://github.com/soheilhy/cmux
14fc688
%global goipath         github.com/soheilhy/cmux
d69a546
Version:                0.1.5
14fc688
eec2bb4
%gometa
eec2bb4
14fc688
%global common_description %{expand:
eec2bb4
Cmux is a generic Go library to multiplex connections based on their payload.
14fc688
Using cmux, you can serve gRPC, SSH, HTTPS, HTTP, Go RPC, and pretty much any
14fc688
other protocol on the same TCP listener.}
14fc688
eec2bb4
%global golicenses      LICENSE
eec2bb4
%global godocs          CONTRIBUTORS README.md
14fc688
14fc688
Name:           %{goname}
f52750a
Release:        %autorelease
eec2bb4
Summary:        Connection multiplexer for Go: serve different services on the same port
eec2bb4
eec2bb4
# Upstream license specification: Apache-2.0
14fc688
License:        ASL 2.0
14fc688
URL:            %{gourl}
14fc688
Source0:        %{gosource}
14fc688
eec2bb4
BuildRequires:  golang(golang.org/x/net/http2)
eec2bb4
BuildRequires:  golang(golang.org/x/net/http2/hpack)
14fc688
14fc688
%description
14fc688
%{common_description}
14fc688
eec2bb4
%gopkg
14fc688
14fc688
%prep
eec2bb4
%goprep
14fc688
14fc688
%install
eec2bb4
%gopkginstall
14fc688
14fc688
%if %{with check}
14fc688
%check
eec2bb4
%gocheck
14fc688
%endif
14fc688
eec2bb4
%gopkgfiles
14fc688
14fc688
%changelog
f52750a
%autochangelog