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