2019-05-15 19:45:07 +02:00
|
|
|
# Running tests needs lot of time
|
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
|
2022-08-06 14:02:42 +03:00
|
|
|
Version: 0.59.4
|
2020-01-28 07:20:42 +00:00
|
|
|
Release: 1
|
2016-10-10 17:31:19 +04:00
|
|
|
License: ASL 2.0
|
|
|
|
Group: Development/Tools
|
2019-10-11 01:22:52 +03:00
|
|
|
Url: http://mesonbuild.com
|
2016-10-10 17:31:19 +04:00
|
|
|
Source0: https://github.com/mesonbuild/meson/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2017-08-30 11:31:18 +10:00
|
|
|
Source2: %{name}.macros
|
2016-10-10 17:31:19 +04:00
|
|
|
|
2021-02-14 11:08:21 +03:00
|
|
|
BuildRequires: python3-devel
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: python3-setuptools
|
2016-10-10 17:31:19 +04:00
|
|
|
|
2018-10-23 05:45:24 +03:00
|
|
|
%if %{with check}
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: locales
|
2021-02-14 11:08:21 +03:00
|
|
|
BuildRequires: ninja >= 1.5
|
2018-10-23 05:45:24 +03:00
|
|
|
|
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
|
2018-12-09 15:49:48 +01:00
|
|
|
BuildRequires: java-devel
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: mono
|
2018-12-09 15:49:48 +01:00
|
|
|
BuildRequires: pkgconfig(mono)
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: rust
|
2016-10-10 17:31:19 +04:00
|
|
|
|
|
|
|
# Various libs support
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: asan-devel
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: bison
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cups-devel
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: git
|
2018-10-21 20:12:54 +03:00
|
|
|
BuildRequires: gmock-devel
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: gtest-devel
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: itstool
|
2018-01-29 20:22:07 +10:00
|
|
|
BuildRequires: libwmf-devel
|
2017-08-04 14:24:25 +02:00
|
|
|
BuildRequires: llvm-devel
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: locales-en
|
|
|
|
BuildRequires: nasm
|
2018-01-29 19:49:07 +10:00
|
|
|
BuildRequires: pcap-devel
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
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)
|
2019-05-15 19:45:07 +02:00
|
|
|
BuildRequires: pkgconfig(libgcrypt)
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: pkgconfig(protobuf)
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2017-08-30 11:31:18 +10:00
|
|
|
BuildRequires: pkgconfig(vapigen)
|
2019-05-15 19:45:07 +02:00
|
|
|
BuildRequires: pkgconfig(vulkan)
|
2016-10-10 17:31:19 +04:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2019-10-11 01:22:52 +03:00
|
|
|
BuildRequires: python3-cython
|
|
|
|
BuildRequires: python3-gobject3
|
|
|
|
BuildRequires: qt5-linguist-tools
|
|
|
|
BuildRequires: qt5-tools
|
|
|
|
BuildRequires: texlive-epstopdf
|
|
|
|
BuildRequires: units
|
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: vala-tools
|
|
|
|
BuildRequires: wxgtku3.0-devel
|
2018-10-23 05:45:24 +03:00
|
|
|
%endif
|
2016-10-10 17:31:19 +04:00
|
|
|
|
|
|
|
Requires: ninja
|
2021-02-14 11:08:21 +03:00
|
|
|
Requires: python38-setuptools
|
2022-08-06 14:02:42 +03:00
|
|
|
Requires: python38-pkg-resources
|
|
|
|
Requires: python3-pkg-resources
|
|
|
|
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}
|
2019-10-11 01:22:52 +03:00
|
|
|
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
|
2016-10-10 17:31:19 +04:00
|
|
|
%{_mandir}/man1/%{name}.1.*
|
2020-01-09 22:07:54 +03:00
|
|
|
%{_rpmmacrodir}/*%{name}*
|
2019-10-11 01:22:52 +03:00
|
|
|
%{py3_puresitedir}/%{name}-%{version}-py*.egg-info/
|
|
|
|
%{py3_puresitedir}/mesonbuild/
|
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
|
2020-01-09 22:07:54 +03:00
|
|
|
%install_macro meson %{SOURCE2}
|
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
|
2019-05-15 19:45:07 +02:00
|
|
|
# TODO: Investigate and fix failures
|
|
|
|
# Missing compilers or their dependencies
|
|
|
|
rm -rf "test cases/fortran/1 basic/"
|
|
|
|
rm -rf "test cases/fortran/2 modules/"
|
|
|
|
rm -rf "test cases/fortran/3 module procedure/"
|
|
|
|
rm -rf "test cases/fortran/4 self dependency/"
|
|
|
|
rm -rf "test cases/fortran/5 static/"
|
|
|
|
rm -rf "test cases/fortran/6 dynamic/"
|
|
|
|
rm -rf "test cases/fortran/7 generated/"
|
|
|
|
rm -rf "test cases/fortran/8 module names/"
|
|
|
|
rm -rf "test cases/fortran/9 cpp/"
|
|
|
|
rm -rf "test cases/fortran/10 find library/"
|
|
|
|
rm -rf "test cases/fortran/11 compiles links runs/"
|
|
|
|
rm -rf "test cases/fortran/12 submodule/"
|
|
|
|
rm -rf "test cases/fortran/13 coarray/"
|
|
|
|
rm -rf "test cases/nasm/1 configure/"
|
|
|
|
rm -rf "test cases/rust/1 basic/"
|
|
|
|
# Lack of dependencies
|
2018-01-29 19:49:07 +10:00
|
|
|
# Cannot find libboost_thread.so which exists
|
|
|
|
rm -rf "test cases/frameworks/1 boost"
|
2019-05-15 19:45:07 +02:00
|
|
|
#rm -rf "test cases/frameworks/3 gmock/"
|
|
|
|
# Due to missing libtinfo
|
|
|
|
rm -rf "test cases/frameworks/15 llvm"
|
|
|
|
# Remove MPI tests for now because it is complicated to run.
|
|
|
|
rm -rf "test cases/frameworks/17 mpi"
|
|
|
|
rm -rf "test cases/frameworks/18 vulkan/"
|
|
|
|
rm -rf "test cases/frameworks/19 pcap/"
|
|
|
|
rm -rf "test cases/frameworks/20 cups/"
|
|
|
|
rm -rf "test cases/frameworks/21 libwmf/"
|
2018-10-23 05:45:24 +03:00
|
|
|
rm -rf "test cases/frameworks/22 gir link order"
|
2019-05-15 19:45:07 +02:00
|
|
|
rm -rf "test cases/frameworks/24 libgcrypt/"
|
|
|
|
rm -rf "test cases/frameworks/26 netcdf/"
|
2018-10-23 05:45:24 +03:00
|
|
|
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
|
2019-10-11 01:22:52 +03:00
|
|
|
python3 run_tests.py
|
2018-10-21 20:12:54 +03:00
|
|
|
%endif
|