From 178a5336f4927173fdd2b1baffc7ab5de8de083a Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Mon, 23 Feb 2026 20:50:06 +0300 Subject: [PATCH] fixed spec and gear rules --- .gear/rules | 3 ++- lk-jwt-service.spec | 15 +++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gear/rules b/.gear/rules index 326ad81..951ddff 100644 --- a/.gear/rules +++ b/.gear/rules @@ -1 +1,2 @@ -tar: @name@ +tar: @name@ name=@name@-@version@ +tar: .gear/predownloaded-development name=@name@-development-@version@ base= diff --git a/lk-jwt-service.spec b/lk-jwt-service.spec index 161fbc1..98f4f1e 100644 --- a/lk-jwt-service.spec +++ b/lk-jwt-service.spec @@ -1,11 +1,12 @@ Name: lk-jwt-service +Group: System/Servers Version: 0.4.1 Release: alt1%{?dist} Summary: Minimal service to issue LiveKit JWTs for MatrixRTC License: AGPL-3.0-only -URL: https://github.com/element-hq/lk-jwt-service -Source0: %{url}/archive/refs/tags/v%{version}.tar.gz +#URL: https://github.com/element-hq/lk-jwt-service +Source: source/%name-%version.tar # Vendored Go modules (directory "vendor/"), generated once with: # tar -xzf v%{version}.tar.gz @@ -13,7 +14,7 @@ Source0: %{url}/archive/refs/tags/v%{version}.tar.gz # GOTOOLCHAIN=local go mod vendor # cd .. # tar -cJf %{name}-%{version}-vendor.tar.xz %{name}-%{version}/vendor -Source1: %{name}-%{version}-vendor.tar.xz +Source1: source/%name-development-%version.tar BuildRequires: golang >= 1.23 Requires: ca-certificates @@ -22,9 +23,7 @@ Requires: ca-certificates MatrixRTC Authorization Service: issues LiveKit JWTs for MatrixRTC clients. %prep -%autosetup -n %{name}-%{version} -# unpack vendored modules to avoid network during build -tar -xf %{SOURCE1} +%setup -a1 %build # go.mod contains a "toolchain ..." directive; force using local Go toolchain (no auto-download) @@ -45,10 +44,10 @@ go test -mod=vendor ./... install -Dpm0755 %{name} %{buildroot}%{_bindir}/%{name} %files -%license LICENSE LICENSE-COMMERCIAL +# %license LICENSE LICENSE-COMMERCIAL %doc README.md %{_bindir}/%{name} %changelog -* Mon Feb 23 2026 Your Name - 0.4.1-alt1 +* Mon Feb 23 2026 Your Name 0.4.1-alt1 - Initial package