|
|
|
@ -1,23 +1,31 @@
|
|
|
|
|
%global libname mesonbuild
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
Name: meson
|
|
|
|
|
Version: 0.49.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 0.58.2
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: High productivity build system
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: http://mesonbuild.com/
|
|
|
|
|
Source0: https://github.com/mesonbuild/meson/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
URL: https://mesonbuild.com/
|
|
|
|
|
Source: https://github.com/mesonbuild/meson/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Obsoletes: %{name}-gui < 0.31.0-3
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
Requires: python%{python3_version}dist(setuptools)
|
|
|
|
|
Requires: ninja-build
|
|
|
|
|
Requires: python3-devel
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
|
# Some tests expect the unversioned executable
|
|
|
|
|
BuildRequires: /usr/bin/python
|
|
|
|
|
# Various languages
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: libasan
|
|
|
|
@ -26,25 +34,22 @@ BuildRequires: gcc-gfortran
|
|
|
|
|
BuildRequires: gcc-objc
|
|
|
|
|
BuildRequires: gcc-objc++
|
|
|
|
|
BuildRequires: java-devel
|
|
|
|
|
BuildRequires: libomp-devel
|
|
|
|
|
BuildRequires: mono-core mono-devel
|
|
|
|
|
BuildRequires: rust
|
|
|
|
|
# No ldc as of RHEL7 and on non-ldc arches
|
|
|
|
|
%if ! 0%{?rhel} || 0%{?rhel} > 7
|
|
|
|
|
# Since the build is noarch, we can't use %%ifarch
|
|
|
|
|
#%%ifarch %%{ldc_arches}
|
|
|
|
|
#BuildRequires: ldc
|
|
|
|
|
#%%endif
|
|
|
|
|
%endif
|
|
|
|
|
# Various libs support
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: gtest-devel
|
|
|
|
|
BuildRequires: gmock-devel
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
|
|
|
|
BuildRequires: qt5-linguist
|
|
|
|
|
BuildRequires: vala
|
|
|
|
|
# In recent versions it's merged into vala
|
|
|
|
|
%if (0%{?fedora} && 0%{?fedora} <= 24) || (0%{?rhel} && 0%{?rhel} <= 7)
|
|
|
|
|
BuildRequires: vala-tools
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python3-gobject-base
|
|
|
|
|
BuildRequires: wxGTK3-devel
|
|
|
|
|
BuildRequires: flex
|
|
|
|
|
BuildRequires: bison
|
|
|
|
@ -56,21 +61,16 @@ BuildRequires: pkgconfig(protobuf)
|
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(glib-sharp-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
|
%if ! 0%{?rhel} || 0%{?rhel} > 7
|
|
|
|
|
BuildRequires: python3-gobject-base
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
BuildRequires: itstool
|
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-Cython
|
|
|
|
|
BuildRequires: python3dist(cython)
|
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
|
BuildRequires: %{_bindir}/pcap-config
|
|
|
|
|
BuildRequires: pkgconfig(vulkan)
|
|
|
|
|
BuildRequires: llvm-devel
|
|
|
|
|
BuildRequires: cups-devel
|
|
|
|
|
%endif
|
|
|
|
|
Requires: ninja-build
|
|
|
|
|
Requires: python3-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Meson is a build system designed to optimize programmer
|
|
|
|
@ -80,21 +80,24 @@ unit tests, coverage reports, Valgrind, CCache and the like.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
find -type f -name '*.py' -executable -exec sed -i -e '1s|.*|#!%{__python3}|' {} ';'
|
|
|
|
|
# Remove MPI tests for now because it is complicated to run
|
|
|
|
|
rm -rf "test cases/frameworks/17 mpi"
|
|
|
|
|
# Macro should not change when we are redefining bindir
|
|
|
|
|
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}
|
|
|
|
|
install -Dpm0644 -t %{buildroot}%{rpmmacrodir} data/macros.%{name}
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
# Remove Boost tests for now, because it requires Python 2
|
|
|
|
|
rm -rf "test cases/frameworks/1 boost"
|
|
|
|
|
# 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 %{?rhel:|| :}
|
|
|
|
|
%{__python3} ./run_tests.py
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -110,6 +113,27 @@ export MESON_PRINT_TEST_OUTPUT=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 16 2021 Tomas Pelka <tpelka@redhat.com> - 0.58.2-2
|
|
|
|
|
- Bump release and rebuild in -candidate target to fix gating issues
|
|
|
|
|
Resolves: rhbz#2006519
|
|
|
|
|
|
|
|
|
|
* Mon Oct 18 2021 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.58.2-1
|
|
|
|
|
- Update meson to 0.58-2
|
|
|
|
|
Resolves: rhbz#2006519
|
|
|
|
|
|
|
|
|
|
* Tue Dec 15 2020 Danilo C. L. de Paula <ddepaula@redhat.com> - 0.55.3-3
|
|
|
|
|
- build: use PIE objects for static libraries
|
|
|
|
|
Resolves: rhbz#1899620
|
|
|
|
|
(meson builds QEMU with PIC objects instead of PIE)
|
|
|
|
|
|
|
|
|
|
* Thu Oct 15 2020 Danilo C. L. de Paula <ddepaula@redhat.com> - 0.55.3-2
|
|
|
|
|
- Add python3-devel dependency, as asked by the BZ..
|
|
|
|
|
- Resolves: rhbz#1872692
|
|
|
|
|
|
|
|
|
|
* Thu Oct 08 2020 Danilo de Paula <ddepaula@redhat.com> - 0.55.3-1
|
|
|
|
|
- Update to 0.55.3, based on upstream Fedora
|
|
|
|
|
- Resolves: rhbz#1872692
|
|
|
|
|
|
|
|
|
|
* Mon Feb 04 2019 Stephen Gallagher <sgallagh@redhat.com> - 0.49.2-1
|
|
|
|
|
- Update to 0.49.2
|
|
|
|
|
- Drop upstreamed patch
|
|
|
|
|