From ec5739a052cc5b964b99e5c5481d397e3365e4db Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jul 02 2019 17:41:36 +0000 Subject: Initial import Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90d9681 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/caddy-1.0.0.tar.gz diff --git a/golang-github-mholt-caddy.spec b/golang-github-mholt-caddy.spec new file mode 100644 index 0000000..662c3f0 --- /dev/null +++ b/golang-github-mholt-caddy.spec @@ -0,0 +1,86 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/mholt/caddy +%global goipath github.com/mholt/caddy +Version: 1.0.0 + +%gometa + +%global common_description %{expand: +Caddy is a production-ready open-source web server that is fast, easy to use, +and makes you more productive.} + +%global golicenses LICENSE.txt +%global godocs README.md + +Name: %{goname} +Release: 1%{?dist} +Summary: Fast, cross-platform HTTP/2 web server with automatic HTTPS + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/dustin/go-humanize) +BuildRequires: golang(github.com/flynn/go-shlex) +BuildRequires: golang(github.com/go-acme/lego/certcrypto) +BuildRequires: golang(github.com/go-acme/lego/challenge) +BuildRequires: golang(github.com/go-acme/lego/challenge/tlsalpn01) +BuildRequires: golang(github.com/google/uuid) +BuildRequires: golang(github.com/gorilla/websocket) +BuildRequires: golang(github.com/hashicorp/go-syslog) +BuildRequires: golang(github.com/jimstudt/http-authentication/basic) +BuildRequires: golang(github.com/klauspost/cpuid) +BuildRequires: golang(github.com/lucas-clemente/quic-go) +BuildRequires: golang(github.com/lucas-clemente/quic-go/h2quic) +BuildRequires: golang(github.com/mholt/certmagic) +BuildRequires: golang(github.com/naoina/toml) +BuildRequires: golang(gopkg.in/russross/blackfriday.v1) +BuildRequires: golang(golang.org/x/net/http2) +BuildRequires: golang(gopkg.in/natefinch/lumberjack.v2) +BuildRequires: golang(gopkg.in/yaml.v2) + +%if %{with check} +# Tests +BuildRequires: golang(golang.org/x/net/websocket) +BuildRequires: golang(gopkg.in/mcuadros/go-syslog.v2) +BuildRequires: golang(gopkg.in/mcuadros/go-syslog.v2/format) +%endif + +%description +%{common_description} + +%gopkg + +%prep +%goprep +find . -name "*.go" -exec sed -i "s|github.com/russross/blackfriday|gopkg.in/russross/blackfriday.v1|" "{}" +; + +# %%build +# for cmd in caddy; do +# %%gobuild -o %%{gobuilddir}/bin/$(basename $cmd) %%{goipath}/$cmd +# done + +%install +%gopkginstall +# install -m 0755 -vd %%{buildroot}%%{_bindir} +# install -m 0755 -vp %{gobuilddir}/bin/* %%{buildroot}%%{_bindir}/ + +%if %{with check} +%check +%gocheck +%endif + +# %%files +# %%license LICENSE.txt +# %%doc README.md +# %%{_bindir}/* + +%gopkgfiles + +%changelog +* Sat May 18 18:34:44 CEST 2019 Robert-André Mauchin - 1.0.0-1 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..57a14ea --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (caddy-1.0.0.tar.gz) = 3b77b99634609f9216f51481011b11159b5a7bdb96254783011d9a7e76209853e2eb5eeffdf5243687f4b64eeb36fc18a2f9c7a410ea5ce409608ff6784eaf93