-%define ver 0.3.0
-%define patchlvl pre3
-
Summary: Advanced Linux Sound Architecture (ALSA) - Utils
Summary(pl): Advanced Linux Sound Architecture (ALSA) - Narzêdzia
Name: alsa-utils
-Version: %{ver}%{patchlvl}
-Release: 3
+Version: 0.3.1
+Release: 1
Copyright: GPL
Group: Applications/Sound
Group(pl): Aplikacje/D¼wiêk
-Source0: ftp://alsa.jcu.cz/pub/utils/%{name}-%{ver}-%{patchlvl}.tar.gz
+Source0: ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.gz
Source1: alsasound
Patch0: alsa-utils-DESTDIR.patch
-Patch1: alsa-utils-opt.patch
+Patch1: alsa-utils-xamixer.patch
BuildPrereq: alsa-driver-devel
BuildPrereq: alsa-lib-devel
BuildPrereq: libstdc++-devel
BuildPrereq: ncurses-devel
+BuildPrereq: gtk+-devel
+BuildPrereq: XFree86-libs
+BuildPrereq: glib-devel
Requires: alsa-driver
Prereq: /sbin/chkconfig
BuildRoot: /tmp/%{name}-%{version}-root
alsamixer, amixer, aplay, arecord
%prep
-%setup -q -n %{name}-%{ver}-%{patchlvl}
-%patch0 -p0
+%setup -q
+%patch0 -p1
%patch1 -p1
%build
-./configure %{_target_platform} \
+CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses" ./configure %{_target_platform} \
--prefix=%{_prefix} \
--mandir=%{_mandir}
-make OPT="$RPM_OPT_FLAGS -I/usr/include/ncurses"
+make
%install
rm -rf $RPM_BUILD_ROOT
touch $RPM_BUILD_ROOT/etc/asound.conf
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
+echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
+mv $RPM_BUILD_ROOT/usr/etc/xamixer.conf $RPM_BUILD_ROOT/etc
-gzip -9nf README ChangeLog amixer/README.first \
+gzip -9nf README ChangeLog \
$RPM_BUILD_ROOT%{_mandir}/man1/*
%post
%files
%defattr(644,root,root,755)
-%doc {README,ChangeLog,amixer/README.first}.gz
+%doc {README,ChangeLog}.gz
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/*
%{_mandir}/man1/*
%attr(754,root,root) /etc/rc.d/init.d/*
-%attr(640,root,root) %config /etc/asound.conf
+%attr(644,root,root) %config /etc/asound.conf
+%attr(644,root,root) %config /etc/xamixer.conf
%changelog
+* Sat Jun 05 1999 Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
+- upgreaded to 0.3.1
+- few fixes
+
* Tue May 25 1999 Piotr Czerwiñski <pius@pld.org.pl>
[0.3.0pre3-3]
- package is FHS 2.0 compliant,