From 2430271fedc10866efb7cc0702387f2e172a946e26fd300d04cb71275cddb940 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Tue, 10 Jan 2017 16:34:08 +0000 Subject: [PATCH] Accepting request 449560 from home:dimstar:Factory - Add meson-suse-ify-macros.patch: Make the meson macros also work on openSUSE. We do not (yet?) have separate macros for CFLAGS, CXXFLAGS, FFLAGS and LDFLAGS, but only carry optflags. This is no issue, since openSUSE so far only added flags that work accross compilers/languages. This might change in the future, making the patch obsolete. OBS-URL: https://build.opensuse.org/request/show/449560 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=28 --- meson-suse-ify-macros.patch | 22 ++++++++++++++++++++++ meson.changes | 10 ++++++++++ meson.spec | 3 +++ 3 files changed, 35 insertions(+) create mode 100644 meson-suse-ify-macros.patch diff --git a/meson-suse-ify-macros.patch b/meson-suse-ify-macros.patch new file mode 100644 index 0000000..e5d9bf8 --- /dev/null +++ b/meson-suse-ify-macros.patch @@ -0,0 +1,22 @@ +Index: meson-0.37.1/data/macros.meson +=================================================================== +--- meson-0.37.1.orig/data/macros.meson ++++ meson-0.37.1/data/macros.meson +@@ -1,11 +1,12 @@ + %__meson %{_bindir}/meson ++%_vpath_srcdir . ++%_vpath_builddir build + + %meson \ +- export CFLAGS="${CFLAGS:-%__global_cflags}" \ +- export CXXFLAGS="${CXXFLAGS:-%__global_cxxflags}" \ +- export FFLAGS="${FFLAGS:-%__global_fflags}" \ +- export FCFLAGS="${FCFLAGS:-%__global_fcflags}" \ +- export LDFLAGS="${LDFLAGS:-%__global_ldflags}" \ ++ export CFLAGS="${CFLAGS:-%optflags}" \ ++ export CXXFLAGS="${CXXFLAGS:-%optflags}" \ ++ export FFLAGS="${FFLAGS:-%optflags}" \ ++ export FCFLAGS="${FCFLAGS:-%optflags}" \ + %{__meson} \\\ + --buildtype=plain \\\ + --prefix=%{_prefix} \\\ diff --git a/meson.changes b/meson.changes index 28b52bc..9cd30a7 100644 --- a/meson.changes +++ b/meson.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Jan 10 16:14:32 UTC 2017 - dimstar@opensuse.org + +- Add meson-suse-ify-macros.patch: Make the meson macros also work + on openSUSE. We do not (yet?) have separate macros for CFLAGS, + CXXFLAGS, FFLAGS and LDFLAGS, but only carry optflags. This is no + issue, since openSUSE so far only added flags that work accross + compilers/languages. This might change in the future, making the + patch obsolete. + ------------------------------------------------------------------- Sun Jan 1 12:51:36 UTC 2017 - sor.alexei@meowr.ru diff --git a/meson.spec b/meson.spec index b4886f1..2989db4 100644 --- a/meson.spec +++ b/meson.spec @@ -27,6 +27,8 @@ Url: http://mesonbuild.com/ Source: https://github.com/%{_name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/%{_name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz.asc Source2: %{name}.keyring +# PATCH-FIX-OPENSUSE meson-suse-ify-macros.patch dimstar@opensuse.org -- Make the macros non-RetHat specific. So far we do not have sep. {C,CXX,F}FLAGS +Patch0: meson-suse-ify-macros.patch BuildRequires: bison BuildRequires: boost-devel BuildRequires: flex @@ -71,6 +73,7 @@ Domain Specific Language. %prep %setup -q +%patch0 -p1 # Lack of gtest, gmock, gnustep. rm -rf "test cases/frameworks/2 gtest" \