added systemd service and env file

This commit is contained in:
TheK0tYaRa 2026-02-24 05:48:20 +03:00
parent 86fd4efbb7
commit 5dd813b12a
4 changed files with 73 additions and 0 deletions

View file

@ -10,6 +10,8 @@ VCS: https://github.com/element-hq/lk-jwt-service
Source: %name-%version.tar
Source1: %name-development-%version.tar
Source2: %name.service
Source3: %name.env
BuildRequires: golang >= 1.23
Requires: ca-certificates
@ -36,6 +38,8 @@ go test -mod=vendor ./...
%install
install -Dpm0755 %{name} %{buildroot}%{_bindir}/%{name}
install %SOURCE2 %{buildroot}%{_etcdir}/systemd/system/%name.service
install %SOURCE3 %{buildroot}%{_etcdir}/%{name}/lk-jwt-service.env
%files
%doc README.md LICENSE LICENSE-COMMERCIAL