SHA256
1
0
forked from jengelh/SDL2
Matthias Mailänder 2013-05-26 09:01:54 +00:00 committed by Git OBS Bridge
commit 08fc5be5a1
7 changed files with 184 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
SDL-2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:835292d391eb32496db6c07f1b3e3fbdaee0ba8515156d9887b5d9762eafe79c
size 4727642

13
SDL2-2.0-voidptr.patch Normal file
View File

@ -0,0 +1,13 @@
Index: src/video/x11/SDL_x11opengles.c
===================================================================
--- src/video/x11/SDL_x11opengles.c.orig
+++ src/video/x11/SDL_x11opengles.c
@@ -321,7 +321,7 @@ X11_GLES_CreateContext(_THIS, SDL_Window
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
Display *display = data->videodata->display;
- SDL_GLContext context = 1;
+ SDL_GLContext context = (SDL_GLContext)1;
XSync(display, False);

20
SDL2.changes Normal file
View File

@ -0,0 +1,20 @@
-------------------------------------------------------------------
Sat Dec 22 00:07:39 UTC 2012 - prusnak@opensuse.org
- updated to revision 6754
-------------------------------------------------------------------
Thu Dec 6 13:11:11 UTC 2012 - prusnak@opensuse.org
- updated to revision 6713
-------------------------------------------------------------------
Fri Oct 5 21:23:15 UTC 2012 - prusnak@opensuse.org
- updated to revision 6559
-------------------------------------------------------------------
Thu Sep 27 21:57:27 UTC 2012 - prusnak@opensuse.org
- created package (revision 6454) - based on SDL package

116
SDL2.spec Normal file
View File

@ -0,0 +1,116 @@
#
# spec file for package SDL2
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define hg_rev 6754
Name: SDL2
BuildRequires: Mesa-devel
BuildRequires: alsa-devel
BuildRequires: esound-devel
BuildRequires: gcc-c++
BuildRequires: libpulse-devel
BuildRequires: libstdc++-devel
BuildRequires: nasm
BuildRequires: pkgconfig
BuildRequires: xorg-x11-devel
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(glu)
%ifarch ppc ppc64
BuildRequires: libspe2-devel
%endif
Version: 1.99.%{hg_rev}
Release: 0
Summary: Simple DirectMedia Layer Library
License: Zlib
Group: System/Libraries
Url: http://www.libsdl.org/
Source: http://www.libsdl.org/tmp/SDL-2.0.tar.gz
Source1: baselibs.conf
Patch0: %{name}-2.0-voidptr.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.
%package -n libSDL2-2_0-0
Summary: Simple DirectMedia Layer Library
Group: System/Libraries
%description -n libSDL2-2_0-0
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.
%package -n libSDL2-devel
Summary: SDL2 Library Developer Files
Group: Development/Libraries/X11
Requires: Mesa-devel
Requires: alsa-devel
Requires: gcc
Requires: libSDL2-2_0-0 = %{version}
Requires: libstdc++-devel
Requires: pkgconfig
Requires: xorg-x11-devel
Requires: pkgconfig(glu)
%description -n libSDL2-devel
This package contains files needed for development with the SDL2
library.
%prep
%setup -q -n SDL-2.0.0-%{hg_rev}
%patch0
%build
%configure \
--with-pic \
--disable-rpath \
--disable-alsa-shared \
--disable-video-svga \
--disable-video-ps3 \
--disable-video-directfb
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
%post -n libSDL2-2_0-0 -p /sbin/ldconfig
%postun -n libSDL2-2_0-0 -p /sbin/ldconfig
%files -n libSDL2-2_0-0
%defattr(-,root,root)
%doc BUGS COPYING CREDITS README README-SDL.txt
%{_libdir}/*.so.*
%files -n libSDL2-devel
%defattr(-,root,root)
%doc README.HG TODO WhatsNew
%{_bindir}/*
%{_libdir}/*.so
%{_libdir}/libSDL2.a
%{_libdir}/libSDL2main.a
%{_libdir}/libSDL2_test.a
%{_includedir}/SDL2/
%{_datadir}/aclocal/sdl2.m4
%{_libdir}/pkgconfig/sdl2.pc
%changelog

8
baselibs.conf Normal file
View File

@ -0,0 +1,8 @@
libSDL2-2_0-0
provides "SDL2-<targettype> = <version>"
obsoletes "SDL2-<targettype> <= <version>"
libSDL2-devel
provides "SDL2-devel-<targettype> = <version>"
obsoletes "SDL2-devel-<targettype> <= <version>"
requires -libSDL2-<targettype>
requires "libSDL2-2_0-0-<targettype> = <version>"