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