%global debug_package %{nil} %global forgeurl https://github.com/rharish101/ReGreet %global tag %{version} Name: regreet Version: 0.2.0 %forgemeta Release: 2%{?dist} Summary: Clean and customizable greeter for greetd License: GPL-3.0-or-later URL: %{forgeurl} Source0: %{forgesource} Source1: regreet.toml Source2: regreet-tmpfiles.conf BuildRequires: rust BuildRequires: cargo BuildRequires: cargo-rpm-macros >= 25 BuildRequires: gtk4-devel >= 4.0.0 BuildRequires: glib2-devel BuildRequires: systemd-rpm-macros Requires: gtk4 Requires(pre): greetd Provides: greetd-greeter %description GTK-based greeter for greetd with session selection and user management. %prep %autosetup -n ReGreet-%{version} %build # Build with online access to fetch dependencies from crates.io cargo build --release %install install -Dm755 target/release/regreet %{buildroot}%{_bindir}/regreet # Install configuration file install -Dm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/greetd/regreet.toml # Install sample configuration install -Dm644 regreet.sample.toml %{buildroot}%{_docdir}/regreet/regreet.sample.toml # Install systemd tmpfiles configuration (Fedora-specific, uses 'greetd' user) install -Dm644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/regreet.conf %files %license LICENSES/* %doc README.md %doc %{_docdir}/regreet/regreet.sample.toml %{_bindir}/regreet %config(noreplace) %{_sysconfdir}/greetd/regreet.toml %{_tmpfilesdir}/regreet.conf %changelog * Tue Nov 05 2024 Washkinazy - 0.2.0-2 - Fix tmpfiles configuration to use 'greetd' user (Fedora convention) instead of 'greeter' (Arch convention) - Add Requires(pre) for greetd to ensure user exists before package installation * Fri Oct 31 2025 Automated Update - 0.2.0-1 - Update to 0.2.0 * Sun Oct 27 2024 Your Name - 0.2.0-1 - Initial package for version 0.2.0