commented exports as a test
This commit is contained in:
parent
9cf533f62d
commit
86fd4efbb7
1 changed files with 12 additions and 19 deletions
|
|
@ -1,20 +1,15 @@
|
||||||
Name: lk-jwt-service
|
Name: lk-jwt-service
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
Version: 0.4.1
|
Version: 0.4.1
|
||||||
Release: alt1%{?dist}
|
Release: alt1
|
||||||
Summary: Minimal service to issue LiveKit JWTs for MatrixRTC
|
Summary: Minimal service to issue LiveKit JWTs for MatrixRTC
|
||||||
|
|
||||||
License: AGPL-3.0-only
|
License: AGPL-3.0-only
|
||||||
#URL: https://github.com/element-hq/lk-jwt-service
|
URL: https://github.com/element-hq/lk-jwt-service
|
||||||
Source: source/%name-%version.tar
|
VCS: https://github.com/element-hq/lk-jwt-service
|
||||||
|
|
||||||
# Vendored Go modules (directory "vendor/"), generated once with:
|
Source: %name-%version.tar
|
||||||
# tar -xzf v%{version}.tar.gz
|
Source1: %name-development-%version.tar
|
||||||
# cd %{name}-%{version}
|
|
||||||
# GOTOOLCHAIN=local go mod vendor
|
|
||||||
# cd ..
|
|
||||||
# tar -cJf %{name}-%{version}-vendor.tar.xz %{name}-%{version}/vendor
|
|
||||||
Source1: source/%name-development-%version.tar
|
|
||||||
|
|
||||||
BuildRequires: golang >= 1.23
|
BuildRequires: golang >= 1.23
|
||||||
Requires: ca-certificates
|
Requires: ca-certificates
|
||||||
|
|
@ -26,17 +21,16 @@ MatrixRTC Authorization Service: issues LiveKit JWTs for MatrixRTC clients.
|
||||||
%setup -a1
|
%setup -a1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# go.mod contains a "toolchain ..." directive; force using local Go toolchain (no auto-download)
|
# export GOTOOLCHAIN=local
|
||||||
export GOTOOLCHAIN=local
|
# export GOPATH=%{_builddir}/%{name}-%{version}/_gopath
|
||||||
export GOPATH=%{_builddir}/%{name}-%{version}/_gopath
|
# export GOCACHE=%{_builddir}/%{name}-%{version}/_gocache
|
||||||
export GOCACHE=%{_builddir}/%{name}-%{version}/_gocache
|
|
||||||
|
|
||||||
go build -trimpath -buildmode=pie -mod=vendor -o %{name} .
|
go build -trimpath -buildmode=pie -mod=vendor -o %{name} .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export GOTOOLCHAIN=local
|
# export GOTOOLCHAIN=local
|
||||||
export GOPATH=%{_builddir}/%{name}-%{version}/_gopath
|
# export GOPATH=%{_builddir}/%{name}-%{version}/_gopath
|
||||||
export GOCACHE=%{_builddir}/%{name}-%{version}/_gocache
|
# export GOCACHE=%{_builddir}/%{name}-%{version}/_gocache
|
||||||
|
|
||||||
go test -mod=vendor ./...
|
go test -mod=vendor ./...
|
||||||
|
|
||||||
|
|
@ -44,8 +38,7 @@ go test -mod=vendor ./...
|
||||||
install -Dpm0755 %{name} %{buildroot}%{_bindir}/%{name}
|
install -Dpm0755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
# %license LICENSE LICENSE-COMMERCIAL
|
%doc README.md LICENSE LICENSE-COMMERCIAL
|
||||||
%doc README.md
|
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue