--- /dev/null
+%define _sub_ver rc3
+Summary: aRts sound server
+Summary(es): Sound server used by KDE
+Summary(pl): Serwer d¼wiêku
+Summary(pt_BR): Servidor de sons usado pelo KDE
+Name: kdelibs
+Version: 3.0
+Release: 0.%{_sub_ver}.2
+Epoch: 6
+License: LGPL
+Vendor: The KDE Team
+Group: Libraries
+%{!?_sub_ver: %define _ftpdir stable}
+%{?_sub_ver: %define _ftpdir unstable/kde-%{version}%{_sub_ver}}
+Source0: ftp://ftp.kde.org/pub/kde/%{_ftpdir}/src/%{name}-%{version}%{_sub_ver}.tar.bz2
+Requires: qt >= 3.0.2-0.20020222.5
+URL: http://www.kde.org/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
+%define _htmldir /usr/share/doc/kde/HTML
+
+%description
+aRts sound server.
+
+%description -l es
+Sound server and analog analyzer/synthetizer used by KDE.
+
+%description -l pl
+Serwer d¼wiêku aRts.
+
+%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
+como um sintetizador (ou fornecedor de filtros). Usado pelo KDE, entre
+outros.
+
+%package X11
+Summary: X11 dependent part of aRts
+Summary(pl): Czê¶æ aRts wymagaj±ca X11
+Group: X11/Libraries
+Group(de): X11/Libraries
+Group(es): X11/Bibliotecas
+Group(fr): X11/Librairies
+Group(pl): X11/Biblioteki
+Group(pt_BR): X11/Bibliotecas
+Group(ru): X11/âÉÂÌÉÏÔÅËÉ
+Group(uk): X11/â¦Â̦ÏÔÅËÉ
+
+%description X11
+X11 dependent part of aRts.
+
+%description X11 -l pl
+Czê¶æ aRts wymagaj±ca X11.
+
+%package -n qt
+Summary: QT dependend part of aRts
+Summary(pl): Czê¶æ aRts wymagaj±ca QT
+Group: X11/Libraries
+Group(de): X11/Libraries
+Group(es): X11/Bibliotecas
+Group(fr): X11/Librairies
+Group(pl): X11/Biblioteki
+Group(pt_BR): X11/Bibliotecas
+Group(ru): X11/âÉÂÌÉÏÔÅËÉ
+Group(uk): X11/â¦Â̦ÏÔÅËÉ
+
+%description qt
+QT dependend part of aRts.
+
+%description qt -l pl
+Czê¶æ aRts wymagaj±ca QT.
+
+%package -n devel
+Summary: Sound server - header files
+Summary(es): Header files for compiling aRtsd applications
+Summary(pl): Serwer d¼wiêku - pliki nag³ówkowe
+Summary(pt_BR): Arquivos para desenvolvimento com o o aRts
+Group: Development/Libraries
+Group(de): Entwicklung/Libraries
+Group(es): Desarrollo/Bibliotecas
+Group(fr): Development/Librairies
+Group(pl): Programowanie/Biblioteki
+Group(pt_BR): Desenvolvimento/Bibliotecas
+Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+
+%description devel
+Header files required to compile programs using arts.
+
+%description devel -l es
+This package includes the header files you will need to compile
+applications for aRtsd.
+
+%description devel -l pl
+Pliki nag³ówkowe niezbêdne do budowania aplikacji korzystaj±cych z
+arts.
+
+%description devel -l pt_BR
+Arquivos para desenvolvimento com o o aRts.
+
+%package message
+Summary: Program which can be used to display aRts daemon messages
+Summary(pl): Program do wy¶wietlania komunikatów daemona aRts
+Group: Development/Tools
+Group(de): Entwicklung/Werkzeuge
+Group(fr): Development/Outils
+Group(pl): Programowanie/Narzêdzia
+
+%description message
+This program can be given as -m option argument to aRts daemon. It
+will be called to display messages generated by daemon.
+
+%description message -l pl
+Ten program mo¿e byæ przekazany daemonowi aRts jako parametr opcji -m.
+Bêdzie on wywo³ywany w celu wy¶wietlenia komunikatów daemona.
+
+%prep
+%setup -q -n "%{name}-%{version}%{_sub_ver}"
+
+%build
+kde_htmldir="%{_htmldir}"; export kde_htmldir
+kde_icondir="%{_pixmapsdir}"; export kde_icondir
+
+%{__make} -f Makefile.cvs
+
+CFLAGS="%{rpmcflags}"
+CXXFLAGS="%{rpmcflags}"
+%configure \
+ --%{?debug:en}%{!?debug:dis}able-debug \
+ --enable-final \
+ --with-alsa \
+
+## 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,}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+#install -d $RPM_BUILD_ROOT%{_pixmapsdir}/{hicolor,locolor}/{16x16,22x22,32x32,48x48}/{actions,apps,devices,filesystems,mimetypes}
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+gzip arts/doc/{README,NEWS,TODO}
+
+%find_lang %{name} --with-kde --all-name
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f arts.lang
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/artscat
+%attr(755,root,root) %{_bindir}/artsd
+%attr(755,root,root) %{_bindir}/artsdsp
+%attr(755,root,root) %{_bindir}/artsplay
+%attr(755,root,root) %{_bindir}/artsrec
+%attr(755,root,root) %{_bindir}/artsshell
+%attr(755,root,root) %{_bindir}/artswrapper
+%attr(755,root,root) %{_libdir}/lib[am]*.so.*.*
+%attr(755,root,root) %{_libdir}/libs[!h]*.so.*.*
+%attr(755,root,root) %{_libdir}/lib[ams]*.la
+%attr(755,root,root) %{_libdir}/libkmedia*.so.*.*
+%attr(755,root,root) %{_libdir}/libkmedia*.la
+%{_libdir}/mcop
+
+%files X11
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*.*.*
+%attr(755,root,root) %{_libdir}/libx11globalcomm.la
+
+%files qt
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libqtmcop.so.*.*.*
+%attr(755,root,root) %{_libdir}/libqtmcop.la
+
+%files devel
+%defattr(644,root,root,755)
+%doc arts/doc/*.gz
+%attr(755,root,root) %{_bindir}/artsc-config
+%attr(755,root,root) %{_bindir}/mcopidl
+%{_libdir}/lib[mqsx]*.so
+%{_libdir}/libarts[!k]*.so
+%{_libdir}/libkmedia*.so
+%{_includedir}/arts
+%{_includedir}/artsc
+
+%files message
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/artsmessage