]>
Commit | Line | Data |
---|---|---|
23cab10a JB |
1 | # |
2 | # Conditional build: | |
6d7f1204 JB |
3 | %bcond_without alsa # ALSA support |
4 | %bcond_with esd # EsounD support | |
5 | %bcond_with nas # NAS support | |
6 | %bcond_with openal # OpenAL support | |
7 | %bcond_without pulseaudio # PulseAudio support | |
411434df | 8 | %bcond_without sdl # SDL support |
4f611e6a | 9 | |
7df19086 | 10 | Summary: libmikmod - a portable sound library for Unix |
ff71f364 ER |
11 | Summary(es.UTF-8): Biblioteca de sonidos libmikmod |
12 | Summary(fr.UTF-8): Bibliothèque sonore libmikmod | |
13 | Summary(pl.UTF-8): libmikmod - biblioteka do obsługi dźwięku dla różnych Uniksów | |
14 | Summary(pt_BR.UTF-8): Biblioteca de som libmikmod | |
15 | Summary(ru.UTF-8): Звуковая библиотека libmikmod | |
16 | Summary(uk.UTF-8): Звукова бібліотека libmikmod | |
01953fdc | 17 | Name: libmikmod |
9370981d | 18 | Version: 3.3.11.1 |
986e4e31 | 19 | Release: 2 |
0b0b5f97 | 20 | License: LGPL v2+ |
01953fdc | 21 | Group: Libraries |
0b0b5f97 | 22 | Source0: http://downloads.sourceforge.net/mikmod/%{name}-%{version}.tar.gz |
9370981d | 23 | # Source0-md5: f69d7dd06d307e888f466fc27f4f680b |
f08d40f9 | 24 | Patch0: %{name}-info.patch |
f3793ec1 | 25 | URL: http://mikmod.raphnet.net/ |
6d7f1204 JB |
26 | %{?with_openal:BuildRequires: OpenAL-devel} |
27 | %{?with_sdl:BuildRequires: SDL2-devel >= 2.0.0} | |
fd549863 | 28 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
fc467a49 JB |
29 | BuildRequires: autoconf >= 2.63 |
30 | BuildRequires: automake >= 1:1.10 | |
31 | %{?with_esd:BuildRequires: esound-devel >= 0.2.18} | |
a98c738d | 32 | BuildRequires: gettext-tools >= 0.10.35-9 |
fd549863 | 33 | BuildRequires: libtool |
6d7f1204 | 34 | %{?with_nas:BuildRequires: nas-devel} |
cb0831e1 | 35 | BuildRequires: pkgconfig |
6d7f1204 | 36 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
cedc2eb8 | 37 | BuildRequires: texinfo |
cedc2eb8 | 38 | Obsoletes: libmikmod2 |
fd549863 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
01953fdc | 40 | |
41 | %description | |
1f7d91d8 | 42 | Libmikmod is a portable sound library, capable of playing samples as |
43 | well as module files, originally written by Jean-Paul Mikkers (MikMak) | |
44 | for DOS. It has subsequently been hacked by many hands and now runs on | |
45 | many Unix flavours. | |
7df19086 | 46 | |
1f7d91d8 | 47 | It uses the OSS /dev/dsp driver including in all recent kernels for |
f38e8aca | 48 | output, as well as ALSA and EsounD, and will also write WAV files. |
7df19086 | 49 | |
1f7d91d8 | 50 | Supported file formats include mod, stm, s3m, mtm, xm, and it. Full |
51 | source included, use of this library for music/sound effects in your | |
52 | own programs is encouraged ! | |
01953fdc | 53 | |
6853f72a | 54 | %description -l es.UTF-8 |
cedc2eb8 | 55 | Biblioteca de sonidos libmikmod. |
56 | ||
6853f72a JR |
57 | %description -l fr.UTF-8 |
58 | Une bibliothèque sonore portable pour Unix et d'autres systèmes, | |
1f7d91d8 | 59 | capable de jouer aussi bien des effets sonores que des modules, sur un |
6853f72a | 60 | grand choix de périphériques sonores. |
01953fdc | 61 | |
6853f72a JR |
62 | %description -l pl.UTF-8 |
63 | Biblioteka dźwięku dla Uniksa i innych systemów, umożliwiająca | |
64 | odtwarzanie sampli i modułów dźwiękowych na wielu rodzajach urządzeń | |
65 | dźwiękowych. | |
01953fdc | 66 | |
6853f72a | 67 | Wspierane formaty plików to między innymi mod, stm, s3m, mtm, xm i it. |
4ed4c6b9 | 68 | |
6853f72a JR |
69 | %description -l pt_BR.UTF-8 |
70 | Uma biblioteca de som portátil para o Unix e outros sistemas | |
cedc2eb8 | 71 | operacionais, capaz de tocar samples agem de arquivos .mod, em uma |
72 | grande variedade de dispositivos de som. | |
73 | ||
6853f72a JR |
74 | %description -l ru.UTF-8 |
75 | Мобильная звуковая библиотека для *nix, умеющая проигрывать сэмплы и | |
76 | MOD'ы на большом количестве звуковых устройств. | |
cedc2eb8 | 77 | |
6853f72a JR |
78 | %description -l uk.UTF-8 |
79 | Переносима звукова бібліотека для *nix, здатна програвати семпли та | |
80 | "модулі" на великій кількості звукових пристроїв. | |
cedc2eb8 | 81 | |
01953fdc | 82 | %package devel |
fc467a49 JB |
83 | Summary: Include files to develop libmikmod applications |
84 | Summary(es.UTF-8): Archivos de inclusión para desarrollar aplicaciones libmikmod | |
85 | Summary(fr.UTF-8): Includes pour programmer pour libmikmod | |
86 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmikmod | |
87 | Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolver aplicações libmikmod | |
ff71f364 ER |
88 | Summary(ru.UTF-8): .h-файлы для разработки libmikmod-приложений |
89 | Summary(uk.UTF-8): .h-файли для розробки програм, що користуються libmikmod | |
01953fdc | 90 | Group: Development/Libraries |
fd549863 | 91 | Requires: %{name} = %{version}-%{release} |
986e4e31 JP |
92 | Requires: SDL2-devel |
93 | Requires: pulseaudio-devel | |
cedc2eb8 | 94 | Obsoletes: libmikmod2-devel |
01953fdc | 95 | |
96 | %description devel | |
fc467a49 | 97 | Include files to develop libmikmod applications. |
01953fdc | 98 | |
6853f72a | 99 | %description devel -l es.UTF-8 |
fc467a49 | 100 | Archivos de inclusión para desarrollar aplicaciones libmikmod. |
cedc2eb8 | 101 | |
6853f72a | 102 | %description devel -l fr.UTF-8 |
fc467a49 | 103 | Includes pour programmer pour libmikmod. |
01953fdc | 104 | |
6853f72a | 105 | %description devel -l pl.UTF-8 |
fc467a49 JB |
106 | Pliki nagłówkowe do tworzenia aplikacji wykorzystujących bibliotekę |
107 | libmikmod. | |
01953fdc | 108 | |
6853f72a | 109 | %description devel -l pt_BR.UTF-8 |
fc467a49 | 110 | Arquivos de inclusão para desenvolver aplicações libmikmod. |
cedc2eb8 | 111 | |
6853f72a JR |
112 | %description devel -l ru.UTF-8 |
113 | .h-файлы для разработки libmikmod-приложений. | |
cedc2eb8 | 114 | |
6853f72a JR |
115 | %description devel -l uk.UTF-8 |
116 | .h-файли для розробки програм, що користуються libmikmod. | |
cedc2eb8 | 117 | |
01953fdc | 118 | %package static |
fc467a49 | 119 | Summary: Static libmikmod library |
ff71f364 | 120 | Summary(fr.UTF-8): Bibliothèques statiques libmikmod |
fc467a49 | 121 | Summary(pl.UTF-8): Biblioteka statyczna libmikmod |
ff71f364 ER |
122 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libmikmod |
123 | Summary(ru.UTF-8): Статические библиотеки для разработки libmikmod-приложений | |
124 | Summary(uk.UTF-8): Статичні бібліотеки для розробки програм, що користуються libmikmod | |
1f7d91d8 | 125 | Group: Development/Libraries |
fd549863 | 126 | Requires: %{name}-devel = %{version}-%{release} |
01953fdc | 127 | |
128 | %description static | |
fc467a49 | 129 | Static libmikmod library. |
01953fdc | 130 | |
6853f72a JR |
131 | %description static -l fr.UTF-8 |
132 | Bibliothèques statiques libmikmod. | |
01953fdc | 133 | |
6853f72a | 134 | %description static -l pl.UTF-8 |
fc467a49 | 135 | Biblioteka statyczna libmikmod. |
01953fdc | 136 | |
6853f72a JR |
137 | %description static -l pt_BR.UTF-8 |
138 | Bibliotecas estáticas para desenvolvimento com libmikmod. | |
cedc2eb8 | 139 | |
6853f72a JR |
140 | %description static -l ru.UTF-8 |
141 | Статические библиотеки для разработки libmikmod-приложений. | |
cedc2eb8 | 142 | |
6853f72a JR |
143 | %description static -l uk.UTF-8 |
144 | Статичні бібліотеки для розробки програм, що користуються libmikmod. | |
cedc2eb8 | 145 | |
01953fdc | 146 | %prep |
0b0b5f97 | 147 | %setup -q |
cedc2eb8 | 148 | %patch0 -p0 |
01953fdc | 149 | |
88755003 ER |
150 | %if %{without esd} |
151 | echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4 | |
152 | %endif | |
153 | ||
01953fdc | 154 | %build |
2c86abf8 | 155 | %{__libtoolize} |
559b9e29 | 156 | %{__aclocal} |
0b0b5f97 | 157 | %{__autoheader} |
ce079c0f | 158 | %{__autoconf} |
0b0b5f97 | 159 | %{__automake} |
f1337914 JB |
160 | # note: audiofile (af) driver is for DEC AudioFile server (libAF), not libaudiofile library; |
161 | # libgus was an ancient (Linux < 2.2) GUS support library ("ultra" package) | |
01953fdc | 162 | %configure \ |
0b0b5f97 JB |
163 | %{!?with_alsa:--disable-alsa} \ |
164 | %{!?with_esound:--disable-esd} \ | |
6d7f1204 JB |
165 | %{?with_nas:--enable-nas} \ |
166 | %{?with_openal:--enable-openal} \ | |
167 | --enable-oss \ | |
168 | %{!?with_pulseaudio:--disable-pulseaudio} \ | |
169 | %{?with_sdl:--enable-sdl} | |
07ef403f | 170 | %{__make} |
01953fdc | 171 | |
172 | %install | |
173 | rm -rf $RPM_BUILD_ROOT | |
d74d92c8 JB |
174 | %{__make} install \ |
175 | DESTDIR=$RPM_BUILD_ROOT | |
01953fdc | 176 | |
f644e091 | 177 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
4f611e6a | 178 | |
01953fdc | 179 | %clean |
180 | rm -rf $RPM_BUILD_ROOT | |
181 | ||
182 | %post -p /sbin/ldconfig | |
183 | %postun -p /sbin/ldconfig | |
184 | ||
0b0b5f97 | 185 | %post devel -p /sbin/postshell |
7ccfa1ec | 186 | -/usr/sbin/fix-info-dir -c %{_infodir} |
01953fdc | 187 | |
0b0b5f97 | 188 | %postun devel -p /sbin/postshell |
7ccfa1ec | 189 | -/usr/sbin/fix-info-dir -c %{_infodir} |
01953fdc | 190 | |
191 | %files | |
192 | %defattr(644,root,root,755) | |
d74d92c8 | 193 | %doc AUTHORS NEWS README TODO |
0b0b5f97 | 194 | %attr(755,root,root) %{_libdir}/libmikmod.so.*.*.* |
6d7f1204 | 195 | %attr(755,root,root) %ghost %{_libdir}/libmikmod.so.3 |
01953fdc | 196 | |
197 | %files devel | |
198 | %defattr(644,root,root,755) | |
01953fdc | 199 | %attr(755,root,root) %{_bindir}/libmikmod-config |
0b0b5f97 JB |
200 | %attr(755,root,root) %{_libdir}/libmikmod.so |
201 | %{_libdir}/libmikmod.la | |
202 | %{_includedir}/mikmod.h | |
fc467a49 | 203 | %{_pkgconfigdir}/libmikmod.pc |
0b0b5f97 | 204 | %{_aclocaldir}/libmikmod.m4 |
6d4994f7 | 205 | %{_mandir}/man1/libmikmod-config.1* |
0b0b5f97 | 206 | %{_infodir}/mikmod.info* |
01953fdc | 207 | |
208 | %files static | |
1f7d91d8 | 209 | %defattr(644,root,root,755) |
0b0b5f97 | 210 | %{_libdir}/libmikmod.a |