diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..40c215a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/csrf-1.6.0.tar.gz diff --git a/golang-github-gorilla-csrf.spec b/golang-github-gorilla-csrf.spec new file mode 100644 index 0000000..a560e7a --- /dev/null +++ b/golang-github-gorilla-csrf.spec @@ -0,0 +1,49 @@ +# Generated by go2rpm 1 +%bcond_without check + +# https://github.com/gorilla/csrf +%global goipath github.com/gorilla/csrf +Version: 1.6.0 + +%gometa + +%global common_description %{expand: +Gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware +for Go web applications & services.} + +%global golicenses LICENSE +%global godocs AUTHORS README.md + +Name: %{goname} +Release: 1%{?dist} +Summary: Cross Site Request Forgery (CSRF) prevention middleware + +# Upstream license specification: BSD-3-Clause +License: BSD +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/gorilla/securecookie) +BuildRequires: golang(github.com/pkg/errors) + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +* Sun Aug 04 16:54:56 CEST 2019 Robert-André Mauchin - 1.6.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b679c45 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (csrf-1.6.0.tar.gz) = 2cdb00aa0faeca1edef52905b8edefa848e2bbe51eab2903023e20129be8451c227ca055013498b9e040017f856207eaedce2476707b18400f0bdda36a1a7205