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