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