File mingw32-SDL.spec of Package mingw32-SDL
#
# spec file for package mingw32-SDL
#
# Copyright (c) 2014 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/
#
Name: mingw32-SDL
Version: 1.2.15
Release: 0
Summary: Simple DirectMedia Layer Library
License: LGPL-2.1+
Group: Development/Libraries
Url: http://www.libsdl.org/
Source: http://www.libsdl.org/release/SDL-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw32-win_iconv-devel
%_mingw32_package_header_debug
BuildArch: noarch
%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 mingw32-libSDL
Summary: Simple DirectMedia Layer Library
Group: Development/Libraries
%description -n mingw32-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 mingw32-libSDL-devel
Summary: Simple DirectMedia Layer Library (development files)
Group: Development/Libraries
%description -n mingw32-libSDL-devel
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms (development files).
%_mingw32_debug_package
%prep
%setup -q -n SDL-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
MINGW32_CFLAGS="-DNONAMELESSUNION %{_mingw32_cflags}" \
%{_mingw32_configure} \
--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw32-libSDL
%defattr(-,root,root)
%{_mingw32_bindir}/SDL.dll
%files -n mingw32-libSDL-devel
%defattr(-,root,root)
%{_mingw32_bindir}/sdl-config
%{_mingw32_includedir}/SDL
%{_mingw32_libdir}/libSDLmain.a
%{_mingw32_libdir}/libSDL.dll.a
%{_mingw32_libdir}/pkgconfig/sdl.pc
%{_mingw32_datadir}/aclocal/sdl.m4
%{_mingw32_mandir}/man3/SDL*.3*
%changelog