livekit/livekit.spec

50 lines
1.4 KiB
RPMSpec

Name: livekit
Version: 1.9.11
Release: alt1
Summary: LiveKit WebRTC SFU media server
License: Apache-2.0
Group: System/Servers
Url: https://github.com/livekit/livekit
VCS: https://github.com/livekit/livekit
#https://github.com/livekit/livekit/archive/refs/tags/v%{version}.tar.gz
Source: %name-%version.tar
Source1: %name-development-%version.tar
Source2: %name.service
Source3: %name.sysusers
BuildRequires: golang >= 1.24
%description
LiveKit is an open-source, scalable multi-user WebRTC SFU (Selective Forwarding Unit).
%prep
%setup -a1
%build
#export GOTOOLCHAIN=local
#export CGO_ENABLED=0
export GOFLAGS="-mod=vendor -trimpath"
go build -buildvcs=false -o %{name} ./cmd/server
%install
install -Dpm0755 %{name} %{buildroot}%{_sbindir}/%{name}
install -Dpm0644 config-sample.yaml %{buildroot}%{_sysconfdir}/%{name}/%{name}.yaml
install -Dpm0644 %SOURCE2 %{buildroot}%{_unitdir}/%{name}.service
install -Dpm0644 %SOURCE2 %{buildroot}%{_sysusersdir}/%{name}.conf
%files
#%license LICENSE
#%license NOTICE
%doc README.md CHANGELOG.md NOTICE LICENSE
%{_sbindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.yaml
%{_unitdir}/%{name}.service
%{_sysusersdir}/%{name}.conf
%changelog
* Tue Feb 24 2026 Romenskiy Arseniy <romenskiy2012@altlinux.org> 1.9.11-alt1
- initial build