meson/meson.spec

71 lines
2.2 KiB
RPMSpec
Raw Normal View History

2019-12-16 15:48:58 +08:00
%bcond_with check
2019-12-11 20:05:17 +08:00
Name: meson
2019-12-16 15:48:58 +08:00
Version: 0.51.1
Release: 2
2019-12-11 20:05:17 +08:00
Summary: An open source high quality build system
2019-12-16 15:48:58 +08:00
License: ASL 2.0
URL: https://mesonbuild.com/
Source: https://github.com/mesonbuild/meson/archive/%{version}/%{name}-%{version}.tar.gz
2019-12-11 20:05:17 +08:00
BuildArch: noarch
2019-12-16 15:48:58 +08:00
Obsoletes: %{name}-gui < 0.31.0-3
2019-12-11 20:05:17 +08:00
BuildRequires: python3-devel python3-setuptools
Requires: python3-setuptools ninja-build
2019-12-16 15:48:58 +08:00
%if %{with check}
BuildRequires: ninja-build libasan gcc-c++ gcc-gfortran gcc-objc gcc-objc++
BuildRequires: java-devel mono-core mono-devel rust boost-devel gtest-devel
BuildRequires: gmock-devel qt5-qtbase-devel vala python3-gobject-base
BuildRequires: wxGTK3-devel flex bison gettext gnustep-base-devel
BuildRequires: gnustep-make libpcap-devel llvm-devel cups-devel
BuildRequires: git-core pkgconfig(protobuf) pkgconfig(glib-2.0) pkgconfig(glib-sharp-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0) gtk-doc itstool pkgconfig(zlib)
BuildRequires: python%{python3_pkgversion}-Cython pkgconfig(sdl2) pkgconfig(vulkan)
%endif
2019-12-11 20:05:17 +08:00
%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
2019-12-16 15:48:58 +08:00
%autosetup -p1
rm -rf "test cases/frameworks/17 mpi"
2019-12-11 20:05:17 +08:00
sed -i -e "/^%%__meson /s| .*$| %{_bindir}/%{name}|" data/macros.%{name}
%build
%py3_build
%install
%py3_install
2019-12-16 15:48:58 +08:00
install -Dpm0644 data/macros.%{name} %{buildroot}%{rpmmacrodir}/macros.%{name}
%if %{with check}
%check
export MESON_PRINT_TEST_OUTPUT=1
%{__python3} ./run_tests.py
%endif
2019-12-11 20:05:17 +08:00
%files
%license COPYING
%{_bindir}/%{name}
%{python3_sitelib}/mesonbuild/
%{python3_sitelib}/%{name}-*.egg-info/
2019-12-16 15:48:58 +08:00
%{rpmmacrodir}/macros.%{name}
2019-12-11 20:05:17 +08:00
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
%files help
%{_mandir}/man1/%{name}.1*
%changelog
2019-12-16 15:48:58 +08:00
* Wed Dec 11 2019 catastrowings <jianghuhao1994@163.com> - 0.51.1-2
2019-12-11 20:05:17 +08:00
- openEuler init