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