File mingw64-SDL.spec of Package mingw64-SDL
#
# spec file for package mingw64-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: mingw64-SDL
Version: 1.2.15
Release: 0
Summary: Simple DirectMedia Layer Library
License: LGPL-2.1-or-later
Group: Development/Libraries
Url: http://www.libsdl.org/
Source: http://www.libsdl.org/release/SDL-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-win_iconv-devel
%_mingw64_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 mingw64-libSDL
Summary: Simple DirectMedia Layer Library
Group: Development/Libraries
%description -n mingw64-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 mingw64-libSDL-devel
Summary: Simple DirectMedia Layer Library (development files)
Group: Development/Libraries
%description -n mingw64-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).
%_mingw64_debug_package
%prep
%setup -q -n SDL-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
MINGW64_CFLAGS="-DNONAMELESSUNION %{_mingw64_cflags}" \
%{_mingw64_configure} \
--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-libSDL
%defattr(-,root,root)
%{_mingw64_bindir}/SDL.dll
%files -n mingw64-libSDL-devel
%defattr(-,root,root)
%{_mingw64_bindir}/sdl-config
%{_mingw64_includedir}/SDL
%{_mingw64_libdir}/libSDLmain.a
%{_mingw64_libdir}/libSDL.dll.a
%{_mingw64_libdir}/pkgconfig/sdl.pc
%{_mingw64_datadir}/aclocal/sdl.m4
%{_mingw64_mandir}/man3/SDL*.3*
%changelog