SHA256
1
0
forked from pool/SDL2

- Add dbus.diff

OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=63
This commit is contained in:
2017-10-02 19:15:42 +00:00
committed by Git OBS Bridge
parent ebe1d7ac63
commit e156901c4c
3 changed files with 34 additions and 8 deletions

View File

@@ -30,7 +30,8 @@ Source: http://libsdl.org/release/%name-%version.tar.gz
Source2: http://libsdl.org/release/%name-%version.tar.gz.sig
Source3: %name.keyring
Source4: baselibs.conf
Patch1: %{name}-ppc64-declaration-after-statement.patch
Patch1: dbus.diff
Patch2: %name-ppc64-declaration-after-statement.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: dos2unix
@@ -104,8 +105,9 @@ library.
%prep
%setup -q
%ifarch ppc64 ppc64le
%patch -P 1 -p1
%ifarch ppc64 ppc64le
%patch -P 2 -p1
%endif
dos2unix WhatsNew.txt
dos2unix TODO.txt
@@ -117,14 +119,12 @@ dos2unix COPYING.txt
%build
# In this instance, we do want --with-pic because of libSDL2main.a.
%configure --with-pic \
%configure --with-pic --disable-alsa-shared --disable-video-directfb \
--enable-video-kmsdrm \
%if 0%{?sle_version}
--disable-fcitx \
--disable-fcitx \
%endif
--disable-rpath \
--disable-alsa-shared \
--disable-video-directfb \
--enable-video-kmsdrm
--disable-rpath
make %{?_smp_mflags} V=1
%install