## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 %global commit 33203225c06c40e9fd52388f1262031b11f33a9e %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20260309 Name: livekit-dashboard Version: 0^%{commitdate}.git%{shortcommit} Release: %autorelease Summary: Vibe Coded version for Livekit Dashboard. License: MIT URL: https://github.com/thinhdanggroup/livekit-dashboard Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Source1: %{name}.sysusers.conf Source2: %{name}.service Source3: %{name}.env BuildArch: noarch BuildRequires: systemd-rpm-macros Requires: python3 Requires: python3-pip %description An administrative monitoring and management dashboard interface for LiveKit, built natively with FastAPI and deployed to bare-metal servers. %prep %setup -q -n %{name}-%{commit} %build cat > %{name} << EOF #!/usr/bin/bash if [ ! -d "./venv" ]; then python3 -m venv ./venv fi source ./venv/bin/activate pip install --upgrade pip pip install poetry cp /usr/share/livekit-dashboard/{pyproject.toml,poetry.lock*} . poetry install --without dev --no-interaction --no-ansi pushd /usr/share/livekit-dashboard/ uvicorn app.main:app --host \${LISTEN_IP:-0.0.0.0} --port \${LISTEN_PORT:-8080} popd EOF chmod +x %{name} %install install -m 755 -d %{buildroot}%{_bindir} install -m 755 -d %{buildroot}%{_sharedstatedir}/%{name} mkdir -p %{buildroot}%{_datadir}/%{name} cp -r * %{buildroot}%{_datadir}/%{name}/ install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} install -D -m 644 %{S:1} %{buildroot}%{_sysusersdir}/%{name}.conf install -D -m 644 %{S:2} %{buildroot}%{_unitdir}/%{name}.service install -D -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} %{_sysusersdir}/%{name}.conf %{_unitdir}/%{name}.service %dir %attr(755, %{name}, %{name}) %{_sharedstatedir}/%{name}/ %{_datadir}/%{name}/ %changelog ## START: Generated by rpmautospec * Sun May 31 2026 Grillo del Mal - 0^20260309.git3320322-3 - Fix env variables on run script * Wed May 27 2026 Grillo del Mal - 0^20260309.git3320322-2 - Fix run script * Wed May 27 2026 Grillo del Mal - 0^20260309.git3320322-1 - Initial commit ## END: Generated by rpmautospec