## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: lk-jwt-service Version: 0.4.1 Release: %autorelease Summary: Minimal service to issue LiveKit JWTs for MatrixRTC. License: MIT URL: https://github.com/element-hq/lk-jwt-service Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: %{name}.sysusers.conf Source2: %{name}.service Source3: %{name}.sysconfig BuildRequires: golang BuildRequires: systemd-rpm-macros %description The MatrixRTC Authorization Service bridges Matrix and LiveKit, handling authentication and room creation when needed. %prep %setup -q go mod download %build go build -o lk-jwt-service %install install -m 755 -d %{buildroot}%{_bindir} install -m 755 -d %{buildroot}%{_sysusersdir} install -m 755 -d %{buildroot}%{_sysconfdir}/sysconfig install -m 755 -d %{buildroot}%{_unitdir} install -m 755 -d %{buildroot}%{_sharedstatedir}/%{name} install -D -m 755 ./%{name} %{buildroot}%{_bindir}/%{name} install -m 644 %{S:1} %{buildroot}%{_sysusersdir}/%{name}.conf install -m 644 %{S:2} %{buildroot}%{_unitdir}/%{name}.service install -m 644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/%{name} %pre %sysusers_create_compat %{S:1} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE %attr(755, -, -) %{_bindir}/%{name} %config(noreplace) %attr(-,%{name},%{name}) %{_sysconfdir}/sysconfig/%{name} %dir %attr(755, %{name}, %{name}) %{_sharedstatedir}/%{name}/ %{_sysusersdir}/%{name}.conf %{_unitdir}/%{name}.service %changelog ## START: Generated by rpmautospec * Thu Feb 26 2026 Grillo del Mal - 0.4.1-1 - Initial commit ## END: Generated by rpmautospec