forked from pool/meson
Accepting request 1186924 from home:AndreasStieger:branches:devel:tools:building
meson 1.4.2 OBS-URL: https://build.opensuse.org/request/show/1186924 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=289
This commit is contained in:
commit
6a009e6e4d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
10
extend-test-timeout-on-qemu-builds.patch
Normal file
10
extend-test-timeout-on-qemu-builds.patch
Normal file
@ -0,0 +1,10 @@
|
||||
Index: b/data/macros.meson
|
||||
===================================================================
|
||||
--- a/data/macros.meson
|
||||
+++ b/data/macros.meson
|
||||
@@ -42,4 +42,5 @@
|
||||
-C %{_vpath_builddir} \
|
||||
--num-processes %{_smp_build_ncpus} \
|
||||
--print-errorlogs \
|
||||
+ %{?qemu_user_space_build: -t 10} \
|
||||
%{nil}}
|
3
meson-1.4.1.tar.gz
Normal file
3
meson-1.4.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1b8aad738a5f6ae64294cc8eaba9a82988c1c420204484ac02ef782e5bba5f49
|
||||
size 2235558
|
16
meson-1.4.1.tar.gz.asc
Normal file
16
meson-1.4.1.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEGeLW2bRtjapiiPh3wk5jG6ux/nAFAmZYwdYACgkQwk5jG6ux
|
||||
/nBx1g/8Ded08Exn9jq6VTJ6z+O5ruR2776YSKpNKB9VO1uA8FSNMsQLvvTFM9Ee
|
||||
vLbbOsCP+85JtqGwtHLdFELyWrhIUIX7AljMteyiq1jVqDpbksLny7W38VCtocHd
|
||||
8HbWVTqHp9OrlgKW5eCVibPyUJTcvp/Tb4t7/pDcHxaLfFe2do5mR+VmootUOleM
|
||||
YxCDpA7aE1H8W0ao6/bpnIzHHyU8aVcan/5vv5pZ8C1eM1IZvrK7rz2Um6lUoP+L
|
||||
yj2c07oa+jqvCeWeaYJxy4g0ipiXD4jtCg3mTbhS1YtusqCh3tUJjdrte4kyOpRh
|
||||
PoA2H6fci++Y1Fr+dD2DKauOLE72dZhxzIELTOTzHs08UR42kSDPXatCCMD9nqQZ
|
||||
tbxCSHoC5kkXcZEazY5e3Oj7GAIMBGjukVG7dBrruhjd7uT2o9dU9yi45gY0c73e
|
||||
clY4fgn3KWv3ss9WqdRwHqbgRRNeurVANMlxnLYK/bvBPEYgvlFjWihGDuMAEQ8t
|
||||
lNgqpSk50ftuogLyIrqiZwfprpxeZC2/hrNahF/4QeNbHH9CVbJ/YYEmdxg9to9p
|
||||
cuXku4AwsTNM+JmQBEVcfmp0lb0ANFuapFcciVw7BCFJNrTorhbL4i9IuGo5Mps/
|
||||
gqfhNW791XwZHuCiNSfkLG6PJ0uwVHRHC4a6vrC4fUIPxcWEgiA=
|
||||
=jyaR
|
||||
-----END PGP SIGNATURE-----
|
3
meson-1.4.2.tar.gz
Normal file
3
meson-1.4.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ea2546a26f4a171a741c1fd036f22c9c804d6198e3259f1df588e01f842dd69f
|
||||
size 2227701
|
16
meson-1.4.2.tar.gz.asc
Normal file
16
meson-1.4.2.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEGeLW2bRtjapiiPh3wk5jG6ux/nAFAmaO2F0ACgkQwk5jG6ux
|
||||
/nBNFRAAh6z8o6cVgAzAH54szCgpeg70stTsbDq2XfxVz2cr/dUdU+YItbXX3HXx
|
||||
qDo81xUkGY3BW0igom7AvsYHVsRzAe2/YIx6bn90HahSIpG+qIVb5UQ5oKb3Za1I
|
||||
TQB8Czfiup+9/brhJQpMvm3y7eqxVgVoLPdiNjFs1LsipBVW3xsE6OgjHrL8yl0T
|
||||
0Y0+xa0hcYiGm287UPP9+HMo4B8LvusVlAuSyH0yDhIhrMEhpZ0f4tBdcfv47Xpl
|
||||
QSRgre3Fb1Wpa2n7Gzf0aTkpjmWoRU72F/6IS0YqhLmTnRPmWYRom2MEr9PzLG06
|
||||
fXwDF3ydZmK+uMJJGpmVVqf7icYuTVaayTrl7OI0pJxSSvxDxuQdP++rRRGFl9a9
|
||||
2PpUDmOO/zHrSMckOYS8mmHkafTL0+eGBOUaubp8RABDps4OfihZJ30sQJrtZh0f
|
||||
noNv5L5Tp4/puZ8KTLYUdaV0XyKjpKedwjtGQgHoRyWIByhOapNFv0zmUviNlmGy
|
||||
mr56c3UigY0aF6x9UgTk7fJF2PISYQVn28h1F1lnBaw0+JUDBDl+4vWSlUVuYhF9
|
||||
pDf0SDodgLYpcft6UQaPTfozGEaxmKf5EaR9otdU0NtuDowgxGrsThtYiBVqn2Ck
|
||||
WXRLKtrFAl7V3KZt1c3DFDyFZCZ1J2XzfBSf5hKvjaMldVXeLew=
|
||||
=jrLh
|
||||
-----END PGP SIGNATURE-----
|
41
meson-distutils.patch
Normal file
41
meson-distutils.patch
Normal file
@ -0,0 +1,41 @@
|
||||
Index: b/setup.py
|
||||
===================================================================
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -20,7 +20,7 @@ if sys.version_info < (3, 7):
|
||||
raise SystemExit('ERROR: Tried to install Meson with an unsupported Python version: \n{}'
|
||||
'\nMeson requires Python 3.7.0 or greater'.format(sys.version))
|
||||
|
||||
-from setuptools import setup
|
||||
+from distutils.core import setup
|
||||
|
||||
data_files = []
|
||||
if sys.platform != 'win32':
|
||||
@@ -28,4 +28,16 @@ if sys.platform != 'win32':
|
||||
data_files = [('share/man/man1', ['man/meson.1']),
|
||||
('share/polkit-1/actions', ['data/com.mesonbuild.install.policy'])]
|
||||
|
||||
-setup(data_files=data_files,)
|
||||
+# Since distutils does not understand the find: directive in setup.cfg, and
|
||||
+# therefore doesn't expand it, we need to do it directly
|
||||
+import os
|
||||
+packages=[
|
||||
+ root.replace('/', '.')
|
||||
+ for root, dirs, files in os.walk('mesonbuild')
|
||||
+ if '__init__.py' in files]
|
||||
+
|
||||
+setup(
|
||||
+ packages=packages,
|
||||
+ package_data={'mesonbuild.dependencies.data': ['mesonbuild/dependencies/data/*.txt']},
|
||||
+ data_files=data_files,
|
||||
+)
|
||||
Index: b/MANIFEST.in
|
||||
===================================================================
|
||||
--- a/MANIFEST.in
|
||||
+++ b/MANIFEST.in
|
||||
@@ -17,3 +17,5 @@ include run_unittests.py
|
||||
include run_meson_command_tests.py
|
||||
include run_project_tests.py
|
||||
include meson.py
|
||||
+
|
||||
+include mesonbuild/dependencies/data/*.txt
|
38
meson-test-installed-bin.patch
Normal file
38
meson-test-installed-bin.patch
Normal file
@ -0,0 +1,38 @@
|
||||
Index: meson-1.0.1/run_tests.py
|
||||
===================================================================
|
||||
--- a/run_tests.py
|
||||
+++ b/run_tests.py
|
||||
@@ -196,18 +196,10 @@ def get_meson_script() -> str:
|
||||
Also used by run_unittests.py to determine what meson to run when not
|
||||
running in-process (which is the default).
|
||||
'''
|
||||
- # Is there a meson.py next to the mesonbuild currently in use?
|
||||
- mesonbuild_dir = Path(mesonmain.__file__).resolve().parent.parent
|
||||
- meson_script = mesonbuild_dir / 'meson.py'
|
||||
- if meson_script.is_file():
|
||||
- return str(meson_script)
|
||||
- # Then if mesonbuild is in PYTHONPATH, meson must be in PATH
|
||||
- mlog.warning('Could not find meson.py next to the mesonbuild module. '
|
||||
- 'Trying system meson...')
|
||||
meson_cmd = shutil.which('meson')
|
||||
- if meson_cmd:
|
||||
+ if meson_cmd and os.path.isfile(meson_cmd):
|
||||
return meson_cmd
|
||||
- raise RuntimeError(f'Could not find {meson_script!r} or a meson in PATH')
|
||||
+ raise RuntimeError(f'Could not find meson in PATH')
|
||||
|
||||
def get_backend_args_for_dir(backend: Backend, builddir: str) -> T.List[str]:
|
||||
'''
|
||||
@@ -381,12 +373,6 @@ def main():
|
||||
# Can't pass arguments to unit tests, so set the backend to use in the environment
|
||||
env = os.environ.copy()
|
||||
if not options.cross:
|
||||
- cmd = mesonlib.python_command + ['run_meson_command_tests.py', '-v']
|
||||
- if options.failfast:
|
||||
- cmd += ['--failfast']
|
||||
- returncode += subprocess_call(cmd, env=env)
|
||||
- if options.failfast and returncode != 0:
|
||||
- return returncode
|
||||
if no_unittests:
|
||||
print('Skipping all unit tests.')
|
||||
print(flush=True)
|
2074
meson.changes
Normal file
2074
meson.changes
Normal file
File diff suppressed because it is too large
Load Diff
192
meson.keyring
Normal file
192
meson.keyring
Normal file
@ -0,0 +1,192 @@
|
||||
pub rsa4096/FEEB9428 2011-04-23 [expires: 2021-04-20]
|
||||
Key fingerprint = 9518 1F4E ED14 FDF4 E41B 518D 3BF4 693B FEEB 9428
|
||||
uid [ unknown] Jussi Pakkanen <jpakkane@gmail.com>
|
||||
sub rsa4096/92A10C22 2011-04-23 [expires: 2021-04-20
|
||||
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBE2yi3MBEAC6UrOhoJHxBIap8eGT/ZNSSwvmAqX9hjoE6oOptwKFWkXDRIXr
|
||||
2p5uVTCmiRmlo3y7ikBr0uim/eJDurtghhsqQsODhlSry7rBOqB9eTK9eh1MM+QO
|
||||
wVtlC2a+OzBhWIuBAoVCRWDK7v0hvJNtN5MHcoX1XJXHkClH2XGad3VvRH4IZmYT
|
||||
stxOz3o91WJ/1pwy5bm1vUYmtdWWu1oBIw2Xqe2AySc9yoL1i2c+QiYKXIaS6QjS
|
||||
ZzByxg1LVN/Z3QnssaV8ELX8iw/gJKiCTurTAOzYgsopbYEIN27hbE8yXkESvfZs
|
||||
FSbhrpD1XxYz8gzvCyHumXuGs8l7ZGsucBquGBjE+bBks5FyMsPtHG+KvNGxu1+o
|
||||
LQxpMMSIbGhOHvVV0YeR5WQONl1Mvccq0O+yvk1HURX+oB7qkHCTzmhZigkMjfFo
|
||||
dyodvGLcM0YgyCrcjL8VbKsbFTrN49z4McMgeINrZnjQ/tzYuiTkY+AEbisp8FBZ
|
||||
QApcHyAYfSC0e1awYJIOct4LbTyDlQvWjO5gKsPWbLaGu4XinnPEMP9Eu2oykuuk
|
||||
3mjmY66QIZN0qXQy9/Rsj/G7U8deqpLW19QE7adVMn0Soucjo5IBLbD7MHfhWzzO
|
||||
y6BqDRwZ4clinndRyEatgNPObv1t7vXeV1MQDj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X/2ogOMPmTsyDmU
|
||||
dxBkBtFt+g3obj4=
|
||||
=AiRn
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
314
meson.spec
Normal file
314
meson.spec
Normal file
@ -0,0 +1,314 @@
|
||||
#
|
||||
# spec file for package meson
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
|
||||
%global pythons python311
|
||||
%else
|
||||
%global pythons python3
|
||||
%endif
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define name_ext -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define name_ext %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%define _name mesonbuild
|
||||
%{!?vim_data_dir:%global vim_data_dir %{_datadir}/vim}
|
||||
%bcond_with setuptools
|
||||
%bcond_without mono
|
||||
Name: meson%{name_ext}
|
||||
Version: 1.4.2
|
||||
Release: 0
|
||||
Summary: Python-based build system
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Building
|
||||
URL: https://mesonbuild.com/
|
||||
Source: https://github.com/%{_name}/meson/releases/download/%{version}/meson-%{version}.tar.gz
|
||||
Source1: https://github.com/%{_name}/meson/releases/download/%{version}/meson-%{version}.tar.gz.asc
|
||||
Source2: meson.keyring
|
||||
# PATCH-FIX-OPENSUSE meson-test-installed-bin.patch dimstar@opensuse.org -- We want the test suite to run against /usr/bin/meson coming from our meson package.
|
||||
Patch0: meson-test-installed-bin.patch
|
||||
# PATCH-FIX-OPENSUSE give more time to testsuites that run emulated
|
||||
Patch1: extend-test-timeout-on-qemu-builds.patch
|
||||
# PATCH-FIX-OPENSUSE meson-distutils.patch -- meson is ring0 and therefor setuptools is not available
|
||||
Patch2: meson-distutils.patch
|
||||
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with setuptools}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
Requires: python3-setuptools
|
||||
%endif
|
||||
%if "%{flavor}" != "test"
|
||||
Requires: ninja >= 1.8.2
|
||||
# meson-gui was last used in openSUSE Leap 42.1.
|
||||
Provides: meson-gui = %{version}
|
||||
Obsoletes: meson-gui < %{version}
|
||||
BuildArch: noarch
|
||||
%else
|
||||
ExclusiveArch: x86_64
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: bison
|
||||
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
|
||||
BuildRequires: clang17
|
||||
%else
|
||||
BuildRequires: clang >= 15
|
||||
%endif
|
||||
BuildRequires: clang-tools >= 15
|
||||
BuildRequires: cups-devel
|
||||
BuildRequires: distribution-release
|
||||
BuildRequires: flex
|
||||
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
|
||||
BuildRequires: gcc13-c++
|
||||
BuildRequires: gcc13-fortran
|
||||
BuildRequires: gcc13-obj-c++
|
||||
BuildRequires: gcc13-objc
|
||||
%else
|
||||
BuildRequires: gcc-c++ >= 12
|
||||
BuildRequires: gcc-fortran >= 12
|
||||
BuildRequires: gcc-obj-c++ >= 12
|
||||
BuildRequires: gcc-objc >= 12
|
||||
%endif
|
||||
BuildRequires: gettext
|
||||
BuildRequires: git
|
||||
BuildRequires: gmock
|
||||
BuildRequires: gnustep-make
|
||||
BuildRequires: googletest-devel
|
||||
BuildRequires: itstool
|
||||
BuildRequires: java-headless
|
||||
BuildRequires: libboost_log-devel
|
||||
# This will be required to build to python311
|
||||
BuildRequires: libboost_python3-devel
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module gobject}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: libboost_system-devel
|
||||
BuildRequires: libboost_test-devel
|
||||
BuildRequires: libboost_thread-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libpcap-devel
|
||||
BuildRequires: libqt5-qtbase-common-devel
|
||||
BuildRequires: libqt5-qtbase-private-headers-devel
|
||||
%if 0%{?sle_version} == 150400 || 0%{?sle_version} == 150500
|
||||
BuildRequires: libstdc++6-devel-gcc11
|
||||
%endif
|
||||
BuildRequires: libwmf-devel
|
||||
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
|
||||
BuildRequires: llvm17-devel
|
||||
%else
|
||||
BuildRequires: llvm-devel
|
||||
%endif
|
||||
BuildRequires: meson = %{version}
|
||||
BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: rust
|
||||
BuildRequires: wxWidgets-any-devel
|
||||
BuildRequires: zlib-devel-static
|
||||
BuildRequires: cmake(Qt5Core)
|
||||
BuildRequires: cmake(Qt5Gui)
|
||||
BuildRequires: cmake(Qt5LinguistTools)
|
||||
BuildRequires: cmake(Qt5Widgets)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
BuildRequires: pkgconfig(gtk+-3.0)
|
||||
BuildRequires: pkgconfig(gtk-doc)
|
||||
BuildRequires: pkgconfig(ncurses)
|
||||
BuildRequires: pkgconfig(sdl2)
|
||||
BuildRequires: pkgconfig(vapigen)
|
||||
BuildRequires: pkgconfig(vulkan)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
%if 0%{?suse_version} < 1550
|
||||
BuildRequires: libboost_python-devel
|
||||
# Leap / SLE 15.x
|
||||
BuildRequires: python2-PyYAML
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
%endif
|
||||
%if %{with mono}
|
||||
BuildRequires: mono(csharp)
|
||||
%endif
|
||||
%endif
|
||||
# meson makes use of macros that were only defined with rpm 4.15
|
||||
%if (0%{?suse_version} < 1550 && 0%{?sle_version} < 150400)
|
||||
Conflicts: rpm-build < 4.15
|
||||
%endif
|
||||
|
||||
%description
|
||||
Meson is a build system designed to optimise programmer productivity.
|
||||
It aims to do this by providing support for software development
|
||||
tools and practices, such as unit tests, coverage reports, Valgrind,
|
||||
CCache and the like. Supported languages include C, C++, Fortran,
|
||||
Java, Rust. Build definitions are written in a non-turing complete
|
||||
Domain Specific Language.
|
||||
|
||||
%package vim
|
||||
Summary: Vim syntax highlighting support for meson.build files
|
||||
Group: Productivity/Text/Editors
|
||||
Requires: vim
|
||||
Supplements: (vim and %{name})
|
||||
BuildArch: noarch
|
||||
|
||||
%description vim
|
||||
Meson is a build system designed to optimise programmer productivity.
|
||||
It aims to do this by providing support for software development
|
||||
tools and practices, such as unit tests, coverage reports, Valgrind,
|
||||
CCache and the like. Supported languages include C, C++, Fortran,
|
||||
Java, Rust. Build definitions are written in a non-turing complete
|
||||
Domain Specific Language.
|
||||
|
||||
This package provides meson.build syntax highlighting support for
|
||||
Vim/NeoVim.
|
||||
|
||||
%prep
|
||||
%autosetup -N -n meson-%{version}
|
||||
%patch -P 0 -p1
|
||||
%patch -P 1 -p1
|
||||
%if !%{with setuptools}
|
||||
%patch -P 2 -p1
|
||||
%endif
|
||||
|
||||
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
|
||||
# AddressSanitizer fails here because of ulimit.
|
||||
sed -i "/def test_generate_gir_with_address_sanitizer/{
|
||||
s/$/\n raise unittest.SkipTest('ulimit')/;
|
||||
}" unittests/linuxliketests.py
|
||||
|
||||
# Expects modern glibc with pthread symbols in libc.so
|
||||
rm -rf test\ cases/rust/17\ staticlib\ link\ staticlib
|
||||
%endif
|
||||
|
||||
# Remove hashbang from non-exec script
|
||||
sed -i '1{/\/usr\/bin\/env/d;}' \
|
||||
./mesonbuild/rewriter.py \
|
||||
./mesonbuild/scripts/cmake_run_ctgt.py
|
||||
|
||||
# We do not have appleframeworks available at this moment - can't run the test suite for it
|
||||
# boost is currently borked too
|
||||
rm -r "test cases/frameworks/1 boost" \
|
||||
"test cases/objc/2 nsstring"
|
||||
# remove gtest check that actually works because our gtest has .pc files
|
||||
rm -rf test\ cases/failing/85\ gtest\ dependency\ with\ version
|
||||
|
||||
%build
|
||||
%if %{without test}
|
||||
%python_build
|
||||
%else
|
||||
# Ensure we have no mesonbuild / meson in CWD, thus guaranteeing we use meson in $PATH
|
||||
rm -r meson.py mesonbuild
|
||||
%endif
|
||||
|
||||
%install
|
||||
# If this is the test suite, we don't need anything else but the meson package
|
||||
%if %{without test}
|
||||
%python_install
|
||||
|
||||
install -Dpm 0644 data/macros.meson \
|
||||
%{buildroot}%{_rpmconfigdir}/macros.d/macros.meson
|
||||
|
||||
install -Dpm 0644 data/syntax-highlighting/vim/ftdetect/meson.vim \
|
||||
-t %{buildroot}%{vim_data_dir}/site/ftdetect/
|
||||
install -Dpm 0644 data/syntax-highlighting/vim/indent/meson.vim \
|
||||
-t %{buildroot}%{vim_data_dir}/site/indent/
|
||||
install -Dpm 0644 data/syntax-highlighting/vim/syntax/meson.vim \
|
||||
-t %{buildroot}%{vim_data_dir}/site/syntax/
|
||||
|
||||
# entry points are not distutils-able
|
||||
%if !%{with setuptools}
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
echo """#!%{_bindir}/python3
|
||||
from mesonbuild.mesonmain import main
|
||||
import sys
|
||||
|
||||
sys.exit(main())
|
||||
""" > %{buildroot}%{_bindir}/%{name}
|
||||
chmod +x %{buildroot}%{_bindir}/%{name}
|
||||
%{python_expand %{$python_fix_shebang}
|
||||
|
||||
# ensure egg-info is a directory
|
||||
rm %{buildroot}%{$python_sitelib}/*.egg-info
|
||||
cp -r meson.egg-info %{buildroot}%{$python_sitelib}/meson-%{version}-py%{$python_version}.egg-info
|
||||
}
|
||||
|
||||
# Fix missing data files with distutils
|
||||
while read line; do
|
||||
if [[ "$line" = %{_name}/* ]]; then
|
||||
[[ "$line" = *.py ]] && continue
|
||||
cp "$line" "%{buildroot}%{python_sitelib}/$line"
|
||||
fi
|
||||
done < meson.egg-info/SOURCES.txt
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
|
||||
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
|
||||
# Use gcc-13 for clang-tidy
|
||||
install -d -m 0755 bin
|
||||
ln -s /usr/bin/cpp-13 bin/cpp
|
||||
ln -s /usr/bin/g++-13 bin/c++
|
||||
ln -s /usr/bin/g++-13 bin/g++
|
||||
ln -s /usr/bin/gcc-13 bin/cc
|
||||
ln -s /usr/bin/gcc-13 bin/gcc
|
||||
export PATH="${PWD}/bin:${PATH}"
|
||||
c++ --version
|
||||
|
||||
# Fix shebang in test cases getting executed by ninja
|
||||
%{python_expand find test\ cases -type f -name "*.py" \
|
||||
-exec sed -i "1s@#!.*python.*@#!$(realpath %{_bindir}/$python)@" {} +}
|
||||
%endif
|
||||
|
||||
export LANG=C.UTF-8
|
||||
export MESON_EXE=%{_bindir}/meson
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
# See prep section for removed tests
|
||||
%python_flavored_alternatives \
|
||||
%python_expand $python run_tests.py --failfast
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%if !%{with test}
|
||||
%{_bindir}/meson
|
||||
%{python_sitelib}/%{_name}/
|
||||
%{python_sitelib}/meson-*
|
||||
%dir %{_datadir}/polkit-1/
|
||||
%dir %{_datadir}/polkit-1/actions/
|
||||
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
|
||||
%{_rpmconfigdir}/macros.d/macros.meson
|
||||
%{_mandir}/man1/meson.1%{?ext_man}
|
||||
|
||||
%files vim
|
||||
%doc data/syntax-highlighting/vim/README
|
||||
%dir %{vim_data_dir}/
|
||||
%dir %{vim_data_dir}/site/
|
||||
%dir %{vim_data_dir}/site/ftdetect/
|
||||
%dir %{vim_data_dir}/site/indent/
|
||||
%dir %{vim_data_dir}/site/syntax/
|
||||
%{vim_data_dir}/site/ftdetect/meson.vim
|
||||
%{vim_data_dir}/site/indent/meson.vim
|
||||
%{vim_data_dir}/site/syntax/meson.vim
|
||||
%endif
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user