add packaging accepted/tizen/20130503.223857 accepted/tizen/20130520.103139 accepted/trunk/20130325.213901 submit/tizen/20130503.183210 submit/tizen/20130503.185123 submit/tizen/20130503.185203 submit/tizen/20130509.172119 submit/tizen/20130517.014905 submit/tizen/20130517.014948 submit/tizen/20130517.020333 submit/trunk/20130325.084207
authorAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 06:45:02 +0000 (22:45 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 06:45:02 +0000 (22:45 -0800)
packaging/SDL-1.2.13-x11-keytounicode.patch [new file with mode: 0644]
packaging/SDL.spec [new file with mode: 0644]
packaging/baselibs.conf [new file with mode: 0644]

diff --git a/packaging/SDL-1.2.13-x11-keytounicode.patch b/packaging/SDL-1.2.13-x11-keytounicode.patch
new file mode 100644 (file)
index 0000000..b96df60
--- /dev/null
@@ -0,0 +1,27 @@
+--- src/video/x11/SDL_x11events.c
++++ src/video/x11/SDL_x11events.c
+@@ -1223,8 +1223,11 @@
+  * sequences (dead accents, compose key sequences) will not work since the
+  * state has been irrevocably lost.
+  */
++extern DECLSPEC Uint16 SDLCALL X11_KeyToUnicode(SDLKey, SDLMod);
++
+ Uint16 X11_KeyToUnicode(SDLKey keysym, SDLMod modifiers)
+ {
++      static int warning = 1;
+       struct SDL_VideoDevice *this = current_video;
+       char keybuf[32];
+       int i;
+@@ -1232,6 +1235,12 @@
+       XKeyEvent xkey;
+       Uint16 unicode;
++      if ( warning ) {
++              warning = 0;
++              fprintf(stderr, "WARNING: Application is using X11_KeyToUnicode().\n");
++              fprintf(stderr, "This is not an official SDL function, please report this as a bug.\n");
++      }
++
+       if ( !this || !SDL_Display ) {
+               return 0;
+       }
diff --git a/packaging/SDL.spec b/packaging/SDL.spec
new file mode 100644 (file)
index 0000000..8314b68
--- /dev/null
@@ -0,0 +1,103 @@
+%define aalib   0
+
+Name:           SDL
+Version:        1.2.15
+Release:        0
+License:        LGPL-2.1+
+Summary:        Simple DirectMedia Layer Library
+Url:            http://www.libsdl.org/
+Group:          System/Libraries
+Source:         http://www.libsdl.org/release/SDL-%{version}.tar.gz
+Source2:        baselibs.conf
+# PATCH-FIX-OPENSUSE SDL-1.2.13-x11-keytounicode.patch
+Patch0:         SDL-1.2.13-x11-keytounicode.patch
+BuildRequires:  autoconf
+BuildRequires:  gcc-c++
+BuildRequires:  libpulse-devel
+BuildRequires:  libstdc++-devel
+BuildRequires:  mesa-devel
+BuildRequires:  nasm
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(alsa)
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(glu)
+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 libSDL
+Summary:        Simple DirectMedia Layer Library
+Group:          System/Libraries
+# SDL was used last in 11.1
+Provides:       SDL = %{version}
+Obsoletes:      SDL < %{version}
+
+%description -n libSDL
+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 libSDL-devel
+Summary:        SDL Library Developer Files
+Group:          Development/Libraries/X11
+Requires:       gcc
+Requires:       libSDL = %{version}
+Requires:       libstdc++-devel
+Requires:       mesa-devel
+Requires:       pkgconfig
+Requires:       pkgconfig(alsa)
+Requires:       pkgconfig(glu)
+Provides:       SDL-devel = %{version}
+Obsoletes:      SDL-devel < %{version}
+
+%description -n libSDL-devel
+This package contains files needed for development with the SDL
+library.
+
+%prep
+%setup -q
+%patch0
+
+# remove the file to provide sufficient evidence that we are
+# not using this file during the build [bnc#508111]
+rm -f src/joystick/darwin/10.3.9-FIX/IOHIDLib.h
+
+%build
+./autogen.sh
+%configure \
+    --disable-static \
+    --with-pic \
+    --disable-rpath \
+    --disable-alsa-shared \
+%if 0%{?aalib}
+    --enable-video-aalib \
+%endif
+    --disable-video-svga \
+    --disable-video-ps3
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post -n libSDL -p /sbin/ldconfig
+
+%postun -n libSDL -p /sbin/ldconfig
+
+%files -n libSDL
+%defattr(-,root,root)
+%doc COPYING
+%{_libdir}/*.so.*
+
+%files -n libSDL-devel
+%defattr(-,root,root)
+%{_bindir}/*
+%{_libdir}/*.so
+%{_includedir}/SDL
+%{_datadir}/aclocal
+%{_mandir}/*/*
+%{_libdir}/pkgconfig/sdl.pc
+
+%changelog
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..c19469a
--- /dev/null
@@ -0,0 +1,8 @@
+libSDL
+  provides "SDL-<targettype> = <version>"
+  obsoletes "SDL-<targettype> <= <version>"
+libSDL-devel
+  provides "SDL-devel-<targettype> = <version>"
+  obsoletes "SDL-devel-<targettype> <= <version>"
+  requires -libSDL-<targettype>
+  requires "libSDL-<targettype> = <version>"