added systemd service and env file
This commit is contained in:
parent
86fd4efbb7
commit
5dd813b12a
4 changed files with 73 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue