Blame golang-github-soheilhy-cmux.spec

14fc68
# Run tests in check section
14fc68
%bcond_without check
14fc68
14fc68
# https://github.com/soheilhy/cmux
14fc68
%global goipath         github.com/soheilhy/cmux
14fc68
Version:                0.1.4
14fc68
14fc68
%global common_description %{expand:
14fc68
cmux is a generic Go library to multiplex connections based on their payload.
14fc68
Using cmux, you can serve gRPC, SSH, HTTPS, HTTP, Go RPC, and pretty much any
14fc68
other protocol on the same TCP listener.}
14fc68
14fc68
%gometa
14fc68
14fc68
Name:           %{goname}
14fc68
Release:        1%{?dist}
14fc68
Summary:        Connection multiplexer for GoLang: serve different services on the same port
14fc68
# Detected licences
14fc68
# - *No copyright* Apache License (v2.0) at 'LICENSE'
14fc68
License:        ASL 2.0
14fc68
URL:            %{gourl}
14fc68
Source0:        %{gosource}
14fc68
14fc68
BuildRequires: golang(golang.org/x/net/http2)
14fc68
BuildRequires: golang(golang.org/x/net/http2/hpack)
14fc68
14fc68
%description
14fc68
%{common_description}
14fc68
14fc68
14fc68
%package devel
14fc68
Summary:       %{summary}
14fc68
BuildArch:     noarch
14fc68
14fc68
%description devel
14fc68
%{common_description}
14fc68
14fc68
This package contains library source intended for
14fc68
building other packages which use import path with
14fc68
%{goipath} prefix.
14fc68
14fc68
14fc68
%prep
14fc68
%forgeautosetup
14fc68
14fc68
# Dep "google.golang.org/grpc/examples/helloworld/helloworld" is not included
14fc68
# ir the grpc package
14fc68
rm example_test.go
14fc68
14fc68
14fc68
%install
14fc68
%goinstall
14fc68
14fc68
14fc68
%if %{with check}
14fc68
%check
14fc68
%gochecks
14fc68
%endif
14fc68
14fc68
14fc68
%files devel -f devel.file-list
14fc68
%license LICENSE
14fc68
%doc README.md CONTRIBUTORS
14fc68
14fc68
14fc68
%changelog
14fc68
* Thu Mar 14 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.1.4-1
14fc68
- First package for Fedora
14fc68