Blame SPECS/meson.spec

9c0ac9
%global libname mesonbuild
9c0ac9
9c0ac9
Name:           meson
3a3278
Version:        0.57.2
e93613
Release:        1%{?dist}
9c0ac9
Summary:        High productivity build system
9c0ac9
9c0ac9
License:        ASL 2.0
9c0ac9
URL:            https://mesonbuild.com/
e93613
Source:         https://github.com/mesonbuild/meson/releases/download/%{version}/meson-%{version}.tar.gz
9c0ac9
9c0ac9
BuildArch:      noarch
9c0ac9
9c0ac9
BuildRequires:  python3-devel
9c0ac9
BuildRequires:  python3-setuptools
9c0ac9
Requires:       python%{python3_version}dist(setuptools)
9c0ac9
Requires:       ninja-build
c64544
9c0ac9
%description
9c0ac9
Meson is a build system designed to optimize programmer
9c0ac9
productivity. It aims to do this by providing simple, out-of-the-box
9c0ac9
support for modern software development tools and practices, such as
9c0ac9
unit tests, coverage reports, Valgrind, CCache and the like.
9c0ac9
9c0ac9
%prep
9c0ac9
%autosetup -p1
9c0ac9
# Macro should not change when we are redefining bindir
9c0ac9
sed -i -e "/^%%__meson /s| .*$| %{_bindir}/%{name}|" data/macros.%{name}
9c0ac9
9c0ac9
%build
9c0ac9
%py3_build
9c0ac9
9c0ac9
%install
9c0ac9
%py3_install
9c0ac9
install -Dpm0644 -t %{buildroot}%{rpmmacrodir} data/macros.%{name}
9c0ac9
9c0ac9
%files
9c0ac9
%license COPYING
9c0ac9
%{_bindir}/%{name}
9c0ac9
%{python3_sitelib}/%{libname}/
9c0ac9
%{python3_sitelib}/%{name}-*.egg-info/
9c0ac9
%{_mandir}/man1/%{name}.1*
9c0ac9
%{rpmmacrodir}/macros.%{name}
9c0ac9
%dir %{_datadir}/polkit-1
9c0ac9
%dir %{_datadir}/polkit-1/actions
9c0ac9
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
9c0ac9
9c0ac9
%changelog
3a3278
* Sun Apr 18 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.57.2-1
3a3278
- import meson-0.57.2-1.fc35
3a3278
e93613
* Tue Dec 15 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.57.1-1
e93613
- import meson-0.57.1-1.fc35