]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without alsa # disable ALSA support | |
4 | %bcond_with nas # enable NAS support | |
5 | %bcond_without esd # disable esound support | |
6 | %bcond_without hidden_visibility # pass '--fvisibility=hidden' & '--fvisibility-inlines-hidden' to g++ | |
7 | # | |
8 | %define _state stable | |
9 | %define _kdever 3.5.10 | |
10 | ||
11 | Summary: aRts sound server | |
12 | Summary(pl.UTF-8): Serwer dźwięku | |
13 | Summary(pt_BR.UTF-8): Servidor de sons usado pelo KDE | |
14 | Name: arts | |
15 | Version: 1.5.10 | |
16 | Release: 2 | |
17 | Epoch: 13 | |
18 | License: LGPL | |
19 | Group: Libraries | |
20 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{_kdever}/src/%{name}-%{version}.tar.bz2 | |
21 | # Source0-md5: 6da172aab2a4a44929b5fdfc30fa3efc | |
22 | #Patch100: %{name}-branch.diff | |
23 | Patch0: %{name}-libs.patch | |
24 | Patch1: kde-ac260-lt.patch | |
25 | Patch2: %{name}-extension_loader.patch | |
26 | Patch3: %{name}-gcc43.patch | |
27 | Patch4: %{name}-fortify.patch | |
28 | URL: http://www.arts-project.org/ | |
29 | %{?with_alsa:BuildRequires: alsa-lib-devel} | |
30 | BuildRequires: audiofile-devel | |
31 | BuildRequires: autoconf | |
32 | BuildRequires: automake | |
33 | BuildRequires: boost-devel >= 1.35.0 | |
34 | BuildRequires: docbook-dtd41-sgml | |
35 | BuildRequires: docbook-utils >= 0.6.14 | |
36 | %{?with_esd:BuildRequires: esound-devel} | |
37 | %{?with_hidden_visibility:BuildRequires: gcc-c++ >= 5:4.1.0-0.20051206r108118.1} | |
38 | BuildRequires: glib2-devel >= 2.0.0 | |
39 | BuildRequires: jack-audio-connection-kit-devel | |
40 | BuildRequires: libmad-devel | |
41 | BuildRequires: libtool >= 2:1.5-2 | |
42 | BuildRequires: libuuid-devel | |
43 | BuildRequires: libvorbis-devel | |
44 | %{?with_nas:BuildRequires: nas-devel} | |
45 | BuildRequires: pkgconfig | |
46 | %{!?with_hidden_visibility:BuildRequires: qt-devel >= 6:3.2.1-4} | |
47 | %{?with_hidden_visibility:BuildRequires: qt-devel >= 6:3.3.5.051113-1} | |
48 | Obsoletes: arts-glib | |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
50 | ||
51 | %description | |
52 | The Analog Real-Time Synthesizer, or aRts, is a modular system for | |
53 | synthesizing sound and music on a digital computer. Using small | |
54 | building blocks called modules, the user can easily build complex | |
55 | audio processing tools. Modules typically provide functions such as | |
56 | sound waveform generators, filters, audio effects, mixing, and | |
57 | playback of digital audio in different file formats. The artsd sound | |
58 | server mixes audio from several sources in real time, allowing | |
59 | multiple sound applications to transparently share access to sound | |
60 | hardware. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | Analog Real-Time Synthesizer (w skrócie aRts) to modularny system do | |
64 | obsługi dźwięku i muzyki na komputerze. Za pomocą modułów użytkownik | |
65 | może z powodzeniem budować kompleksowe narzędzia przetwarzania | |
66 | dźwięku. Moduły umożliwiają generację kształtu fali, filtrowanie, | |
67 | efekty audio, miksowanie oraz odtwarzanie dźwięku cyfrowego w różnych | |
68 | formatach. Serwer dźwięku artsd umożliwia również jednoczesne | |
69 | odtwarzanie dźwięku z wielu źródeł. | |
70 | ||
71 | %description -l pt_BR.UTF-8 | |
72 | O aRts é um sintetizador analógico em tempo real que é completamente | |
73 | modular. Você pode criar sons e músicas (síntese em tempo real de | |
74 | midi) usando pequenos módulos como oscilador para criar waveforms, | |
75 | vários filtros, mixers, faders, etc. Você pode configurar tudo através | |
76 | de uma interface no KDE. O Servidor aRts é controlado via CORBA. Este | |
77 | design foi escolhido para permitir que outras aplicações usem o aRts | |
78 | como um sintetizador (ou fornecedor de filtros). Usado pelo KDE, entre | |
79 | outros. | |
80 | ||
81 | %package devel | |
82 | Summary: Sound server - header files | |
83 | Summary(pl.UTF-8): Serwer dźwięku - pliki nagłówkowe | |
84 | Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com o o aRts | |
85 | Group: Development/Libraries | |
86 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
87 | # not necessary for all libs (e.g. mcop), but propagated by artsflow | |
88 | %{?with_alsa:Requires: alsa-lib-devel} | |
89 | Requires: audiofile-devel | |
90 | Requires: esound-devel | |
91 | Requires: glib2-devel >= 2.0.0 | |
92 | Requires: jack-audio-connection-kit-devel | |
93 | Requires: libmad-devel | |
94 | Requires: libvorbis-devel | |
95 | %{?with_nas:Requires: nas-devel} | |
96 | ||
97 | %description devel | |
98 | Header files required to compile programs using arts. | |
99 | ||
100 | %description devel -l pl.UTF-8 | |
101 | Pliki nagłówkowe niezbędne do budowania aplikacji korzystających z | |
102 | arts. | |
103 | ||
104 | %description devel -l pt_BR.UTF-8 | |
105 | Arquivos para desenvolvimento com o o aRts. | |
106 | ||
107 | # separate from arts-devel because they are mostly independent and have very | |
108 | # different deps | |
109 | # there is no artsc base - it would be small and would require arts - so | |
110 | # there is no reason to separate | |
111 | %package -n artsc-devel | |
112 | Summary: Development files for artsc libraries | |
113 | Summary(pl.UTF-8): Pliki programistyczne bibliotek artsc | |
114 | Group: Development/Libraries | |
115 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
116 | Requires: glib2-devel >= 2.0.0 | |
117 | Conflicts: arts-devel < 12:1.2.0.031126-2 | |
118 | ||
119 | %description -n artsc-devel | |
120 | Development files for artsc libraries (C interface to aRts sound | |
121 | system). | |
122 | ||
123 | %description -n artsc-devel -l pl.UTF-8 | |
124 | Pliki programistyczne bibliotek artsc (interfejsu w C do systemu | |
125 | dźwięku aRts). | |
126 | ||
127 | %package X11 | |
128 | Summary: X11 dependent part of aRts | |
129 | Summary(pl.UTF-8): Część aRts wymagająca X11 | |
130 | Group: X11/Libraries | |
131 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
132 | ||
133 | %description X11 | |
134 | X11 dependent part of aRts (x11globalcomm module). | |
135 | ||
136 | %description X11 -l pl.UTF-8 | |
137 | Część aRts wymagająca X11 (moduł x11globalcomm). | |
138 | ||
139 | %package qt | |
140 | Summary: Qt dependend part of aRts | |
141 | Summary(pl.UTF-8): Część aRts wymagająca Qt | |
142 | Group: X11/Libraries | |
143 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
144 | Requires: qt >= 6:3.2.1-4 | |
145 | ||
146 | %description qt | |
147 | Qt dependend part of aRts (qtmcop library). | |
148 | ||
149 | %description qt -l pl.UTF-8 | |
150 | Część aRts wymagająca Qt (biblioteka qtmcop). | |
151 | ||
152 | %package qt-devel | |
153 | Summary: Development files for qtmcop library | |
154 | Summary(pl.UTF-8): Pliki programistyczne dla biblioteki qtmcop | |
155 | Group: X11/Development/Libraries | |
156 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
157 | Requires: %{name}-qt = %{epoch}:%{version}-%{release} | |
158 | Requires: qt-devel >= 6:3.2.1-4 | |
159 | ||
160 | %description qt-devel | |
161 | Development files for qtmcop library. | |
162 | ||
163 | %description qt-devel -l pl.UTF-8 | |
164 | Pliki programistyczne dla biblioteki qtmcop. | |
165 | ||
166 | %prep | |
167 | %setup -q | |
168 | #%patch100 -p1 | |
169 | %patch0 -p1 | |
170 | %patch1 -p1 | |
171 | %patch2 -p1 | |
172 | %patch3 -p1 | |
173 | %patch4 -p1 | |
174 | ||
175 | find . -type f -name '*.mcopclass' | xargs %{__sed} -i -e 's:\.la::' | |
176 | ||
177 | %build | |
178 | cp -f /usr/share/automake/config.sub admin | |
179 | ||
180 | %{__make} -f admin/Makefile.common cvs | |
181 | ||
182 | %configure \ | |
183 | %{!?with_nas:ac_cv_header_audio_audiolib_h=no} \ | |
184 | %if "%{_lib}" == "lib64" | |
185 | --enable-libsuffix=64 \ | |
186 | %endif | |
187 | --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \ | |
188 | %{!?debug:--disable-rpath} \ | |
189 | --disable-final \ | |
190 | %{?with_hidden_visibility:--enable-gcc-hidden-visibility} \ | |
191 | --with-qt-libraries=%{_libdir} \ | |
192 | --with%{!?with_alsa:out}-alsa | |
193 | ||
194 | %{__make} \ | |
195 | CXXLD=%{_host_cpu}-%{_vendor}-%{_os}-g++ \ | |
196 | CCLD=%{_host_cpu}-%{_vendor}-%{_os}-gcc | |
197 | ||
198 | %install | |
199 | rm -rf $RPM_BUILD_ROOT | |
200 | ||
201 | %{__make} install \ | |
202 | DESTDIR=$RPM_BUILD_ROOT | |
203 | ||
204 | # it seems to be only (lt_)dlopened, nothing links with it - so not needed | |
205 | rm -f $RPM_BUILD_ROOT%{_libdir}/libx11globalcomm.{la,so} | |
206 | ||
207 | # remove unwanted boost deps from .la | |
208 | sed -i 's:-lboost_filesystem -lboost_regex::' $RPM_BUILD_ROOT%{_libdir}/*.la | |
209 | ||
210 | %clean | |
211 | rm -rf $RPM_BUILD_ROOT | |
212 | ||
213 | %post -p /sbin/ldconfig | |
214 | %postun -p /sbin/ldconfig | |
215 | ||
216 | %post X11 -p /sbin/ldconfig | |
217 | %postun X11 -p /sbin/ldconfig | |
218 | ||
219 | %post qt -p /sbin/ldconfig | |
220 | %postun qt -p /sbin/ldconfig | |
221 | ||
222 | %files | |
223 | %defattr(644,root,root,755) | |
224 | %attr(755,root,root) %{_bindir}/artscat | |
225 | %attr(755,root,root) %{_bindir}/artsd | |
226 | %attr(755,root,root) %{_bindir}/artsdsp | |
227 | %attr(755,root,root) %{_bindir}/artsplay | |
228 | %attr(755,root,root) %{_bindir}/artsrec | |
229 | %attr(755,root,root) %{_bindir}/artsshell | |
230 | %attr(755,root,root) %{_bindir}/artswrapper | |
231 | # shared libraries | |
232 | %attr(755,root,root) %{_libdir}/libartsc.so.*.*.* | |
233 | %attr(755,root,root) %ghost %{_libdir}/libartsc.so.0 | |
234 | %attr(755,root,root) %{_libdir}/libartsflow.so.*.*.* | |
235 | %attr(755,root,root) %ghost %{_libdir}/libartsflow.so.1 | |
236 | %attr(755,root,root) %{_libdir}/libartsflow_idl.so.*.*.* | |
237 | %attr(755,root,root) %ghost %{_libdir}/libartsflow_idl.so.1 | |
238 | %attr(755,root,root) %{_libdir}/libgmcop.so.*.*.* | |
239 | %attr(755,root,root) %ghost %{_libdir}/libgmcop.so.1 | |
240 | %attr(755,root,root) %{_libdir}/libkmedia2.so.*.*.* | |
241 | %attr(755,root,root) %ghost %{_libdir}/libkmedia2.so.1 | |
242 | %attr(755,root,root) %{_libdir}/libkmedia2_idl.so.*.*.* | |
243 | %attr(755,root,root) %ghost %{_libdir}/libkmedia2_idl.so.1 | |
244 | %attr(755,root,root) %{_libdir}/libmcop.so.*.*.* | |
245 | %attr(755,root,root) %ghost %{_libdir}/libmcop.so.1 | |
246 | %attr(755,root,root) %{_libdir}/libmcop_mt.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libmcop_mt.so.1 | |
248 | %attr(755,root,root) %{_libdir}/libsoundserver_idl.so.*.*.* | |
249 | %attr(755,root,root) %ghost %{_libdir}/libsoundserver_idl.so.1 | |
250 | %attr(755,root,root) %{_libdir}/libartscbackend.so.*.*.* | |
251 | %attr(755,root,root) %ghost %{_libdir}/libartscbackend.so.0 | |
252 | %attr(755,root,root) %{_libdir}/libartsdsp.so.*.*.* | |
253 | %attr(755,root,root) %ghost %{_libdir}/libartsdsp.so.0 | |
254 | %attr(755,root,root) %{_libdir}/libartsdsp_st.so.*.*.* | |
255 | %attr(755,root,root) %ghost %{_libdir}/libartsdsp_st.so.0 | |
256 | %attr(755,root,root) %{_libdir}/libartsgslplayobject.so.*.*.* | |
257 | %attr(755,root,root) %ghost %{_libdir}/libartsgslplayobject.so.0 | |
258 | %attr(755,root,root) %{_libdir}/libartswavplayobject.so.*.*.* | |
259 | %attr(755,root,root) %ghost %{_libdir}/libartswavplayobject.so.0 | |
260 | # | |
261 | %{_libdir}/mcop | |
262 | #%{_mandir}/man1/artscat.1* | |
263 | #%{_mandir}/man1/artsd.1* | |
264 | #%{_mandir}/man1/artsdsp.1* | |
265 | #%{_mandir}/man1/artsplay.1* | |
266 | #%{_mandir}/man1/artsrec.1* | |
267 | #%{_mandir}/man1/artsshell.1* | |
268 | #%{_mandir}/man1/artswrapper.1* | |
269 | ||
270 | %files devel | |
271 | %defattr(644,root,root,755) | |
272 | %attr(755,root,root) %{_bindir}/mcopidl | |
273 | %{_includedir}/arts | |
274 | %exclude %{_includedir}/arts/qiomanager.h | |
275 | %{_libdir}/libartsflow.la | |
276 | %attr(755,root,root) %{_libdir}/libartsflow.so | |
277 | %{_libdir}/libartsflow_idl.la | |
278 | %attr(755,root,root) %{_libdir}/libartsflow_idl.so | |
279 | %{_libdir}/libartsgslplayobject.la | |
280 | %attr(755,root,root) %{_libdir}/libartsgslplayobject.so | |
281 | %{_libdir}/libartswavplayobject.la | |
282 | %attr(755,root,root) %{_libdir}/libartswavplayobject.so | |
283 | %{_libdir}/libgmcop.la | |
284 | %attr(755,root,root) %{_libdir}/libgmcop.so | |
285 | %{_libdir}/libkmedia2.la | |
286 | %attr(755,root,root) %{_libdir}/libkmedia2.so | |
287 | %{_libdir}/libkmedia2_idl.la | |
288 | %attr(755,root,root) %{_libdir}/libkmedia2_idl.so | |
289 | %{_libdir}/libmcop.la | |
290 | %attr(755,root,root) %{_libdir}/libmcop.so | |
291 | %{_libdir}/libmcop_mt.la | |
292 | %attr(755,root,root) %{_libdir}/libmcop_mt.so | |
293 | %{_libdir}/libsoundserver_idl.la | |
294 | %attr(755,root,root) %{_libdir}/libsoundserver_idl.so | |
295 | #%{_mandir}/man1/mcopidl.1* | |
296 | ||
297 | %files -n artsc-devel | |
298 | %defattr(644,root,root,755) | |
299 | %attr(755,root,root) %{_bindir}/artsc-config | |
300 | %{_includedir}/artsc | |
301 | %{_libdir}/libartsc.la | |
302 | %attr(755,root,root) %{_libdir}/libartsc.so | |
303 | %{_libdir}/libartscbackend.la | |
304 | %attr(755,root,root) %{_libdir}/libartscbackend.so | |
305 | %{_libdir}/libartsdsp.la | |
306 | %attr(755,root,root) %{_libdir}/libartsdsp.so | |
307 | %{_libdir}/libartsdsp_st.la | |
308 | %attr(755,root,root) %{_libdir}/libartsdsp_st.so | |
309 | #%{_mandir}/man1/artsc-config.1* | |
310 | ||
311 | %files X11 | |
312 | %defattr(644,root,root,755) | |
313 | %attr(755,root,root) %{_libdir}/libx11globalcomm.so.*.*.* | |
314 | %attr(755,root,root) %ghost %{_libdir}/libx11globalcomm.so.1 | |
315 | ||
316 | %files qt | |
317 | %defattr(644,root,root,755) | |
318 | # shared library | |
319 | %attr(755,root,root) %{_libdir}/libqtmcop.so.*.*.* | |
320 | %attr(755,root,root) %ghost %{_libdir}/libqtmcop.so.1 | |
321 | ||
322 | %files qt-devel | |
323 | %defattr(644,root,root,755) | |
324 | %{_includedir}/arts/qiomanager.h | |
325 | %{_libdir}/libqtmcop.la | |
326 | %attr(755,root,root) %{_libdir}/libqtmcop.so |