2018-10-23 12:49:08 +03:00
|
|
|
%bcond_with check
|
2018-10-21 20:12:54 +03:00
|
|
|
|
2016-10-10 17:31:19 +04:00
|
|
|
Summary: High productivity build system
|
|
|
|
Name: meson
|
2019-02-16 17:29:35 +03:00
|
|
|
Version: 0.49.2
|
2018-01-29 19:49:07 +10:00
|
|
|
Release: 1
|
2016-10-10 17:31:19 +04:00
|
|
|
License: ASL 2.0
|
|
|
|
Group: Development/Tools
|
|
|
|
Url: http://mesonbuild.com/
|
|
|
|
Source0: https://github.com/mesonbuild/meson/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/mesonbuild/meson/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
|
2017-08-30 11:31:18 +10:00
|
|
|
Source2: %{name}.macros
|
2016-10-10 17:31:19 +04:00
|
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
2018-12-09 18:57:42 +03:00
|
|
|
BuildRequires: pkgconfig(python3) >= 3.5
|
2016-10-10 17:31:19 +04:00
|
|
|
|
2018-10-23 05:45:24 +03:00
|
|
|
%if %{with check}
|
|
|
|
BuildRequires: locales
|
|
|
|
BuildRequires: ninja
|
|
|
|
|
2016-10-10 17:31:19 +04:00
|
|
|
# Various languages
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
BuildRequires: gcc-objc
|
|
|
|
BuildRequires: gcc-objc++
|
|
|
|
BuildRequires: gnustep-base-devel
|
|
|
|
BuildRequires: mono
|
2018-10-23 05:45:24 +03:00
|
|
|
BuildRequires: rust
|
2018-12-09 15:49:48 +01:00
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: pkgconfig(mono)
|
2016-10-10 17:31:19 +04:00
|
|
|
|
|
|
|
# Various libs support
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: gtk-doc
|
2018-12-09 15:49:48 +01:00
|
|
|
BuildRequires: itstool
|
|
|
|
BuildRequires: locales-en
|
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: pkgconfig
|
2018-01-29 21:26:10 +10:00
|
|
|
BuildRequires: qt5-linguist-tools
|
2018-10-23 05:45:24 +03:00
|
|
|
BuildRequires: qt5-tools
|
2018-12-09 15:49:48 +01:00
|
|
|
BuildRequires: texlive-epstopdf
|
|
|
|
BuildRequires: units
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: vala
|
2017-08-30 11:31:18 +10:00
|
|
|
BuildRequires: vala-tools
|
2018-01-29 19:49:07 +10:00
|
|
|
BuildRequires: asan-devel
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: boost-devel
|
2018-01-29 20:42:04 +10:00
|
|
|
BuildRequires: cups-devel
|
2018-10-21 20:12:54 +03:00
|
|
|
BuildRequires: gmock-devel
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: gtest-devel
|
2018-01-29 20:22:07 +10:00
|
|
|
BuildRequires: libwmf-devel
|
2017-08-04 14:24:25 +02:00
|
|
|
BuildRequires: llvm-devel
|
2018-01-29 19:49:07 +10:00
|
|
|
BuildRequires: pcap-devel
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: wxgtku3.0-devel
|
2017-08-04 14:24:25 +02:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2018-01-29 21:47:01 +10:00
|
|
|
BuildRequires: pkgconfig(glib-sharp-2.0)
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2017-08-30 11:31:18 +10:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: pkgconfig(protobuf)
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
2016-10-10 23:41:48 +10:00
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
2016-10-11 00:08:52 +10:00
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2017-08-30 11:31:18 +10:00
|
|
|
BuildRequires: pkgconfig(vapigen)
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
BuildRequires: python3-gobject3
|
|
|
|
BuildRequires: python3-cython
|
2018-10-23 05:45:24 +03:00
|
|
|
%endif
|
2016-10-10 17:31:19 +04:00
|
|
|
|
|
|
|
Requires: ninja
|
2018-10-21 20:12:54 +03:00
|
|
|
Requires: python3-setuptools
|
2017-08-30 11:31:18 +10:00
|
|
|
BuildArch: noarch
|
2016-10-10 17:31:19 +04:00
|
|
|
|
|
|
|
%description
|
2018-12-09 15:49:48 +01:00
|
|
|
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.
|
2016-10-10 17:31:19 +04:00
|
|
|
|
|
|
|
%files
|
2018-10-21 20:12:54 +03:00
|
|
|
%doc README.md COPYING
|
2016-10-10 17:31:19 +04:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1.*
|
|
|
|
%{py3_puresitedir}/mesonbuild/
|
|
|
|
%{py3_puresitedir}/%{name}-%{version}-py*.egg-info/
|
2017-08-30 11:31:18 +10:00
|
|
|
%{_sys_macros_dir}/%{name}.macros
|
2018-10-21 20:12:54 +03:00
|
|
|
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
|
2016-10-10 17:31:19 +04:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
2018-12-09 15:49:48 +01:00
|
|
|
|
2016-10-10 17:31:19 +04:00
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
|
2018-12-09 15:49:48 +01:00
|
|
|
|
2016-10-10 17:31:19 +04:00
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
|
2018-12-09 15:49:48 +01:00
|
|
|
# Install our rpm macro helper for meson
|
2017-08-30 11:31:18 +10:00
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sys_macros_dir}/%{name}.macros
|
2016-10-10 17:31:19 +04:00
|
|
|
|
2018-10-21 20:12:54 +03:00
|
|
|
%if %{with check}
|
2016-10-10 17:31:19 +04:00
|
|
|
%check
|
2018-01-29 19:49:07 +10:00
|
|
|
# Lack of gmock and vulkan.
|
2016-10-10 17:31:19 +04:00
|
|
|
rm -rf "test cases/frameworks/3 gmock/"
|
2018-01-29 19:49:07 +10:00
|
|
|
rm -rf "test cases/frameworks/18 vulkan/"
|
|
|
|
# Remove MPI tests for now because it is complicated to run.
|
|
|
|
rm -rf "test cases/frameworks/17 mpi"
|
|
|
|
# Due to missing libtinfo
|
|
|
|
rm -rf "test cases/frameworks/15 llvm"
|
|
|
|
# Cannot find libboost_thread.so which exists
|
|
|
|
rm -rf "test cases/frameworks/1 boost"
|
2018-10-23 05:45:24 +03:00
|
|
|
rm -rf "test cases/frameworks/22 gir link order"
|
|
|
|
rm -rf "test cases/common/190 openmp"
|
|
|
|
|
2016-10-10 17:31:19 +04:00
|
|
|
export MESON_PRINT_TEST_OUTPUT=1
|
2018-01-29 19:49:07 +10:00
|
|
|
export LC_ALL=UTF-8
|
2016-10-10 17:31:19 +04:00
|
|
|
%__python3 run_tests.py
|
2018-10-21 20:12:54 +03:00
|
|
|
%endif
|