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