diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..98ca8d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gin-1.3.0.tar.gz diff --git a/golang-github-gin-gonic.spec b/golang-github-gin-gonic.spec new file mode 100644 index 0000000..8bdd158 --- /dev/null +++ b/golang-github-gin-gonic.spec @@ -0,0 +1,70 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/gin-gonic/gin +%global goipath github.com/gin-gonic/gin +Version: 1.3.0 + +%gometa + +%global common_description %{expand: +Gin is a web framework written in Go. It features a martini-like API with much +better performance, up to 40 times faster thanks to httprouter. If you need +performance and good productivity, you will love Gin.} + +%global golicenses LICENSE +%global godocs examples AUTHORS.md BENCHMARKS.md CHANGELOG.md\\\ + CODE_OF_CONDUCT.md CONTRIBUTING.md README.md + +Name: %{goname} +Release: 1%{?dist} +Summary: HTTP web framework written in Go + +License: MIT +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/dustin/go-broadcast) +BuildRequires: golang(github.com/gin-contrib/sse) +BuildRequires: golang(github.com/gin-gonic/autotls) +BuildRequires: golang(github.com/golang/protobuf/proto) +BuildRequires: golang(github.com/jessevdk/go-assets) +BuildRequires: golang(github.com/manucorporat/stats) +BuildRequires: golang(github.com/mattn/go-isatty) +# Cyclic. Only in examples +# BuildRequires: golang(github.com/thinkerou/favicon) +BuildRequires: golang(github.com/ugorji/go/codec) +BuildRequires: golang(golang.org/x/crypto/acme/autocert) +BuildRequires: golang(golang.org/x/net/context) +BuildRequires: golang(golang.org/x/sync/errgroup) +BuildRequires: golang(google.golang.org/grpc) +BuildRequires: golang(google.golang.org/grpc/reflection) +BuildRequires: golang(gopkg.in/go-playground/validator.v8) +BuildRequires: golang(gopkg.in/yaml.v2) + +%if %{with check} +# Tests +BuildRequires: golang(github.com/stretchr/testify/assert) +%endif + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +* Tue Apr 30 14:45:15 CEST 2019 Robert-André Mauchin - 1.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..907e36b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gin-1.3.0.tar.gz) = c47cbbe25b3ee8580ea0dd552be6cafa575f4e81b52aaa74f69529185a0e2e60bb00b4cbb86eb39e0004fbe86adb4b084e0c5b6ec733e4a1e74eb6f971290cec