SHA256
3
0
forked from pool/meson
Alexei Sorokin 2018-03-16 00:17:26 +00:00 committed by Git OBS Bridge
parent 280cc404cc
commit bb6d6607c3

View File

@ -39,7 +39,7 @@ Patch0: meson-suse-ify-macros.patch
Patch1: meson-fix-gcc48.patch Patch1: meson-fix-gcc48.patch
# 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. # 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.
Patch100: meson-test-installed-bin.patch Patch100: meson-test-installed-bin.patch
BuildRequires: python3 >= 3.4 BuildRequires: python3
BuildArch: noarch BuildArch: noarch
%if %{testsuite} %if %{testsuite}
BuildRequires: bison BuildRequires: bison
@ -79,7 +79,7 @@ BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
%if 0%{?suse_version} > 1320 %if 0%{?suse_version} >= 1500
BuildRequires: libboost_log-devel BuildRequires: libboost_log-devel
BuildRequires: libboost_system-devel BuildRequires: libboost_system-devel
BuildRequires: libboost_test-devel BuildRequires: libboost_test-devel
@ -141,7 +141,7 @@ sed -i '1{/\/usr\/bin\/env/d;}' ./mesonbuild/rewriter.py
%build %build
# If this is the test suite, we don't need anything else but the meson package # If this is the test suite, we don't need anything else but the meson package
%if ! %{testsuite} %if !%{testsuite}
python3 setup.py build python3 setup.py build
%else %else
# Ensure we have no mesonbuild / meson in CWD, thus guaranteeing we use meson in $PATH # Ensure we have no mesonbuild / meson in CWD, thus guaranteeing we use meson in $PATH
@ -175,7 +175,11 @@ python3 run_tests.py
%endif %endif
%files %files
%if 0%{?suse_version} >= 1500
%license COPYING %license COPYING
%else
%doc COPYING
%endif
%if !%{testsuite} %if !%{testsuite}
%{_bindir}/meson %{_bindir}/meson
%{_bindir}/mesonconf %{_bindir}/mesonconf