2016-01-25 08:25:51 +00:00
|
|
|
|
%global libname mesonbuild
|
|
|
|
|
|
2020-02-07 07:12:42 +00:00
|
|
|
|
# Don’t run the tests by default, since they are rather flaky.
|
|
|
|
|
# I’ll get to getting them running eventually, but free time is sparse.
|
|
|
|
|
# — ekulik
|
|
|
|
|
%bcond_with check
|
2019-12-17 13:37:21 +00:00
|
|
|
|
|
2015-02-21 00:06:51 +00:00
|
|
|
|
Name: meson
|
2022-12-23 17:33:47 +00:00
|
|
|
|
Version: 1.0.0
|
2022-05-10 13:06:23 +00:00
|
|
|
|
Release: %autorelease
|
2015-02-21 00:06:51 +00:00
|
|
|
|
Summary: High productivity build system
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0
|
2019-05-02 12:43:22 +00:00
|
|
|
|
URL: https://mesonbuild.com/
|
2020-07-03 04:54:37 +00:00
|
|
|
|
Source: https://github.com/mesonbuild/meson/releases/download/%{version_no_tilde .}/meson-%{version_no_tilde %{quote:}}.tar.gz
|
2017-07-13 14:32:54 +00:00
|
|
|
|
|
2015-02-25 22:10:58 +00:00
|
|
|
|
BuildArch: noarch
|
2015-02-21 00:06:51 +00:00
|
|
|
|
|
2018-08-25 10:02:33 +00:00
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
2019-04-17 11:37:52 +00:00
|
|
|
|
Requires: python%{python3_version}dist(setuptools)
|
2015-02-21 00:25:35 +00:00
|
|
|
|
Requires: ninja-build
|
2015-02-21 00:06:51 +00:00
|
|
|
|
|
2019-12-17 13:37:21 +00:00
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: ninja-build
|
2020-01-14 09:46:13 +00:00
|
|
|
|
# Some tests expect the unversioned executable
|
|
|
|
|
BuildRequires: /usr/bin/python
|
2019-12-17 13:37:21 +00:00
|
|
|
|
# Various languages
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: libasan
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
|
BuildRequires: gcc-objc
|
|
|
|
|
BuildRequires: gcc-objc++
|
|
|
|
|
BuildRequires: java-devel
|
2020-01-14 09:46:13 +00:00
|
|
|
|
BuildRequires: libomp-devel
|
2019-12-17 13:37:21 +00:00
|
|
|
|
BuildRequires: mono-core mono-devel
|
|
|
|
|
BuildRequires: rust
|
|
|
|
|
# Since the build is noarch, we can't use %%ifarch
|
|
|
|
|
#%%ifarch %%{ldc_arches}
|
|
|
|
|
#BuildRequires: ldc
|
|
|
|
|
#%%endif
|
|
|
|
|
# Various libs support
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: gtest-devel
|
|
|
|
|
BuildRequires: gmock-devel
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
2020-01-14 09:46:13 +00:00
|
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
|
|
|
|
BuildRequires: qt5-linguist
|
2019-12-17 13:37:21 +00:00
|
|
|
|
BuildRequires: vala
|
|
|
|
|
BuildRequires: python3-gobject-base
|
|
|
|
|
BuildRequires: wxGTK3-devel
|
|
|
|
|
BuildRequires: flex
|
|
|
|
|
BuildRequires: bison
|
|
|
|
|
BuildRequires: gettext
|
|
|
|
|
BuildRequires: gnustep-base-devel
|
|
|
|
|
BuildRequires: %{_bindir}/gnustep-config
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
BuildRequires: pkgconfig(protobuf)
|
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(glib-sharp-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
BuildRequires: itstool
|
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2020-11-10 22:09:28 +00:00
|
|
|
|
BuildRequires: zlib-static
|
2019-12-17 13:37:21 +00:00
|
|
|
|
BuildRequires: python3dist(cython)
|
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
|
BuildRequires: %{_bindir}/pcap-config
|
|
|
|
|
BuildRequires: pkgconfig(vulkan)
|
|
|
|
|
BuildRequires: llvm-devel
|
|
|
|
|
BuildRequires: cups-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
2015-02-21 00:06:51 +00:00
|
|
|
|
%description
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-08-21 09:21:26 +00:00
|
|
|
|
%autosetup -p1 -n meson-%{version_no_tilde %{quote:}}
|
2018-07-24 06:58:10 +00:00
|
|
|
|
# Macro should not change when we are redefining bindir
|
|
|
|
|
sed -i -e "/^%%__meson /s| .*$| %{_bindir}/%{name}|" data/macros.%{name}
|
2015-02-21 00:06:51 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2016-01-24 20:30:48 +00:00
|
|
|
|
%py3_build
|
2015-02-21 00:06:51 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2016-01-24 20:30:48 +00:00
|
|
|
|
%py3_install
|
2019-04-08 11:04:35 +00:00
|
|
|
|
install -Dpm0644 -t %{buildroot}%{rpmmacrodir} data/macros.%{name}
|
2022-02-04 15:58:39 +00:00
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions/ data/shell-completions/bash/meson
|
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions/ data/shell-completions/zsh/_meson
|
2015-02-21 00:06:51 +00:00
|
|
|
|
|
2019-12-17 13:37:21 +00:00
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
2020-01-23 08:24:50 +00:00
|
|
|
|
# Remove Boost tests for now, because it requires Python 2
|
|
|
|
|
rm -rf "test cases/frameworks/1 boost"
|
2019-12-17 13:37:21 +00:00
|
|
|
|
# Remove MPI tests for now because it is complicated to run
|
|
|
|
|
rm -rf "test cases/frameworks/17 mpi"
|
|
|
|
|
export MESON_PRINT_TEST_OUTPUT=1
|
|
|
|
|
%{__python3} ./run_tests.py
|
|
|
|
|
%endif
|
|
|
|
|
|
2015-02-21 00:06:51 +00:00
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
2015-02-26 19:47:06 +00:00
|
|
|
|
%{_bindir}/%{name}
|
2016-01-24 20:30:48 +00:00
|
|
|
|
%{python3_sitelib}/%{libname}/
|
2016-12-03 20:24:19 +00:00
|
|
|
|
%{python3_sitelib}/%{name}-*.egg-info/
|
2017-01-29 20:30:26 +00:00
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
2016-10-11 11:38:16 +00:00
|
|
|
|
%{rpmmacrodir}/macros.%{name}
|
2018-07-02 21:50:06 +00:00
|
|
|
|
%dir %{_datadir}/polkit-1
|
|
|
|
|
%dir %{_datadir}/polkit-1/actions
|
|
|
|
|
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
|
2022-02-04 15:58:39 +00:00
|
|
|
|
%{_datadir}/bash-completion/completions/meson
|
|
|
|
|
%{_datadir}/zsh/site-functions/_meson
|
2015-02-26 19:47:06 +00:00
|
|
|
|
|
2015-02-21 00:06:51 +00:00
|
|
|
|
%changelog
|
2022-05-10 13:06:23 +00:00
|
|
|
|
%autochangelog
|