%bcond check 1 %global git_date 20250630 %global git_hash fddb4a0 %global git_ver 0.6.0 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: eww Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Widgets for everyone! License: MIT URL: https://github.com/elkowar/eww Source: %{url}/%{src_name} BuildRequires: cargo rust BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gdk-3.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(dbusmenu-glib-0.4) BuildRequires: pkgconfig(dbusmenu-gtk3-0.4) BuildRequires: pkgconfig(gtk-layer-shell-0) BuildRequires: pkgconfig(pango) BuildRequires: pkgconfig(cairo) %global _description %{expand: Widgets for everyone!.} %description %{_description} %prep %autosetup -n %{name} -p1 %build cargo build --release --no-default-features --features=wayland %install ## Manually... install -p -D -m755 target/release/%{name} %{buildroot}%{_bindir}/%{name} %files %license LICENSE %doc CHANGELOG.md %doc README.md %doc YUCK_MIGRATION.md %{_bindir}/eww %changelog %autochangelog