#
# Conditional build:
-%bcond_without alsa # disable ALSA support
-%bcond_with nas # enable NAS support
-%bcond_without esd # disable esound support
-%bcond_without hidden_visibility # pass '--fvisibility=hidden' & '--fvisibility-inlines-hidden' to g++
-#
+%bcond_without alsa # ALSA support
+%bcond_with nas # NAS support
+%bcond_with arts # aRts support (i.e. actually build this package)
+%bcond_without esd # EsounD support
+%bcond_without hidden_visibility # '--fvisibility=hidden' & '--fvisibility-inlines-hidden' g++ opts
+
%define _state stable
%define _kdever 3.5.10
Summary(pt_BR.UTF-8): Servidor de sons usado pelo KDE
Name: arts
Version: 1.5.10
-Release: 4
+Release: 15
Epoch: 13
License: LGPL
Group: Libraries
Patch2: %{name}-extension_loader.patch
Patch3: %{name}-gcc43.patch
Patch4: %{name}-fortify.patch
+Patch5: kde-am.patch
+Patch6: %{name}-ac.patch
URL: http://www.arts-project.org/
%{?with_alsa:BuildRequires: alsa-lib-devel}
BuildRequires: audiofile-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel >= 1.35.0
-BuildRequires: docbook-dtd41-sgml
-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
+%if "%{pld_release}" == "th"
+%{!?with_arts:BuildRequires: die, not meant for th}
+%endif
BuildRequires: libmad-devel
BuildRequires: libtool >= 2:1.5-2
BuildRequires: libuuid-devel
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%patch6 -p1
find . -type f -name '*.mcopclass' | xargs %{__sed} -i -e 's:\.la::'
DESTDIR=$RPM_BUILD_ROOT
# it seems to be only (lt_)dlopened, nothing links with it - so not needed
-rm -f $RPM_BUILD_ROOT%{_libdir}/libx11globalcomm.{la,so}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libx11globalcomm.{la,so}
# remove unwanted boost deps from .la
sed -i 's:-lboost_filesystem -lboost_regex::' $RPM_BUILD_ROOT%{_libdir}/*.la