#
-# TODO: consider:
-# - separating artsc and its -devel? (but what are artsc deps?)
-#
# Conditional build:
%bcond_without alsa # disable ALSA support
%bcond_with nas # enable NAS support
#
-%define _state snapshots
-%define _ver 1.2.0
-%define _snap 031204
+%define _state stable
+%define _ver 1.2.1
+#%%define _snap 040110
+
+%define _kdever 3.2.1
Summary: aRts sound server
Summary(pl): Serwer d¼wiêku
Summary(pt_BR): Servidor de sons usado pelo KDE
Name: arts
-Version: %{_ver}.%{_snap}
+Version: %{_ver}
Release: 1
-Epoch: 12
+Epoch: 13
License: LGPL
Group: Libraries
-#Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{name}-%{_ver}.tar.bz2
-Source0: http://www.kernel.pl/~adgor/kde/%{name}-%{_snap}.tar.bz2
-# Source0-md5: ed23773940e2b97e31a6850e2334bfe5
+Source0: http://download.kde.org/%{_state}/%{_kdever}/src/%{name}-%{_ver}.tar.bz2
+# Source0-md5: 84877632917893438c629803e7b004f3
+# http://download.kde.org/stable/3.2.1/src/arts-1.2.1.tar.bz2
+#Source0: http://ep09.pld-linux.org/~djurban/kde/%{name}-%{version}.tar.bz2
URL: http://www.kde.org/
%{?with_alsa:BuildRequires: alsa-lib-devel}
BuildRequires: audiofile-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook-dtd41-sgml
-BuildRequires: docbook-utils
+BuildRequires: docbook-utils >= 0.6.13-3
BuildRequires: esound-devel
BuildRequires: glib2-devel >= 2.0.0
BuildRequires: libmad-devel
%{?with_nas:BuildRequires: nas-devel}
BuildRequires: pkgconfig
BuildRequires: qt-devel >= 6:3.2.1-4
-BuildRequires: perl-SGMLS
Obsoletes: arts-glib
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Pliki programistyczne dla biblioteki qtmcop.
%prep
-%setup -q -n %{name}-%{_snap}
+# qboosh leave it this way, 'cause its easier to change to snap later
+%setup -q -n %{name}-%{version}
%build
+cp /usr/share/automake/config.sub admin
%{__make} -f admin/Makefile.common cvs
%configure \
--%{?debug:en}%{!?debug:dis}able-debug \
--disable-rpath \
--enable-final \
+ --with-qt-libraries=%{_libdir} \
--with%{!?with_alsa:out}-alsa
%{__make}
# Debian manpages
install -d $RPM_BUILD_ROOT%{_mandir}/man1
cd debian
-for f in *.sgml ; do
+for f in man/*.sgml ; do
base="$(basename $f .sgml)"
upper="$(echo ${base} | tr a-z A-Z)"
db2man $f