# Conditional build:
%bcond_without alsa # disable ALSA support
%bcond_with nas # enable NAS support
-%bcond_without esd # disable esound support
-#bcond_with cvs # use cvs sources instead of source0
+%bcond_without esd # disable esound support
+%bcond_without hidden_visibility # pass '--fvisibility=hidden' & '--fvisibility-inlines-hidden' to g++
+#
+%define _state stable
+%define _kdever 3.5.7
#
-
-%define _state unstable
-%define _ver 1.3.0
-%define _snap rc2
-
Summary: aRts sound server
-Summary(pl): Serwer d¼wiêku
-Summary(pt_BR): Servidor de sons usado pelo KDE
+Summary(pl.UTF-8): Serwer dźwięku
+Summary(pt_BR.UTF-8): Servidor de sons usado pelo KDE
Name: arts
-Version: %{_ver}
-Release: 0.%{_snap}.1
+Version: 1.5.7
+Release: 3
Epoch: 13
License: LGPL
Group: Libraries
-#Source0: http://download.kde.org/%{_state}/%{_kdever}/src/%{name}-%{_ver}.tar.bz2
-Source0: ftp://ftp.pld-linux.org/software/kde/%{name}-%{version}-%{_snap}.tar.bz2
-# Source0-md5: ca7710f1f18a0311e474c97f7037808e
-URL: http://www.kde.org/
+Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{_kdever}/src/%{name}-%{version}.tar.bz2
+# Source0-md5: 28ac10541e5d8daf9009f6af1f7857af
+#Patch100: %{name}-branch.diff
+Patch0: %{name}-libs.patch
+Patch1: kde-ac260-lt.patch
+Patch2: %{name}-extension_loader.patch
+URL: http://www.arts-project.org/
%{?with_alsa:BuildRequires: alsa-lib-devel}
BuildRequires: audiofile-devel
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: boost-filesystem-devel
+BuildRequires: boost-regex-devel
BuildRequires: docbook-dtd41-sgml
-BuildRequires: docbook-utils >= 0.6.13-3
+BuildRequires: docbook-utils >= 0.6.14
%{?with_esd:BuildRequires: esound-devel}
+%{?with_hidden_visibility:BuildRequires: gcc-c++ >= 5:4.1.0-0.20051206r108118.1}
BuildRequires: glib2-devel >= 2.0.0
+BuildRequires: jack-audio-connection-kit-devel
BuildRequires: libmad-devel
BuildRequires: libtool >= 2:1.5-2
BuildRequires: libvorbis-devel
%{?with_nas:BuildRequires: nas-devel}
BuildRequires: pkgconfig
-BuildRequires: qt-devel >= 6:3.2.1-4
-BuildRequires: unsermake >= 040805-1
+%{!?with_hidden_visibility:BuildRequires: qt-devel >= 6:3.2.1-4}
+%{?with_hidden_visibility:BuildRequires: qt-devel >= 6:3.3.5.051113-1}
Obsoletes: arts-glib
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
multiple sound applications to transparently share access to sound
hardware.
-%description -l pl
-Analog Real-Time Synthesizer (w skrócie aRts) to modularny system do
-obs³ugi d¼wiêku i muzyki na komputerze. Za pomoc± modu³ów u¿ytkownik
-mo¿e z powodzeniem budowaæ kompleksowe narzêdzia przetwarzania
-d¼wiêku. Modu³y umo¿liwiaj± generacjê kstza³tu fali, filtrowanie,
-efekty audio, miksowanie oraz odtwarzanie d¼wiêku cyfrowego w ró¿nych
-formatach. Serwer d¼wiêku artsd umo¿liwia równie¿ jednoczesne
-odtwarzanie d¼wiêku z wielu ¼róde³.
-
-%description -l pt_BR
-O aRts é um sintetizador analógico em tempo real que é completamente
-modular. Você pode criar sons e músicas (síntese em tempo real de
-midi) usando pequenos módulos como oscilador para criar waveforms,
-vários filtros, mixers, faders, etc. Você pode configurar tudo através
-de uma interface no KDE. O Servidor aRts é controlado via CORBA. Este
-design foi escolhido para permitir que outras aplicações usem o aRts
+%description -l pl.UTF-8
+Analog Real-Time Synthesizer (w skrócie aRts) to modularny system do
+obsługi dźwięku i muzyki na komputerze. Za pomocą modułów użytkownik
+może z powodzeniem budować kompleksowe narzędzia przetwarzania
+dźwięku. Moduły umożliwiają generację kształtu fali, filtrowanie,
+efekty audio, miksowanie oraz odtwarzanie dźwięku cyfrowego w różnych
+formatach. Serwer dźwięku artsd umożliwia również jednoczesne
+odtwarzanie dźwięku z wielu źródeł.
+
+%description -l pt_BR.UTF-8
+O aRts é um sintetizador analógico em tempo real que é completamente
+modular. Você pode criar sons e músicas (síntese em tempo real de
+midi) usando pequenos módulos como oscilador para criar waveforms,
+vários filtros, mixers, faders, etc. Você pode configurar tudo através
+de uma interface no KDE. O Servidor aRts é controlado via CORBA. Este
+design foi escolhido para permitir que outras aplicações usem o aRts
como um sintetizador (ou fornecedor de filtros). Usado pelo KDE, entre
outros.
%package devel
Summary: Sound server - header files
-Summary(pl): Serwer d¼wiêku - pliki nag³ówkowe
-Summary(pt_BR): Arquivos para desenvolvimento com o o aRts
+Summary(pl.UTF-8): Serwer dźwięku - pliki nagłówkowe
+Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com o o aRts
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
# not necessary for all libs (e.g. mcop), but propagated by artsflow
Requires: audiofile-devel
Requires: esound-devel
Requires: glib2-devel >= 2.0.0
+Requires: jack-audio-connection-kit-devel
Requires: libmad-devel
Requires: libvorbis-devel
%{?with_nas:Requires: nas-devel}
%description devel
Header files required to compile programs using arts.
-%description devel -l pl
-Pliki nag³ówkowe niezbêdne do budowania aplikacji korzystaj±cych z
+%description devel -l pl.UTF-8
+Pliki nagłówkowe niezbędne do budowania aplikacji korzystających z
arts.
-%description devel -l pt_BR
+%description devel -l pt_BR.UTF-8
Arquivos para desenvolvimento com o o aRts.
-# separate from arts-devel because they are mostly independent and
-# have very # different deps there is no artsc base - it would be
-# small and would require arts - so there is no reason to separate
+# separate from arts-devel because they are mostly independent and have very
+# different deps
+# there is no artsc base - it would be small and would require arts - so
+# there is no reason to separate
%package -n artsc-devel
Summary: Development files for artsc libraries
-Summary(pl): Pliki programistyczne bibliotek artsc
+Summary(pl.UTF-8): Pliki programistyczne bibliotek artsc
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: glib2-devel >= 2.0.0
Development files for artsc libraries (C interface to aRts sound
system).
-%description -n artsc-devel -l pl
+%description -n artsc-devel -l pl.UTF-8
Pliki programistyczne bibliotek artsc (interfejsu w C do systemu
-d¼wiêku aRts).
+dźwięku aRts).
%package X11
Summary: X11 dependent part of aRts
-Summary(pl): Czê¶æ aRts wymagaj±ca X11
+Summary(pl.UTF-8): Część aRts wymagająca X11
Group: X11/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
%description X11
X11 dependent part of aRts (x11globalcomm module).
-%description X11 -l pl
-Czê¶æ aRts wymagaj±ca X11 (modu³ x11globalcomm).
+%description X11 -l pl.UTF-8
+Część aRts wymagająca X11 (moduł x11globalcomm).
%package qt
-Summary: QT dependend part of aRts
-Summary(pl): Czê¶æ aRts wymagaj±ca QT
+Summary: Qt dependend part of aRts
+Summary(pl.UTF-8): Część aRts wymagająca Qt
Group: X11/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: qt >= 6:3.2.1-4
%description qt
-QT dependend part of aRts (qtmcop library).
+Qt dependend part of aRts (qtmcop library).
-%description qt -l pl
-Czê¶æ aRts wymagaj±ca QT (biblioteka qtmcop).
+%description qt -l pl.UTF-8
+Część aRts wymagająca Qt (biblioteka qtmcop).
%package qt-devel
Summary: Development files for qtmcop library
-Summary(pl): Pliki programistyczne dla biblioteki qtmcop
+Summary(pl.UTF-8): Pliki programistyczne dla biblioteki qtmcop
Group: X11/Development/Libraries
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
Requires: %{name}-qt = %{epoch}:%{version}-%{release}
%description qt-devel
Development files for qtmcop library.
-%description qt-devel -l pl
+%description qt-devel -l pl.UTF-8
Pliki programistyczne dla biblioteki qtmcop.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
+#%patch100 -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
-%build
-cp /usr/share/automake/config.sub admin
+find . -type f -name '*.mcopclass' | xargs %{__sed} -i -e 's:\.la::'
-export UNSERMAKE=/usr/share/unsermake/unsermake
+%build
+cp -f /usr/share/automake/config.sub admin
%{__make} -f admin/Makefile.common cvs
%configure \
%{!?with_nas:ac_cv_header_audio_audiolib_h=no} \
- --%{?debug:en}%{!?debug:dis}able-debug \
- --disable-rpath \
- --enable-final \
+%if "%{_lib}" == "lib64"
+ --enable-libsuffix=64 \
+%endif
+ --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
+ %{!?debug:--disable-rpath} \
+ --disable-final \
+ %{?with_hidden_visibility:--enable-gcc-hidden-visibility} \
--with-qt-libraries=%{_libdir} \
--with%{!?with_alsa:out}-alsa
-%{__make}
+%{__make} \
+ CXXLD=%{_host_cpu}-%{_vendor}-%{_os}-g++ \
+ CCLD=%{_host_cpu}-%{_vendor}-%{_os}-gcc
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-# Debian manpages
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-cd debian/man
-for f in *.sgml ; do
- base="$(basename $f .sgml)"
- upper="$(echo ${base} | tr a-z A-Z)"
- db2man $f
- install ${upper}.1 $RPM_BUILD_ROOT%{_mandir}/man1/${base}.1
-done
+# remove unwanted boost deps from .la
+sed -i 's:-lboost_filesystem -lboost_regex::' $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libmcop.so.*.*.*
%attr(755,root,root) %{_libdir}/libmcop_mt.so.*.*.*
%attr(755,root,root) %{_libdir}/libsoundserver_idl.so.*.*.*
-# lt_dlopened modules (*.la needed)
%attr(755,root,root) %{_libdir}/libartscbackend.so.*.*.*
-%{_libdir}/libartscbackend.la
%attr(755,root,root) %{_libdir}/libartsdsp.so.*.*.*
-%{_libdir}/libartsdsp.la
%attr(755,root,root) %{_libdir}/libartsdsp_st.so.*.*.*
-%{_libdir}/libartsdsp_st.la
%attr(755,root,root) %{_libdir}/libartsgslplayobject.so.*.*.*
-%{_libdir}/libartsgslplayobject.la
%attr(755,root,root) %{_libdir}/libartswavplayobject.so.*.*.*
-%{_libdir}/libartswavplayobject.la
#
%{_libdir}/mcop
-%{_mandir}/man1/artscat.1*
-%{_mandir}/man1/artsd.1*
-%{_mandir}/man1/artsdsp.1*
-%{_mandir}/man1/artsplay.1*
-%{_mandir}/man1/artsrec.1*
-%{_mandir}/man1/artsshell.1*
-%{_mandir}/man1/artswrapper.1*
+#%{_mandir}/man1/artscat.1*
+#%{_mandir}/man1/artsd.1*
+#%{_mandir}/man1/artsdsp.1*
+#%{_mandir}/man1/artsplay.1*
+#%{_mandir}/man1/artsrec.1*
+#%{_mandir}/man1/artsshell.1*
+#%{_mandir}/man1/artswrapper.1*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/mcopidl
+%{_includedir}/arts
+%exclude %{_includedir}/arts/qiomanager.h
+%{_libdir}/libartsflow.la
%attr(755,root,root) %{_libdir}/libartsflow.so
+%{_libdir}/libartsflow_idl.la
%attr(755,root,root) %{_libdir}/libartsflow_idl.so
+%{_libdir}/libartsgslplayobject.la
%attr(755,root,root) %{_libdir}/libartsgslplayobject.so
+%{_libdir}/libartswavplayobject.la
%attr(755,root,root) %{_libdir}/libartswavplayobject.so
-%attr(755,root,root) %{_libdir}/libgmcop.so
-%attr(755,root,root) %{_libdir}/libkmedia2.so
-%attr(755,root,root) %{_libdir}/libkmedia2_idl.so
-%attr(755,root,root) %{_libdir}/libmcop.so
-%attr(755,root,root) %{_libdir}/libmcop_mt.so
-%attr(755,root,root) %{_libdir}/libsoundserver_idl.so
-# it seems to be only (lt_)dlopened, nothing links with it - so not needed
-# %attr(755,root,root) %{_libdir}/libx11globalcomm.so
-# shared libraries
-%{_libdir}/libartsflow.la
-%{_libdir}/libartsflow_idl.la
%{_libdir}/libgmcop.la
+%attr(755,root,root) %{_libdir}/libgmcop.so
%{_libdir}/libkmedia2.la
+%attr(755,root,root) %{_libdir}/libkmedia2.so
%{_libdir}/libkmedia2_idl.la
+%attr(755,root,root) %{_libdir}/libkmedia2_idl.so
%{_libdir}/libmcop.la
+%attr(755,root,root) %{_libdir}/libmcop.so
%{_libdir}/libmcop_mt.la
+%attr(755,root,root) %{_libdir}/libmcop_mt.so
%{_libdir}/libsoundserver_idl.la
-#
-%{_includedir}/arts
-%exclude %{_includedir}/arts/qiomanager.h
-%{_mandir}/man1/mcopidl.1*
+%attr(755,root,root) %{_libdir}/libsoundserver_idl.so
+#%{_mandir}/man1/mcopidl.1*
%files -n artsc-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/artsc-config
+%{_includedir}/artsc
+%{_libdir}/libartsc.la
%attr(755,root,root) %{_libdir}/libartsc.so
+%{_libdir}/libartscbackend.la
%attr(755,root,root) %{_libdir}/libartscbackend.so
+%{_libdir}/libartsdsp.la
%attr(755,root,root) %{_libdir}/libartsdsp.so
+%{_libdir}/libartsdsp_st.la
%attr(755,root,root) %{_libdir}/libartsdsp_st.so
-%{_libdir}/libartsc.la
-%{_includedir}/artsc
-%{_mandir}/man1/artsc-config.1*
+#%{_mandir}/man1/artsc-config.1*
%files X11
%defattr(644,root,root,755)
-# lt_dlopened module (.la needed)
%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*.*.*
-%{_libdir}/libx11globalcomm.la
%files qt
%defattr(644,root,root,755)
%files qt-devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libqtmcop.so
-%{_libdir}/libqtmcop.la
%{_includedir}/arts/qiomanager.h
+%{_libdir}/libqtmcop.la
+%attr(755,root,root) %{_libdir}/libqtmcop.so