]> git.pld-linux.org Git - packages/libmikmod.git/blob - libmikmod.spec
- updated to 3.3.11.1
[packages/libmikmod.git] / libmikmod.spec
1 #
2 # Conditional build:
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
8 %bcond_without  sdl             # SDL support
9
10 Summary:        libmikmod - a portable sound library for Unix
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
17 Name:           libmikmod
18 Version:        3.3.11.1
19 Release:        1
20 License:        LGPL v2+
21 Group:          Libraries
22 Source0:        http://downloads.sourceforge.net/mikmod/%{name}-%{version}.tar.gz
23 # Source0-md5:  f69d7dd06d307e888f466fc27f4f680b
24 Patch0:         %{name}-info.patch
25 URL:            http://mikmod.raphnet.net/
26 %{?with_openal:BuildRequires:   OpenAL-devel}
27 %{?with_sdl:BuildRequires:      SDL2-devel >= 2.0.0}
28 %{?with_alsa:BuildRequires:     alsa-lib-devel}
29 BuildRequires:  autoconf >= 2.63
30 BuildRequires:  automake >= 1:1.10
31 %{?with_esd:BuildRequires:      esound-devel >= 0.2.18}
32 BuildRequires:  gettext-tools >= 0.10.35-9
33 BuildRequires:  libtool
34 %{?with_nas:BuildRequires:      nas-devel}
35 BuildRequires:  pkgconfig
36 %{?with_pulseaudio:BuildRequires:       pulseaudio-devel}
37 BuildRequires:  texinfo
38 Obsoletes:      libmikmod2
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
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.
46
47 It uses the OSS /dev/dsp driver including in all recent kernels for
48 output, as well as ALSA and EsounD, and will also write WAV files.
49
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 !
53
54 %description -l es.UTF-8
55 Biblioteca de sonidos libmikmod.
56
57 %description -l fr.UTF-8
58 Une bibliothèque sonore portable pour Unix et d'autres systèmes,
59 capable de jouer aussi bien des effets sonores que des modules, sur un
60 grand choix de périphériques sonores.
61
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.
66
67 Wspierane formaty plików to między innymi mod, stm, s3m, mtm, xm i it.
68
69 %description -l pt_BR.UTF-8
70 Uma biblioteca de som portátil para o Unix e outros sistemas
71 operacionais, capaz de tocar samples agem de arquivos .mod, em uma
72 grande variedade de dispositivos de som.
73
74 %description -l ru.UTF-8
75 Мобильная звуковая библиотека для *nix, умеющая проигрывать сэмплы и
76 MOD'ы на большом количестве звуковых устройств.
77
78 %description -l uk.UTF-8
79 Переносима звукова бібліотека для *nix, здатна програвати семпли та
80 "модулі" на великій кількості звукових пристроїв.
81
82 %package devel
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
88 Summary(ru.UTF-8):      .h-файлы для разработки libmikmod-приложений
89 Summary(uk.UTF-8):      .h-файли для розробки програм, що користуються libmikmod
90 Group:          Development/Libraries
91 Requires:       %{name} = %{version}-%{release}
92 Obsoletes:      libmikmod2-devel
93
94 %description devel
95 Include files to develop libmikmod applications.
96
97 %description devel -l es.UTF-8
98 Archivos de inclusión para desarrollar aplicaciones libmikmod.
99
100 %description devel -l fr.UTF-8
101 Includes pour programmer pour libmikmod.
102
103 %description devel -l pl.UTF-8
104 Pliki nagłówkowe do tworzenia aplikacji wykorzystujących bibliotekę
105 libmikmod.
106
107 %description devel -l pt_BR.UTF-8
108 Arquivos de inclusão para desenvolver aplicações libmikmod.
109
110 %description devel -l ru.UTF-8
111 .h-файлы для разработки libmikmod-приложений.
112
113 %description devel -l uk.UTF-8
114 .h-файли для розробки програм, що користуються libmikmod.
115
116 %package static
117 Summary:        Static libmikmod library
118 Summary(fr.UTF-8):      Bibliothèques statiques libmikmod
119 Summary(pl.UTF-8):      Biblioteka statyczna libmikmod
120 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com libmikmod
121 Summary(ru.UTF-8):      Статические библиотеки для разработки libmikmod-приложений
122 Summary(uk.UTF-8):      Статичні бібліотеки для розробки програм, що користуються libmikmod
123 Group:          Development/Libraries
124 Requires:       %{name}-devel = %{version}-%{release}
125
126 %description static
127 Static libmikmod library.
128
129 %description static -l fr.UTF-8
130 Bibliothèques statiques libmikmod.
131
132 %description static -l pl.UTF-8
133 Biblioteka statyczna libmikmod.
134
135 %description static -l pt_BR.UTF-8
136 Bibliotecas estáticas para desenvolvimento com libmikmod.
137
138 %description static -l ru.UTF-8
139 Статические библиотеки для разработки libmikmod-приложений.
140
141 %description static -l uk.UTF-8
142 Статичні бібліотеки для розробки програм, що користуються libmikmod.
143
144 %prep
145 %setup -q
146 %patch0 -p0
147
148 %if %{without esd}
149 echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4
150 %endif
151
152 %build
153 %{__libtoolize}
154 %{__aclocal}
155 %{__autoheader}
156 %{__autoconf}
157 %{__automake}
158 # note: audiofile (af) driver is for DEC AudioFile server (libAF), not libaudiofile library;
159 # libgus was an ancient (Linux < 2.2) GUS support library ("ultra" package)
160 %configure \
161         %{!?with_alsa:--disable-alsa} \
162         %{!?with_esound:--disable-esd} \
163         %{?with_nas:--enable-nas} \
164         %{?with_openal:--enable-openal} \
165         --enable-oss \
166         %{!?with_pulseaudio:--disable-pulseaudio} \
167         %{?with_sdl:--enable-sdl}
168 %{__make}
169
170 %install
171 rm -rf $RPM_BUILD_ROOT
172 %{__make} install \
173         DESTDIR=$RPM_BUILD_ROOT
174
175 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
176
177 %clean
178 rm -rf $RPM_BUILD_ROOT
179
180 %post   -p /sbin/ldconfig
181 %postun -p /sbin/ldconfig
182
183 %post   devel -p /sbin/postshell
184 -/usr/sbin/fix-info-dir -c %{_infodir}
185
186 %postun devel -p /sbin/postshell
187 -/usr/sbin/fix-info-dir -c %{_infodir}
188
189 %files
190 %defattr(644,root,root,755)
191 %doc AUTHORS NEWS README TODO
192 %attr(755,root,root) %{_libdir}/libmikmod.so.*.*.*
193 %attr(755,root,root) %ghost %{_libdir}/libmikmod.so.3
194
195 %files devel
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_bindir}/libmikmod-config
198 %attr(755,root,root) %{_libdir}/libmikmod.so
199 %{_libdir}/libmikmod.la
200 %{_includedir}/mikmod.h
201 %{_pkgconfigdir}/libmikmod.pc
202 %{_aclocaldir}/libmikmod.m4
203 %{_mandir}/man1/libmikmod-config.1*
204 %{_infodir}/mikmod.info*
205
206 %files static
207 %defattr(644,root,root,755)
208 %{_libdir}/libmikmod.a
This page took 0.069014 seconds and 3 git commands to generate.