Accepting request 1181794 from server:http
OBS-URL: https://build.opensuse.org/request/show/1181794 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/caddy?expand=0&rev=27
This commit is contained in:
commit
7f5cc9cfee
18
_service
18
_service
@ -1,8 +1,20 @@
|
|||||||
<services>
|
<services>
|
||||||
<service name="download_files" mode="manual"/>
|
<service name="download_files" mode="manual"/>
|
||||||
|
<service name="tar_scm" mode="manual">
|
||||||
|
<param name="url">https://github.com/caddyserver/caddy.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="filename">caddy</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
<param name="revision">v2.8.4</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
</service>
|
||||||
|
<service mode="manual" name="set_version">
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="manual">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
<service name="go_modules" mode="manual">
|
<service name="go_modules" mode="manual">
|
||||||
<param name="basename">./</param>
|
|
||||||
<param name="subdir">./</param>
|
|
||||||
</service>
|
</service>
|
||||||
</services>
|
</services>
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:9e2125dda6200fc997d3965578e7b526e042857f2305261c02853775c04e1cf6
|
oid sha256:687ce74e4ccca742148e4352085f82f1fe1885a6fbee26dbde84618c44012518
|
||||||
size 10306476
|
size 678881
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 19 13:40:22 UTC 2024 - Alexandre Vicenzi <alexandre.vicenzi@suse.com>
|
||||||
|
|
||||||
|
- Revert buildable-artifact change, fetch tarball with tar_scm
|
||||||
|
- Downgrade golang(API) version to match go.mod
|
||||||
|
- Override Caddy version during build time as suggested in caddy.go
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 14 10:21:50 UTC 2024 - Enrico Belleri <kilgore.trout@idesmi.eu>
|
Fri Jun 14 10:21:50 UTC 2024 - Enrico Belleri <kilgore.trout@idesmi.eu>
|
||||||
|
|
||||||
|
10
caddy.spec
10
caddy.spec
@ -23,8 +23,7 @@ Summary: Fast, multi-platform web server with automatic HTTPS
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Productivity/Networking/Web/Proxy
|
Group: Productivity/Networking/Web/Proxy
|
||||||
URL: https://caddyserver.com/
|
URL: https://caddyserver.com/
|
||||||
# bug https://github.com/golang/go/issues/29228
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Source0: https://github.com/caddyserver/%{name}/releases/download/v%{version}/%{name}_%{version}_buildable-artifact.tar.gz#/%{name}-%{version}.tar.gz
|
|
||||||
Source1: vendor.tar.gz
|
Source1: vendor.tar.gz
|
||||||
Source2: https://github.com/caddyserver/dist/raw/v%{version}/config/Caddyfile
|
Source2: https://github.com/caddyserver/dist/raw/v%{version}/config/Caddyfile
|
||||||
Source3: caddy.service
|
Source3: caddy.service
|
||||||
@ -32,7 +31,7 @@ Source4: https://github.com/caddyserver/dist/raw/v%{version}/welcome/inde
|
|||||||
Source5: caddy.sysusers
|
Source5: caddy.sysusers
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: sysuser-tools
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: golang(API) >= 1.22
|
BuildRequires: golang(API) >= 1.21
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
%{sysusers_requires}
|
%{sysusers_requires}
|
||||||
|
|
||||||
@ -69,14 +68,15 @@ BuildArch: noarch
|
|||||||
Fish shell completion script for %{name}, generated during the build.
|
Fish shell completion script for %{name}, generated during the build.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -a 1 -c
|
%autosetup -a 1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Build the binary.
|
# Build the binary.
|
||||||
%ifnarch ppc64
|
%ifnarch ppc64
|
||||||
export GOFLAGS="-buildmode=pie"
|
export GOFLAGS="-buildmode=pie"
|
||||||
%endif
|
%endif
|
||||||
go build -v -x
|
# overrides caddy reported version (see caddy.go for explanations why this is needed).
|
||||||
|
go build -ldflags '-X github.com/caddyserver/caddy/v2.CustomVersion=v%{version}' ./cmd/%{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Execute binary and check version
|
# Execute binary and check version
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:4b6de27cc755b38ce0fbb1bb41ad566de9c7d8aa3a5cd13ef3e670f4ff939bba
|
oid sha256:618d45c1f5bb905923f1da6f2f1ef921d1c1f1b488c3af723b0e79606ad33825
|
||||||
size 10210785
|
size 9782891
|
||||||
|
Loading…
Reference in New Issue
Block a user