-# _without_alsa - disable alsa
-
-%define _state stable
-%define _kdever 3.1
-
+#
+# _with_nas - enable NAS audio support
+# _without_alsa - disable ALSA support
+#
+%ifarch sparc sparcv9 sparc64
+%define _without_alsa 1
+%endif
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.3
+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
-%ifnarch sparc sparcv9 sparc64
+Source0: ftp://ftp.kde.org/pub/kde/stable/3.1.3/src/%{name}-%{version}.tar.bz2
+# Source0-md5: f04eb6ef387d63741561ab6623696322
+URL: http://www.kde.org/
%{!?_without_alsa:BuildRequires: alsa-lib-devel}
-%endif
BuildRequires: audiofile-devel
BuildRequires: glib2-devel >= 2.0.0
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
+BuildRequires: libstdc++-devel
# 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/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _htmldir /usr/share/doc/kde/HTML
-%define no_install_post_chrpath 1
-
%description
aRts sound server.
Summary: QT dependend part of aRts
Summary(pl): Czê¶æ aRts wymagaj±ca QT
Group: X11/Libraries
-Requires: %{name} >= %{version}
+Requires: %{name} >= %{epoch}:%{version}
Requires: qt >= 3.1
%description qt
Summary(pt_BR): Arquivos para desenvolvimento com o o aRts
Group: Development/Libraries
Requires: qt-devel >= 3.1
-Requires: %{name} >= %{version}
+Requires: %{name} >= %{epoch}:%{version}
+%{?_with_nas:Requires: nas-devel}
%description devel
Header files required to compile programs using arts.
%configure \
--%{?debug:en}%{!?debug:dis}able-debug \
+ --disable-rpath \
--enable-final \
--with-xinerama \
--with%{?_without_alsa:out}-alsa
+%if %{!?_with_nas:1}0
+# 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
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
-%post X11 -p /sbin/ldconfig
-%postun X11 -p /sbin/ldconfig
+%post X11 -p /sbin/ldconfig
+%postun X11 -p /sbin/ldconfig
-%post qt -p /sbin/ldconfig
-%postun qt -p /sbin/ldconfig
+%post qt -p /sbin/ldconfig
+%postun qt -p /sbin/ldconfig
-%post glib -p /sbin/ldconfig
-%postun glib -p /sbin/ldconfig
+%post glib -p /sbin/ldconfig
+%postun glib -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/artsshell
%attr(755,root,root) %{_bindir}/artswrapper
%attr(755,root,root) %{_bindir}/testdhandle
+%attr(755,root,root) %{_libdir}/lib[!gqx]*.so.*.*.*
%{_libdir}/lib[!gqx]*.la
-%attr(755,root,root) %{_libdir}/lib[!gqx]*.so.*
%{_libdir}/mcop
%files devel
%files X11
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*.*.*
%{_libdir}/libx11globalcomm.la
-%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*
%files glib
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmcop.so.*.*.*
%{_libdir}/libgmcop.la
-%attr(755,root,root) %{_libdir}/libgmcop.so.*
%files qt
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libqtmcop.so.*.*.*
%{_libdir}/libqtmcop.la
-%attr(755,root,root) %{_libdir}/libqtmcop.so.*