2013-05-26 11:01:54 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-06-24 20:12:02 +02:00
|
|
|
%define rev 7316
|
2013-05-26 11:01:54 +02:00
|
|
|
|
|
|
|
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
|
2013-06-24 20:12:02 +02:00
|
|
|
Version: 1.99.%{rev}
|
2013-05-26 11:01:54 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Simple DirectMedia Layer Library
|
|
|
|
License: Zlib
|
|
|
|
Group: System/Libraries
|
|
|
|
Url: http://www.libsdl.org/
|
2013-06-24 20:12:02 +02:00
|
|
|
Source: http://www.libsdl.org/tmp/SDL-2.0.0-%{rev}.tar.gz
|
2013-05-26 11:01:54 +02:00
|
|
|
Source1: baselibs.conf
|
|
|
|
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
|
2013-06-24 20:12:02 +02:00
|
|
|
%setup -q -n SDL-2.0.0-%{rev}
|
2013-05-26 11:01:54 +02:00
|
|
|
|
|
|
|
%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)
|
2013-06-24 20:12:02 +02:00
|
|
|
%doc BUGS.txt COPYING.txt CREDITS.txt README.txt README-SDL.txt
|
2013-05-26 11:01:54 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files -n libSDL2-devel
|
|
|
|
%defattr(-,root,root)
|
2013-06-24 20:12:02 +02:00
|
|
|
%doc TODO.txt WhatsNew.txt
|
2013-05-26 11:01:54 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/libSDL2.a
|
|
|
|
%{_libdir}/libSDL2main.a
|
|
|
|
%{_libdir}/libSDL2_test.a
|
|
|
|
%{_includedir}/SDL2/
|
|
|
|
%{_datadir}/aclocal/sdl2.m4
|
|
|
|
%{_libdir}/pkgconfig/sdl2.pc
|
|
|
|
|
|
|
|
%changelog
|