fixed spec and gear rules

This commit is contained in:
TheK0tYaRa 2026-02-23 20:50:06 +03:00
parent 70e37be3d5
commit 178a5336f4
2 changed files with 9 additions and 9 deletions

View file

@ -1 +1,2 @@
tar: @name@
tar: @name@ name=@name@-@version@
tar: .gear/predownloaded-development name=@name@-development-@version@ base=

View file

@ -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 <romenskiy2012@altlinux.ru> - 0.4.1-alt1
* Mon Feb 23 2026 Your Name <romenskiy2012@altlinux.ru> 0.4.1-alt1
- Initial package