| 1 | Name: garlock |
| 2 | Version: 0.1.0 |
| 3 | Release: 1%{?dist} |
| 4 | Summary: Screen locker for the gar desktop suite |
| 5 | |
| 6 | License: MIT |
| 7 | URL: https://github.com/gardesk/garlock |
| 8 | Source0: %{name}-%{version}.tar.gz |
| 9 | |
| 10 | BuildRequires: rust >= 1.75 |
| 11 | BuildRequires: cargo |
| 12 | BuildRequires: libxcb-devel |
| 13 | BuildRequires: cairo-devel |
| 14 | BuildRequires: pango-devel |
| 15 | BuildRequires: pam-devel |
| 16 | |
| 17 | Requires: pam |
| 18 | |
| 19 | # Disable debug package |
| 20 | %global debug_package %{nil} |
| 21 | |
| 22 | %description |
| 23 | Garlock is a screen locker for X11 built in Rust. Features blur effects, |
| 24 | clock display, and PAM authentication. Part of the gardesk desktop environment |
| 25 | suite. |
| 26 | |
| 27 | %prep |
| 28 | %autosetup |
| 29 | |
| 30 | %build |
| 31 | export CARGO_TARGET_DIR=target |
| 32 | cargo build --release --workspace |
| 33 | |
| 34 | %install |
| 35 | install -Dm755 target/release/garlock %{buildroot}%{_bindir}/garlock |
| 36 | |
| 37 | %files |
| 38 | %{_bindir}/garlock |
| 39 | |
| 40 | %changelog |
| 41 | * Fri Jan 17 2025 mfw <espadonne@outlook.com> - 0.1.0-1 |
| 42 | - Initial RPM release of garlock |
| 43 | - Screen locker with blur and PAM auth |
| 44 | - Part of gardesk desktop suite |
| 45 |