-%define _sub_ver rc3
+#
+# _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(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
+Name: arts
+Version: 1.1.3
+Release: 1
+Epoch: 12
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
+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}
+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
+%{?_with_nas:BuildRequires: nas-devel}
+BuildRequires: pkgconfig
+BuildRequires: qt-devel >= 3.1
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.
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
+%package 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/â¦Â̦ÏÔÅËÉ
+Requires: %{name} >= %{epoch}:%{version}
+Requires: qt >= 3.1
%description qt
QT dependend part of aRts.
%description qt -l pl
Czê¶æ aRts wymagaj±ca QT.
-%package -n devel
+%package 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): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+Requires: qt-devel >= 3.1
+Requires: %{name} >= %{epoch}:%{version}
+%{?_with_nas:Requires: nas-devel}
%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
+%package glib
+Summary: GLib dependend part of aRts
+Summary(pl): Czê¶æ aRts wymagaj±ca GLib
+Group: X11/Libraries
+Requires: glib >= 1.2.6
-%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 glib
+GLib dependend part of aRts.
-%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.
+%description glib -l pl
+Czê¶æ aRts wymagaj±ca GLib.
%prep
-%setup -q -n "%{name}-%{version}%{_sub_ver}"
+%setup -q
%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 \
+ --disable-rpath \
--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,}
-
+ --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
-#install -d $RPM_BUILD_ROOT%{_pixmapsdir}/{hicolor,locolor}/{16x16,22x22,32x32,48x48}/{actions,apps,devices,filesystems,mimetypes}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-gzip arts/doc/{README,NEWS,TODO}
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
-%find_lang %{name} --with-kde --all-name
+%post X11 -p /sbin/ldconfig
+%postun X11 -p /sbin/ldconfig
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post qt -p /sbin/ldconfig
+%postun qt -p /sbin/ldconfig
+
+%post glib -p /sbin/ldconfig
+%postun glib -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f arts.lang
+%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/artscat
%attr(755,root,root) %{_bindir}/artsd
%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
+%attr(755,root,root) %{_bindir}/testdhandle
+%attr(755,root,root) %{_libdir}/lib[!gqx]*.so.*.*.*
+%{_libdir}/lib[!gqx]*.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
+%{_libdir}/*.so
%{_includedir}/arts
%{_includedir}/artsc
-%files message
+%files X11
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/artsmessage
+%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*.*.*
+%{_libdir}/libx11globalcomm.la
+
+%files glib
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmcop.so.*.*.*
+%{_libdir}/libgmcop.la
+
+%files qt
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libqtmcop.so.*.*.*
+%{_libdir}/libqtmcop.la