From eec2bb472ebd4a702236ea74d3a0effb1e3f19ac Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Apr 27 2019 13:52:34 +0000 Subject: Update to new macros Signed-off-by: Robert-André Mauchin --- diff --git a/golang-github-soheilhy-cmux.spec b/golang-github-soheilhy-cmux.spec index 06d275b..0488581 100644 --- a/golang-github-soheilhy-cmux.spec +++ b/golang-github-soheilhy-cmux.spec @@ -1,69 +1,54 @@ -# Run tests in check section +# Generated by go2rpm %bcond_without check # https://github.com/soheilhy/cmux %global goipath github.com/soheilhy/cmux Version: 0.1.4 +%gometa + %global common_description %{expand: -cmux is a generic Go library to multiplex connections based on their payload. +Cmux is a generic Go library to multiplex connections based on their payload. Using cmux, you can serve gRPC, SSH, HTTPS, HTTP, Go RPC, and pretty much any other protocol on the same TCP listener.} -%gometa +%global golicenses LICENSE +%global godocs CONTRIBUTORS README.md Name: %{goname} -Release: 1%{?dist} -Summary: Connection multiplexer for GoLang: serve different services on the same port -# Detected licences -# - *No copyright* Apache License (v2.0) at 'LICENSE' +Release: 2%{?dist} +Summary: Connection multiplexer for Go: serve different services on the same port + +# Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} -BuildRequires: golang(golang.org/x/net/http2) -BuildRequires: golang(golang.org/x/net/http2/hpack) +BuildRequires: golang(golang.org/x/net/http2) +BuildRequires: golang(golang.org/x/net/http2/hpack) %description %{common_description} - -%package devel -Summary: %{summary} -BuildArch: noarch - -%description devel -%{common_description} - -This package contains library source intended for -building other packages which use import path with -%{goipath} prefix. - +%gopkg %prep -%forgeautosetup - -# Dep "google.golang.org/grpc/examples/helloworld/helloworld" is not included -# ir the grpc package +%goprep rm example_test.go - %install -%goinstall - +%gopkginstall %if %{with check} %check -%gochecks +%gocheck %endif - -%files devel -f devel.file-list -%license LICENSE -%doc README.md CONTRIBUTORS - +%gopkgfiles %changelog +* Sat Apr 27 15:44:19 CEST 2019 Robert-André Mauchin - 0.1.4-2 +- Update to new macros + * Thu Mar 14 2019 Robert-André Mauchin - 0.1.4-1 - First package for Fedora -