%global debug_package %{nil} Name: fp-no-dash Version: 0.2.6 Release: %autorelease Summary: A lightweight Rust dashboard for self-hosted services License: MIT URL: https://gitlab.com/fpsys/fp-no-dash Source0: fp-no-dash-0.2.6.tar.gz Source1: fp-no-dash.service BuildRequires: gcc BuildRequires: ca-certificates BuildRequires: systemd-rpm-macros BuildRequires: curl BuildRequires: rpmautospec %description fp-no-dash is a lightweight Rust dashboard for self-hosted services. Everything is prepared at build time. %prep %setup -q -n fp-no-dash-0.2.6 %build cargo build --release --locked %install mkdir -p %{buildroot}%{_bindir} install -m 755 target/release/fp-no-dash %{buildroot}%{_bindir}/fp-no-dash mkdir -p %{buildroot}%{_userunitdir} install -m 644 %{SOURCE1} %{buildroot}%{_userunitdir}/fp-no-dash.service %post %systemd_user_post fp-no-dash.service %preun %systemd_user_preun fp-no-dash.service %files %{_bindir}/fp-no-dash %{_userunitdir}/fp-no-dash.service %license LICENSE %doc README.md %changelog %autochangelog