1 %define realname SDL_mixer
2 Summary: Simple DirectMedia Layer - Sample Mixer Library - MinGW32 cross version
3 Summary(pl.UTF-8): Simple DirectMedia Layer - biblioteka miksująca próbki dźwiękowe - wersja skrośna MinGW32
4 Name: crossmingw32-%{realname}
9 Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{realname}-%{version}.tar.gz
10 # Source0-md5: e03ff73d77a55e3572ad0217131dc4a1
11 URL: http://www.libsdl.org/projects/SDL_mixer/
12 BuildRequires: crossmingw32-SDL >= 1.2.10
13 BuildRequires: crossmingw32-gcc
14 BuildRequires: crossmingw32-libvorbis >= 1.0
15 BuildRequires: crossmingw32-w32api
16 Requires: crossmingw32-SDL >= 1.2.10
17 Requires: crossmingw32-runtime
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define no_install_post_strip 1
22 %define target i386-mingw32
23 %define target_platform i386-pc-mingw32
25 %define _sysprefix /usr
26 %define _prefix %{_sysprefix}/%{target}
27 %define _libdir %{_prefix}/lib
28 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
29 %define _dlldir /usr/share/wine/windows/system
30 %define __cc %{target}-gcc
31 %define __cxx %{target}-g++
32 %define __pkgconfig_provides %{nil}
33 %define __pkgconfig_requires %{nil}
36 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
39 # -z options are invalid for mingw linker, most of -f options are Linux-specific
40 %define filterout_ld -Wl,-z,.*
41 %define filterout_c -f[-a-z0-9=]*
44 Due to popular demand, here is a simple multi-channel audio mixer. It
45 supports 4 channels of 16 bit stereo audio, plus a single channel of
46 music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
49 This package contains the cross version for Win32.
51 %description -l pl.UTF-8
52 SDL_mixer to prosty wielokanałowy mikser audio. Obsługuje 4 kanały
53 16-bitowego dźwięku stereo plus jeden kanał dla muzyki miksowanej
54 przez popularne biblioteki MikMod MOD, Timitity MIDI i SMPEG MP3.
56 Ten pakiet zawiera wersję skrośną dla Win32.
59 Summary: Static SDL_mixer library (cross MinGW32 version)
60 Summary(pl.UTF-8): Statyczna biblioteka SDL_mixer (wersja skrośna MinGW32)
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static SDL_mixer library (cross MinGW32 version).
67 %description static -l pl.UTF-8
68 Statyczna biblioteka SDL_mixer (wersja skrośna MinGW32).
71 Summary: SDL_mixer - DLL library for Windows
72 Summary(pl.UTF-8): SDL_mixer - biblioteka DLL dla Windows
73 Group: Applications/Emulators
74 Requires: crossmingw32-SDL-dll >= 1.2.10
78 SDL_mixer - DLL library for Windows.
80 %description dll -l pl.UTF-8
81 SDL_mixer - biblioteka DLL dla Windows.
84 %setup -q -n %{realname}-%{version}
87 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
91 --with-sdl-prefix=%{_prefix} \
98 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT%{_dlldir}
104 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
107 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
108 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
112 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc CHANGES COPYING README
117 %{_libdir}/libSDL_mixer.dll.a
118 %{_libdir}/libSDL_mixer.la
119 %{_includedir}/SDL/SDL_mixer.h
120 %{_pkgconfigdir}/SDL_mixer.pc
123 %defattr(644,root,root,755)
124 %{_libdir}/libSDL_mixer.a
127 %defattr(644,root,root,755)
128 %{_dlldir}/SDL_mixer.dll