SHA256
1
0
forked from pool/gzdoom

only utilize clzma on new factory

OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=6
This commit is contained in:
Jan Engelhardt 2018-01-10 22:45:46 +00:00 committed by Git OBS Bridge
parent 647c59618e
commit 1c44858ae5

View File

@ -27,10 +27,10 @@ Url: http://zdoom.org/
#Git-Clone: https://github.com/coelckers/gzdoom
Source: %name-%version.tar.xz
Patch1: gzdoom-waddir.patch
Patch2: gzdoom-staticlibs.patch
Patch3: 0001-Update-LZMA-SDK-to-version-17.01.patch
Patch4: gzdoom-lzma.patch
Patch5: gzdoom-wadsrc-extra.patch
Patch2: gzdoom-wadsrc-extra.patch
Patch3: gzdoom-staticlibs.patch
Patch4: 0001-Update-LZMA-SDK-to-version-17.01.patch
Patch5: gzdoom-lzma.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake >= 2.8.7
BuildRequires: gcc-c++
@ -40,7 +40,6 @@ BuildRequires: pkg-config
BuildRequires: unzip
BuildRequires: xz
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(clzma) >= 17.01
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(gl)
@ -49,6 +48,11 @@ BuildRequires: pkgconfig(libgme)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(zlib)
%if 0%{?suse_version} >= 1500
BuildRequires: pkgconfig(clzma) >= 17.01
%else
Provides: bundled(lzma-sdk) = 17.01
%endif
%if 0%{?suse_version} == 1315
BuildRequires: gcc6-c++
%endif
@ -76,7 +80,10 @@ GZDoom is a port (a modification) of the original Doom source code, featuring:
%prep
%setup -q
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1
%patch -P 1 -P 2 -P 3 -P 4 -p1
%if 0%{?suse_version} >= 1500
%patch -P 5 -p1
%endif
perl -i -pe 's{__DATE__}{""}g' src/posix/sdl/i_main.cpp
perl -i -pe 's{<unknown version>}{%version}g' \
tools/updaterevision/updaterevision.c