%undefine __cmake_in_source_build %define snapdate 20231130 %define snaphash a2e9daf4ddfadc6735b72f8f08563dc4f83a22d5 Name: aurora-scanner Summary: Converts Wayland protocol definition to C++ code Version: 0.1.0 Release: 0.1%{?snaphash:.%{snapdate}git%(echo %{snaphash} | cut -c -13)}%{?dist} License: GPLv3 Url: https://liri.io Source0: https://github.com/lirios/aurora-scanner/%{?snaphash:archive}%{!?snaphash:releases/download}/%{?snaphash}%{!?snaphash:v%{version}}/%{name}-%{?snaphash}%{!?snaphash:%{version}}.tar.gz BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(wayland-scanner) BuildRequires: extra-cmake-modules >= 5.245.0-1 %description Converts Wayland protocol definition to C++ code. %prep %setup -q -n %{?snaphash:%{name}-%{snaphash}}%{!?snaphash:%{name}-%{version}} %build %cmake_kf6 %cmake_build %install %cmake_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README.md %{_bindir}/aurora-wayland-scanner