initial import

epel9
Marcel Wysocki 11 years ago
parent 0595326da1
commit 838589b1b2

1
.gitignore vendored

@ -0,0 +1 @@
/SDL2-2.0.3.tar.gz

@ -0,0 +1,114 @@
%{?mingw_package_header}
Name: mingw-SDL2
Version: 2.0.3
Release: 3%{?dist}
Summary: MinGW Windows port of SDL2 cross-platform multimedia library
License: LGPLv2+
Group: Development/Libraries
URL: http://www.libsdl.org/
Source0: http://www.libsdl.org/release/SDL2-%{version}.tar.gz
BuildArch: noarch
BuildRequires: dos2unix
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-gcc
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++
%ifarch %{ix86}
BuildRequires: nasm
%endif
%description
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
designed to provide fast access to the graphics frame buffer and audio
device.
# Win32
%package -n mingw32-SDL2
Summary: MinGW Windows port of SDL cross-platform multimedia library
%description -n mingw32-SDL2
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
designed to provide fast access to the graphics frame buffer and audio
device.
# Win32
%package -n mingw64-SDL2
Summary: MinGW Windows port of SDL cross-platform multimedia library
%description -n mingw64-SDL2
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
designed to provide fast access to the graphics frame buffer and audio
device.
%?mingw_debug_package
%prep
%setup -q -n SDL2-%{version}
dos2unix COPYING.txt README.txt
%build
%mingw_configure
%mingw_make %{?_smp_mflags}
%install
%mingw_make DESTDIR=$RPM_BUILD_ROOT install
# Remove static libraries but DON'T remove *.dll.a files.
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libSDL2.a
rm $RPM_BUILD_ROOT%{mingw64_libdir}/libSDL2.a
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libSDL2_test.a
rm $RPM_BUILD_ROOT%{mingw64_libdir}/libSDL2_test.a
# Drop all .la files
find $RPM_BUILD_ROOT -name "*.la" -delete
# Win32
%files -n mingw32-SDL2
%doc README.txt COPYING.txt
%{mingw32_bindir}/SDL2.dll
%{mingw32_bindir}/sdl2-config
%{mingw32_libdir}/libSDL2.dll.a
%{mingw32_libdir}/libSDL2main.a
%{mingw32_libdir}/pkgconfig/sdl2.pc
%{mingw32_datadir}/aclocal/sdl2.m4
%{mingw32_includedir}/SDL2
# Win64
%files -n mingw64-SDL2
%doc README.txt COPYING.txt
%{mingw64_bindir}/SDL2.dll
%{mingw64_bindir}/sdl2-config
%{mingw64_libdir}/libSDL2.dll.a
%{mingw64_libdir}/libSDL2main.a
%{mingw64_libdir}/pkgconfig/sdl2.pc
%{mingw64_datadir}/aclocal/sdl2.m4
%{mingw64_includedir}/SDL2
%changelog
* Fri May 16 2014 Marcel Wysocki <maci@satgnu.net> - 2.0.3-3
- Fix rpmlint warnings
* Tue May 13 2014 Marcel Wysocki <maci@satgnu.net> - 2.0.3-2
- Removed redundant BuildRequires
* Mon May 12 2014 Marcel Wysocki <maci@satgnu.net> - 2.0.3-1
- Initial rpm

@ -0,0 +1 @@
fe6c61d2e9df9ef570e7e80c6e822537 SDL2-2.0.3.tar.gz
Loading…
Cancel
Save