-%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
+Name: arts
+%define _kdever 3.0.5a
+Version: 1.0.5a
+Release: 0.1
+Epoch: 11
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/%{_kdever}/src/%{name}-%{version}.tar.bz2
+%ifnarch sparc sparcv9 sparc64
+BuildRequires: alsa-lib-devel
+%endif
+BuildRequires: audiofile-devel
+BuildRequires: glib2-devel >= 2.0.0
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+# not needed, only ./configure check for this
+#BuildRequires: libvorbis-devel
+#BuildRequires: mad-devel
+BuildRequires: pkgconfig
+BuildRequires: qt-devel >= 3.0.5
URL: http://www.kde.org/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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} = %{version}
+Requires: qt >= 3.0.5
%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.0.5
+Requires: %{name} = %{version}
%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
-%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
+#%{__make} -f Makefile.cvs
-CFLAGS="%{rpmcflags}"
-CXXFLAGS="%{rpmcflags}"
%configure \
--%{?debug:en}%{!?debug:dis}able-debug \
--enable-final \
+%ifnarch sparc sparcv9 sparc64
--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,}
+%endif
+ --disable-rpath \
+ --with-xinerama
%{__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}
+%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}/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
+%{_libdir}/lib[ams]*.la
%attr(755,root,root) %{_libdir}/libkmedia*.so.*.*
-%attr(755,root,root) %{_libdir}/libkmedia*.la
+%{_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
+%{_libdir}/libx11globalcomm.la
%files qt
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libqtmcop.so.*.*.*
-%attr(755,root,root) %{_libdir}/libqtmcop.la
+%{_libdir}/libqtmcop.la
+
+%files glib
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmcop.so.*.*.*
+%{_libdir}/libgmcop.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}/lib[mqsxg]*.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