]>
Commit | Line | Data |
---|---|---|
db8b1635 AO |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with modplug # use modplug for MOD support (mikmod is used by default) | |
4 | # | |
5 | Summary: Simple DirectMedia Layer - Sample Mixer Library | |
6 | Summary(pl.UTF-8): Simple DirectMedia Layer - biblioteka miksująca próbki dźwiękowe | |
7 | Summary(pt_BR.UTF-8): SDL2 - Biblioteca para mixagem | |
8 | Name: SDL2_mixer | |
9 | Version: 2.0.0 | |
10 | Release: 1 | |
11 | License: Zlib-like | |
12 | Group: Libraries | |
13 | Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 65f6d80df073a1fb3bb537fbda031b50 | |
15 | URL: http://www.libsdl.org/projects/SDL_mixer/ | |
16 | BuildRequires: SDL2-devel >= 2.0.0 | |
17 | BuildRequires: autoconf | |
18 | BuildRequires: automake | |
19 | BuildRequires: flac-devel >= 1.3.0 | |
20 | BuildRequires: libtool >= 2:2.0 | |
21 | BuildRequires: libmikmod-devel >= 3.1.10 | |
22 | %{?with_modplug:BuildRequires: libmodplug-devel >= 0.8.7} | |
23 | BuildRequires: libvorbis-devel >= 1:1.0 | |
24 | BuildRequires: smpeg-devel >= 0.4.4-11 | |
25 | Requires: SDL2 >= 2.0.0 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Due to popular demand, here is a simple multi-channel audio mixer. It | |
30 | supports 4 channels of 16 bit stereo audio, plus a single channel of | |
31 | music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3 | |
32 | libraries. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | SDL2_mixer to prosty wielokanałowy mikser audio. Obsługuje 4 kanały | |
36 | 16-bitowego dźwięku stereo plus jeden kanał dla muzyki miksowanej | |
37 | przez popularne biblioteki MikMod MOD, Timitity MIDI i SMPEG MP3. | |
38 | ||
39 | %description -l pt_BR.UTF-8 | |
40 | Biblioteca que suporta 4 canais de áudio estéreo 16 bit, mais um canal | |
41 | de música, mixado pelo populares bibliotecas MOD MikMod, MIDI timidity | |
42 | e SMPEG MP3. | |
43 | ||
44 | %package devel | |
45 | Summary: Header files and more to develop SDL_mixer applications | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwoju aplikacji używających SDL_mixer | |
47 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | Requires: SDL2-devel >= 2.0.0 | |
51 | ||
52 | %description devel | |
53 | Header files and more to develop SDL2_mixer applications. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe do rozwoju aplikacji używających SDL2_mixer | |
57 | ||
58 | %description devel -l pt_BR.UTF-8 | |
59 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
60 | SDL2. | |
61 | ||
62 | %package static | |
63 | Summary: Static SDL2_mixer library | |
64 | Summary(pl.UTF-8): Statyczna biblioteka SDL2_mixer | |
65 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com SDL2_mixer | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static SDL2_mixer library. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka SDL2_mixer. | |
74 | ||
75 | %description static -l pt_BR.UTF-8 | |
76 | Bibliotecas estáticas para desenvolvimento com SDL2_mixer. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %build | |
82 | #%{__libtoolize} | |
83 | %{__aclocal} -I acinclude | |
84 | %{__autoconf} | |
85 | %configure \ | |
86 | --enable-music-midi-fluidsynth \ | |
87 | %{?with_modplug:--enable-music-mod-modplug} | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install install-bin \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
96 | mv $RPM_BUILD_ROOT/%{_bindir}/playmus $RPM_BUILD_ROOT/%{_bindir}/playmus2 | |
97 | mv $RPM_BUILD_ROOT/%{_bindir}/playwave $RPM_BUILD_ROOT/%{_bindir}/playwave2 | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %doc CHANGES.txt COPYING.txt README.txt | |
108 | %attr(755,root,root) %{_bindir}/playmus2 | |
109 | %attr(755,root,root) %{_bindir}/playwave2 | |
110 | %attr(755,root,root) %{_libdir}/libSDL2_mixer-2.0.so.*.*.* | |
111 | %attr(755,root,root) %ghost %{_libdir}/libSDL2_mixer-2.0.so.0 | |
112 | ||
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
115 | %attr(755,root,root) %{_libdir}/libSDL2_mixer.so | |
116 | %{_libdir}/libSDL2_mixer.la | |
117 | %{_includedir}/SDL2/SDL_mixer.h | |
118 | %{_pkgconfigdir}/SDL2_mixer.pc | |
119 | ||
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libSDL2_mixer.a |