]> git.pld-linux.org Git - packages/SDL.git/blobdiff - SDL.spec
- x32 rebuild
[packages/SDL.git] / SDL.spec
index cfd87c5e5c2f76d47530d14195039822b9bbd3cb..8db112d1e409e5c48b9d9bc56fda510faa2ec8d5 100644 (file)
--- a/SDL.spec
+++ b/SDL.spec
@@ -1,19 +1,22 @@
 #
 # Conditional build:
-%bcond_with    aalib           # with aalib graphics support
-%bcond_with    caca            # with caca graphics support
-%bcond_with    directfb        # with DirectFB graphics support
-%bcond_with    ggi             # with GGI graphics support
-%bcond_with    nas             # with NAS audio support
-%bcond_with    svga            # with svgalib graphics support
-%bcond_without alsa            # without ALSA audio support
-%bcond_without arts            # without aRts audio support
-%bcond_without esd             # without EsounD audio support
+%bcond_with    aalib           # aalib graphics support
+%bcond_with    caca            # caca graphics support
+%bcond_with    directfb        # DirectFB graphics support
+%bcond_with    ggi             # GGI graphics support
+%bcond_with    nas             # NAS audio support
+%bcond_with    svga            # svgalib graphics support
+%bcond_without alsa            # ALSA audio support
+%bcond_with    arts            # aRts audio support
+%bcond_with    esd             # EsounD audio support
+%bcond_with    new_gamma_ramp  # causes crashes on nvidia drivers
 %bcond_without static_libs     # don't build static libraries
 #
 # NOTE: the following libraries are dlopened by soname detected at build time:
-# libasound.so.2
-# libesd.so.0
+# libartsc.so.?                [if with arts]
+# libasound.so.2       [if with alsa]
+# libaudio.so.2                [if with nas]
+# libesd.so.0          [if with esd]
 # libpulse-simple.so.0
 # libX11.so.6
 # libXext.so.6
@@ -23,15 +26,17 @@ Summary:    SDL (Simple DirectMedia Layer) - Game/Multimedia Library
 Summary(pl.UTF-8):     SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
 Summary(zh_CN.UTF-8):  SDL (Simple DirectMedia Layer) Generic APIs - 游戏/多媒体库
 Name:          SDL
-Version:       1.2.13
-Release:       1
+Version:       1.2.15
+Release:       6
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       http://www.libsdl.org/release/%{name}-%{version}.tar.gz
-# Source0-md5: c6660feea2a6834de10bc71b2f8e4d88
-Patch0:                %{name}-mmx-constraints.patch
-Patch1:                %{name}-acfix.patch
-Patch2:                %{name}-caca.patch
+# Source0-md5: 9d96df8417572a2afb781a7c4c811a85
+Patch0:                %{name}-acfix.patch
+Patch1:                %{name}-new_gamma_ramp_support.patch
+Patch2:                fix-mouse-click.patch
+Patch3:                %{name}-config.patch
+Patch4:                %{name}-const_XData32.patch
 URL:           http://www.libsdl.org/
 %{?with_directfb:BuildRequires:        DirectFB-devel >= 0.9.15}
 BuildRequires: OpenGL-GLU-devel
@@ -44,15 +49,16 @@ BuildRequires:      automake
 BuildRequires: gcc >= 5:4.0
 %{?with_caca:BuildRequires:    libcaca-devel}
 %{?with_ggi:BuildRequires:     libggi-devel}
-BuildRequires: libtool >= 2:1.4d
+BuildRequires: libtool >= 2:2.0
 %{?with_nas:BuildRequires:     nas-devel}
 %ifarch %{ix86}
 BuildRequires: nasm
 %endif
 BuildRequires: perl-modules
-%{?with_directfb:BuildRequires:        pkgconfig >= 1:0.7}
+BuildRequires: pkgconfig >= 1:0.7
 BuildRequires: pulseaudio-devel >= 0.9
 %{?with_svga:BuildRequires:    svgalib-devel >= 1.4.0}
+BuildRequires: tslib-devel
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXext-devel
 BuildRequires: xorg-lib-libXrandr-devel
@@ -60,6 +66,8 @@ BuildRequires:        xorg-lib-libXrender-devel
 BuildRequires: xorg-proto-xextproto-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                specflags_ppc   -maltivec
+
 %description
 SDL (Simple DirectMedia Layer) is a library that allows you portable,
 low level access to a video framebuffer, audio output, mouse, and
@@ -94,13 +102,14 @@ Summary(uk.UTF-8): Файли, необхідні для розробки про
 Summary(zh_CN.UTF-8):  SDL (Simple DirectMedia Layer) 开发库
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Suggests:      OpenGL-GLU-devel
 %{?with_directfb:Requires:     DirectFB-devel >= 0.9.15}
 %{?with_aa:Requires:   aalib-devel}
 %{?with_caca:Requires: libcaca-devel}
 %{?with_ggi:Requires:  libggi-devel}
-%{?with_nas:Requires:  nas-devel}
 %{?with_svga:Requires: svgalib-devel >= 1.4.0}
+Requires:      tslib-devel
+Requires:      xorg-lib-libX11-devel
+Suggests:      OpenGL-GLU-devel
 
 %description devel
 SDL - Header files.
@@ -162,9 +171,12 @@ SDL - przykładowe programy.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
-#%patch2 -p1   # needs rewrite
+%{?with_new_gamma_ramp:%patch1 -p1}
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
+: > acinclude.m4
 %{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
 %{!?with_esd:echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4}
 
This page took 0.065567 seconds and 4 git commands to generate.