From fe95464afc0ade03e59a0d62b010ae803f7a785ff409dd115e735e42c460e577 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Wed, 7 Jun 2017 13:55:26 +0000 Subject: [PATCH] - specfile: Remove requires to vulkan libs from baselibs.conf on platforms where vulkan build is disabled; ugly ... (bsc#1042900) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=620 --- Mesa.changes | 6 ++++++ Mesa.spec | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/Mesa.changes b/Mesa.changes index 28b1240..bb7e0cb 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 7 13:53:26 UTC 2017 - sndirsch@suse.com + +- specfile: Remove requires to vulkan libs from baselibs.conf on + platforms where vulkan build is disabled; ugly ... (bsc#1042900) + ------------------------------------------------------------------- Tue Jun 6 10:50:56 UTC 2017 - mimi.vx@gmail.com diff --git a/Mesa.spec b/Mesa.spec index 9a3f85c..105aed3 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -666,6 +666,13 @@ grep -v libglvnd $RPM_SOURCE_DIR/baselibs.conf > $RPM_SOURCE_DIR/temp && \ mv $RPM_SOURCE_DIR/temp $RPM_SOURCE_DIR/baselibs.conf %endif +# Remove requires to vulkan libs from baselibs.conf on platforms +# where vulkan build is disabled; ugly ... +%if 0%{?with_vulkan} == 0 +grep -v -i vulkan $RPM_SOURCE_DIR/baselibs.conf > $RPM_SOURCE_DIR/temp && \ + mv $RPM_SOURCE_DIR/temp $RPM_SOURCE_DIR/baselibs.conf +%endif + %build %if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120300 && 0%{?is_opensuse}) egl_platforms=x11,drm,wayland