From bb6d6607c3c305ba28c3f355275fff49d9caffdefd21a1bae13aa0ad2f089ff9 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Fri, 16 Mar 2018 00:17:26 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=79 --- meson.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/meson.spec b/meson.spec index 0b5fc66..27d271b 100644 --- a/meson.spec +++ b/meson.spec @@ -39,7 +39,7 @@ Patch0: meson-suse-ify-macros.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. Patch100: meson-test-installed-bin.patch -BuildRequires: python3 >= 3.4 +BuildRequires: python3 BuildArch: noarch %if %{testsuite} BuildRequires: bison @@ -79,7 +79,7 @@ BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(zlib) -%if 0%{?suse_version} > 1320 +%if 0%{?suse_version} >= 1500 BuildRequires: libboost_log-devel BuildRequires: libboost_system-devel BuildRequires: libboost_test-devel @@ -141,7 +141,7 @@ sed -i '1{/\/usr\/bin\/env/d;}' ./mesonbuild/rewriter.py %build # If this is the test suite, we don't need anything else but the meson package -%if ! %{testsuite} +%if !%{testsuite} python3 setup.py build %else # Ensure we have no mesonbuild / meson in CWD, thus guaranteeing we use meson in $PATH @@ -175,7 +175,11 @@ python3 run_tests.py %endif %files +%if 0%{?suse_version} >= 1500 %license COPYING +%else +%doc COPYING +%endif %if !%{testsuite} %{_bindir}/meson %{_bindir}/mesonconf