From 3f69497a0372ba4900480f0b9402974c4bbe3c58f2b0d74446ea301769aabf88 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 26 Apr 2021 22:44:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=107 --- 0ad.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/0ad.spec b/0ad.spec index 72d81d8..f827855 100644 --- a/0ad.spec +++ b/0ad.spec @@ -17,15 +17,18 @@ # Enable NVTT only on arch supported by nvidia-texture-tools %ifarch %{ix86} x86_64 ppc -%bcond_without system_nvtt +%bcond_without nvtt %else -%bcond_with system_nvtt +%bcond_with nvtt %endif +# %if 0%{?suse_version} >= 1550 %bcond_without system_mozjs %else %bcond_with system_mozjs %endif +# Use provided library +%bcond_without system_nvtt Name: 0ad Version: 0.0.24b Release: 0 @@ -100,10 +103,11 @@ build/workspaces/update-workspaces.sh \ --bindir=%{_bindir} \ --datadir=%{_datadir}/%{name} \ --libdir=%{_libdir}/%{name} \ +%if %{with nvtt} %if %{with system_nvtt} --with-system-nvtt \ %endif -%ifnarch %{ix86} x86_64 ppc +%else --without-nvtt \ %endif %if %{with system_mozjs}