|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
%{?mingw_package_header}
|
|
|
|
|
|
|
|
|
|
Name: mingw-SDL2
|
|
|
|
|
Version: 2.0.16
|
|
|
|
|
Version: 2.0.18
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: MinGW Windows port of SDL2 cross-platform multimedia library
|
|
|
|
|
|
|
|
|
@ -11,18 +11,17 @@ Source0: http://www.libsdl.org/release/SDL2-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw32-gcc
|
|
|
|
|
BuildRequires: mingw32-gcc-c++
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw64-gcc
|
|
|
|
|
|
|
|
|
|
# Not required at the moment, but SDL does contain plenty of C++ code,
|
|
|
|
|
# I just haven't worked out how to enable it.
|
|
|
|
|
#BuildRequires: mingw32-gcc-c++
|
|
|
|
|
BuildRequires: mingw64-gcc-c++
|
|
|
|
|
|
|
|
|
|
%ifarch %{ix86}
|
|
|
|
|
BuildRequires: nasm
|
|
|
|
@ -81,20 +80,13 @@ device.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%mingw_configure
|
|
|
|
|
%mingw_cmake -DSDL_STATIC=ON -DSDL_STATIC_PIC=ON
|
|
|
|
|
%mingw_make_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%mingw_make_install
|
|
|
|
|
|
|
|
|
|
# Remove test library.
|
|
|
|
|
rm %{buildroot}%{mingw32_libdir}/libSDL2_test.a
|
|
|
|
|
rm %{buildroot}%{mingw64_libdir}/libSDL2_test.a
|
|
|
|
|
|
|
|
|
|
# Drop all .la files
|
|
|
|
|
find %{buildroot} -name "*.la" -delete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Win32
|
|
|
|
|
%files -n mingw32-SDL2
|
|
|
|
@ -130,6 +122,10 @@ find %{buildroot} -name "*.la" -delete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Dec 01 2021 Neal Gompa <ngompa@fedoraproject.org> - 2.0.18-1
|
|
|
|
|
- Update to 2.0.18
|
|
|
|
|
- Switch to building with CMake
|
|
|
|
|
|
|
|
|
|
* Wed Aug 11 2021 Sandro Mani <manisandro@gmail.com> - 2.0.16-1
|
|
|
|
|
- Update to 2.0.16
|
|
|
|
|
|
|
|
|
|