%global git_date 20241125 %global git_hash 999659d # Version is in meson.build %global git_ver 0.44.1 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: pixman Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Source: %{url}/%{src_name} Summary: Pixel manipulation library License: MIT URL: https://gitlab.freedesktop.org/pixman/pixman BuildRequires: gcc BuildRequires: meson %description Pixman is a pixel manipulation library for X and Cairo. %package devel Summary: Pixel manipulation library development package Requires: %{name}%{?isa} = %{version}-%{release} Requires: pkgconfig %description devel Development library for pixman. %prep %autosetup -p1 -n %{name} %build %meson --auto-features=auto %meson_build %install %meson_install %check %meson_test %ldconfig_post %ldconfig_postun %files %doc COPYING %{_libdir}/libpixman-1*.so.* %files devel %dir %{_includedir}/pixman-1 %{_includedir}/pixman-1/pixman.h %{_includedir}/pixman-1/pixman-version.h %{_libdir}/libpixman-1*.so %{_libdir}/pkgconfig/pixman-1.pc %changelog %autochangelog