-# _without_alsa - disable alsa
-
-%define _state stable
-%define _kdever 3.1
-
+#
+# _with_nas - enable NAS audio support
+# _without_alsa - disable ALSA support
+#
Summary: aRts sound server
Summary(pl): Serwer d¼wiêku
Summary(pt_BR): Servidor de sons usado pelo KDE
Name: arts
-Version: 1.1
-Release: 5
+Version: 1.1.2
+Release: 1
Epoch: 12
License: LGPL
Vendor: The KDE Team
Group: Libraries
-Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{_kdever}/src/%{name}-%{version}.tar.bz2
+Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
%ifnarch sparc sparcv9 sparc64
%{!?_without_alsa:BuildRequires: alsa-lib-devel}
%endif
# not needed, only ./configure check for this
#BuildRequires: libvorbis-devel
#BuildRequires: mad-devel
-BuildRequires: nas-devel
+%{?_with_nas:BuildRequires: nas-devel}
BuildRequires: pkgconfig
BuildRequires: qt-devel >= 3.1
URL: http://www.kde.org/
%configure \
--%{?debug:en}%{!?debug:dis}able-debug \
+ --disable-rpath \
--enable-final \
--with-xinerama \
--with%{?_without_alsa:out}-alsa
+%if %{?_with_nas:0}1
+# Cannot patch configure.in because it does not rebuild correctly on ac25
+sed -e 's@#define HAVE_LIBAUDIONAS 1@/* #undef HAVE_LIBAUDIONAS */@' \
+ < config.h \
+ > config.h.tmp
+mv -f config.h{.tmp,}
+%endif
%{__make}
%install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%post X11 -p /sbin/ldconfig
+%post X11 -p /sbin/ldconfig
%postun X11 -p /sbin/ldconfig
-%post qt -p /sbin/ldconfig
+%post qt -p /sbin/ldconfig
%postun qt -p /sbin/ldconfig
-%post glib -p /sbin/ldconfig
+%post glib -p /sbin/ldconfig
%postun glib -p /sbin/ldconfig
%clean
%attr(755,root,root) %{_bindir}/artswrapper
%attr(755,root,root) %{_bindir}/testdhandle
%{_libdir}/lib[!gqx]*.la
-%attr(755,root,root) %{_libdir}/lib[!gqx]*.so.*
+%attr(755,root,root) %{_libdir}/lib[!gqx]*.so.*.*.*
%{_libdir}/mcop
%files devel
%files X11
%defattr(644,root,root,755)
%{_libdir}/libx11globalcomm.la
-%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*
+%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*.*.*
%files glib
%defattr(644,root,root,755)
%{_libdir}/libgmcop.la
-%attr(755,root,root) %{_libdir}/libgmcop.so.*
+%attr(755,root,root) %{_libdir}/libgmcop.so.*.*.*
%files qt
%defattr(644,root,root,755)
%{_libdir}/libqtmcop.la
-%attr(755,root,root) %{_libdir}/libqtmcop.so.*
+%attr(755,root,root) %{_libdir}/libqtmcop.so.*.*.*