commit 08fc5be5a1dd9184d9166d6a3fa4027d26774af41a4dbdf7bc17157e5dbba9b5 Author: Matthias Mailänder Date: Sun May 26 09:01:54 2013 +0000 OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=10 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/SDL-2.0.tar.gz b/SDL-2.0.tar.gz new file mode 100644 index 0000000..d847dbe --- /dev/null +++ b/SDL-2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:835292d391eb32496db6c07f1b3e3fbdaee0ba8515156d9887b5d9762eafe79c +size 4727642 diff --git a/SDL2-2.0-voidptr.patch b/SDL2-2.0-voidptr.patch new file mode 100644 index 0000000..7b8eaf4 --- /dev/null +++ b/SDL2-2.0-voidptr.patch @@ -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); + diff --git a/SDL2.changes b/SDL2.changes new file mode 100644 index 0000000..ee8141a --- /dev/null +++ b/SDL2.changes @@ -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 + diff --git a/SDL2.spec b/SDL2.spec new file mode 100644 index 0000000..23220b6 --- /dev/null +++ b/SDL2.spec @@ -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 diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..f051fa8 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,8 @@ +libSDL2-2_0-0 + provides "SDL2- = " + obsoletes "SDL2- <= " +libSDL2-devel + provides "SDL2-devel- = " + obsoletes "SDL2-devel- <= " + requires -libSDL2- + requires "libSDL2-2_0-0- = "