%global libname mesonbuild Name: meson Version: 1.11.1 Release: 1%{?dist} Summary: High productivity build system License: Apache-2.0 URL: https://mesonbuild.com/ Source0: https://github.com/mesonbuild/meson/releases/download/%{version}/meson-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: pyproject-rpm-macros Requires: python3 Requires: ninja-build %description Meson is a build system designed to optimize programmer productivity. It aims to do this by providing simple, out-of-the-box support for modern software development tools and practices, such as unit tests, coverage reports, Valgrind, CCache and the like. %prep %autosetup -p1 -n meson-%{version} # Fix the meson RPM macro to use the correct path sed -i -e "/^%%__meson /s| .*$| %{_bindir}/%{name}|" data/macros.%{name} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{libname} install -Dpm0644 -t %{buildroot}%{_rpmmacrodir} data/macros.%{name} install -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions/ data/shell-completions/bash/meson install -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions/ data/shell-completions/zsh/_meson # Install polkit policy install -Dpm0644 -t %{buildroot}%{_datadir}/polkit-1/actions/ data/com.mesonbuild.install.policy %files -f %{pyproject_files} %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_rpmmacrodir}/macros.%{name} %dir %{_datadir}/polkit-1 %dir %{_datadir}/polkit-1/actions %{_datadir}/polkit-1/actions/com.mesonbuild.install.policy %{_datadir}/bash-completion/completions/meson %{_datadir}/zsh/site-functions/_meson %changelog * Wed Jul 08 2026 Yonghang Wang - 1.11.1-1 - Update to 1.11.1