diff --git a/0ad.changes b/0ad.changes index 6f314ef..92d83e1 100644 --- a/0ad.changes +++ b/0ad.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 27 09:51:16 UTC 2021 - Guillaume GARDET + +- BuildRequires nvidia-texture-tools only when needed + ------------------------------------------------------------------- Mon Apr 26 12:33:03 UTC 2021 - Guillaume GARDET diff --git a/0ad.spec b/0ad.spec index f827855..13a03ed 100644 --- a/0ad.spec +++ b/0ad.spec @@ -68,9 +68,11 @@ BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(zlib) Requires: 0ad-data = %{version} +%if %{with nvtt} %if %{with system_nvtt} BuildRequires: nvidia-texture-tools >= 2.1 %endif +%endif %if %{with system_mozjs} #FIXME: Depends on source/scriptinterface/ScriptTypes.h BuildRequires: pkgconfig(mozjs-78) >= 78.6