meson/meson.spec
2019-12-11 20:05:17 +08:00

51 lines
1.4 KiB
RPMSpec

Name: meson
Version: 0.49.0
Release: 2
Summary: An open source high quality build system
License: ASL 2.0
URL: http://mesonbuild.com/
Source0: https://github.com/mesonbuild/meson/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools
Requires: python3-setuptools ninja-build
%description
Meson is an open source build system meant to be both extremely fast, and, even more importantly,
as user friendly as possible.
The main design point of Meson is that every moment a developer spends writing or debugging build
definitions is a second wasted. So is every second spent waiting for the build system to actually
start compiling code.
%package_help
%prep
%autosetup -p1
sed -i -e "/^%%__meson /s| .*$| %{_bindir}/%{name}|" data/macros.%{name}
%build
%py3_build
%install
%py3_install
install -Dpm0644 data/macros.%{name} %{buildroot}%{_rpmmacrodir}/macros.%{name}
%files
%license COPYING
%{_bindir}/%{name}
%{python3_sitelib}/mesonbuild/
%{python3_sitelib}/%{name}-*.egg-info/
%{_rpmmacrodir}/macros.%{name}
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
%files help
%{_mandir}/man1/%{name}.1*
%changelog
* Wed Dec 11 2019 catastrowings <jianghuhao1994@163.com> - 0.49.0-2
- openEuler init