# git.spec.tmpl - tracks the latest commit on the configured branch. # Rendered by coprforge on 2026-04-06. %global commit 641269654011a30b78a479e3e27248e51d7c7266 %global shortcommit 6412696 %global date 20260401 Name: ironbar-git Version: 0~git%{date}.%{shortcommit} Release: 1%{?dist} Summary: Customisable GTK Layer Shell wlroots/sway bar (git snapshot) License: MIT URL: https://github.com/JakeStanger/ironbar Source0: https://github.com/JakeStanger/ironbar/archive/641269654011a30b78a479e3e27248e51d7c7266.tar.gz BuildRequires: cargo-rpm-macros BuildRequires: systemd-rpm-macros BuildRequires: rust BuildRequires: gtk4-devel BuildRequires: gtk4-layer-shell-devel BuildRequires: dbus-devel BuildRequires: pkgconf BuildRequires: openssl-devel BuildRequires: pulseaudio-libs-devel BuildRequires: libinput-devel BuildRequires: libevdev-devel BuildRequires: luajit-devel Requires: gtk4 Requires: gtk4-layer-shell Requires: libevdev Requires: luajit Requires: lua-lgi Conflicts: ironbar Provides: ironbar %description A customisable and feature-rich GTK4 bar for Wayland compositors, written in Rust. Ironbar is designed to support anything from a lightweight bar to a full desktop panel with ease. This is a git snapshot build tracking the main branch. %prep %autosetup -n ironbar-641269654011a30b78a479e3e27248e51d7c7266 cargo vendor %cargo_prep -v vendor %build cargo build --locked --release target/release/ironbar --print-completions bash > target/ironbar.bash target/release/ironbar --print-completions zsh > target/_ironbar target/release/ironbar --print-completions fish > target/ironbar.fish cp ironbar.service target/ironbar.service %{cargo_license_summary} %{cargo_license} > LICENCE.dependencies %{cargo_vendor_manifest} %install install -Dpm755 target/release/ironbar %{buildroot}%{_bindir}/ironbar install -Dpm644 target/ironbar.bash %{buildroot}%{bash_completions_dir}/ironbar.bash install -Dpm644 target/_ironbar %{buildroot}%{zsh_completions_dir}/_ironbar install -Dpm644 target/ironbar.fish %{buildroot}%{fish_completions_dir}/ironbar.fish install -Dpm644 target/ironbar.service %{buildroot}%{_userunitdir}/ironbar.service %post %systemd_user_post ironbar.service %preun %systemd_user_preun ironbar.service %postun %systemd_user_postun_with_restart ironbar.service %if %{with check} %check %cargo_test %endif %files %license LICENSE %doc README.md %doc docs/ %{_bindir}/ironbar %{bash_completions_dir}/ironbar.bash %{zsh_completions_dir}/_ironbar %{fish_completions_dir}/ironbar.fish %{_userunitdir}/ironbar.service %changelog %autochangelog