diff --git a/lk-jwt-service.spec b/lk-jwt-service.spec index 98f4f1e..895ae44 100644 --- a/lk-jwt-service.spec +++ b/lk-jwt-service.spec @@ -1,20 +1,15 @@ Name: lk-jwt-service Group: System/Servers Version: 0.4.1 -Release: alt1%{?dist} +Release: alt1 Summary: Minimal service to issue LiveKit JWTs for MatrixRTC License: AGPL-3.0-only -#URL: https://github.com/element-hq/lk-jwt-service -Source: source/%name-%version.tar +URL: https://github.com/element-hq/lk-jwt-service +VCS: https://github.com/element-hq/lk-jwt-service -# Vendored Go modules (directory "vendor/"), generated once with: -# tar -xzf v%{version}.tar.gz -# 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 +Source: %name-%version.tar +Source1: %name-development-%version.tar BuildRequires: golang >= 1.23 Requires: ca-certificates @@ -26,17 +21,16 @@ MatrixRTC Authorization Service: issues LiveKit JWTs for MatrixRTC clients. %setup -a1 %build -# go.mod contains a "toolchain ..." directive; force using local Go toolchain (no auto-download) -export GOTOOLCHAIN=local -export GOPATH=%{_builddir}/%{name}-%{version}/_gopath -export GOCACHE=%{_builddir}/%{name}-%{version}/_gocache +# export GOTOOLCHAIN=local +# export GOPATH=%{_builddir}/%{name}-%{version}/_gopath +# export GOCACHE=%{_builddir}/%{name}-%{version}/_gocache go build -trimpath -buildmode=pie -mod=vendor -o %{name} . %check -export GOTOOLCHAIN=local -export GOPATH=%{_builddir}/%{name}-%{version}/_gopath -export GOCACHE=%{_builddir}/%{name}-%{version}/_gocache +# export GOTOOLCHAIN=local +# export GOPATH=%{_builddir}/%{name}-%{version}/_gopath +# export GOCACHE=%{_builddir}/%{name}-%{version}/_gocache go test -mod=vendor ./... @@ -44,8 +38,7 @@ go test -mod=vendor ./... install -Dpm0755 %{name} %{buildroot}%{_bindir}/%{name} %files -# %license LICENSE LICENSE-COMMERCIAL -%doc README.md +%doc README.md LICENSE LICENSE-COMMERCIAL %{_bindir}/%{name} %changelog