From 9cf573ffa32b8c96d74097a50a1c25ebce5ef293 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 6 Mar 2003 12:52:33 +0000 Subject: [PATCH] Ronny V. Vindenes Cleanup the alsa-utils rpm spec: * removed wrongly included doc file * changed BuildRoot from /var/tmp to %{_tmppath} * use standard rpm macros for %build & %install * updated dependencies --- utils/alsa-utils.spec.in | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/utils/alsa-utils.spec.in b/utils/alsa-utils.spec.in index bec5ebb..51c0d44 100644 --- a/utils/alsa-utils.spec.in +++ b/utils/alsa-utils.spec.in @@ -8,15 +8,22 @@ Release: %rel Copyright: GPL Group: System/Libraries Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{ver}.tar.bz2 -BuildRoot: /var/tmp/alsa-utils-%{ver} +BuildRoot: %{_tmppath}/%{name}-%{version}-root URL: http://www.alsa-project.org -Requires: alsa-lib alsa-driver +Requires: alsa-lib ncurses +BuildRequires: alsa-lib-devel ncurses-devel %description Advanced Linux Sound Architecture (ALSA) - Utils %changelog +* Thu Mar 6 2003 Ronny V. Vindenes + +- removed wrongly included doc file +- changed BuildRoot from /var/tmp to %{_tmppath} +- use standard rpm macros for %build & %install +- updated dependencies * Tue Nov 20 2001 Jaroslav Kysela @@ -36,24 +43,20 @@ Advanced Linux Sound Architecture (ALSA) - Utils %prep %setup %build - -./configure --prefix=%_prefix --mandir=%_mandir +%configure make %install -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT - -mkdir -p $RPM_BUILD_ROOT/%_prefix/bin $RPM_BUILD_ROOT/%_mandir/man1 - -make DESTDIR="$RPM_BUILD_ROOT" install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +%makeinstall %clean -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) -%doc ChangeLog COPYING README config.status +%doc ChangeLog COPYING README %{_prefix}/sbin/* %{_prefix}/bin/*