[xautolock] Use macros and minor touchups

Ben Boeckel mathstuf at fedoraproject.org
Wed Feb 29 03:09:57 UTC 2012


commit 5dc063c0a45fbd9b23d7bbdac9af57f427615beb
Author: Ben Boeckel <MathStuf at gmail.com>
Date:   Wed Jul 6 21:50:28 2011 -0400

    Use macros and minor touchups

 xautolock.spec |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/xautolock.spec b/xautolock.spec
index b0bcd23..75abc2a 100644
--- a/xautolock.spec
+++ b/xautolock.spec
@@ -8,14 +8,15 @@ License:        GPLv2
 URL:            http://freshmeat.net/projects/xautolock/
 Source0:        http://www.ibiblio.org/pub/Linux/X11/screensavers/%{name}-%{version}.tgz
 Patch0:         xautolock-2.2-XSS-fix.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  imake libXScrnSaver-devel
+BuildRequires:  imake
+BuildRequires:  libXScrnSaver-devel
 
 %description
 A program that launches a given program when
 your X session has been idle for a given time.
 
+
 %prep
 %setup -q
 %patch0 -p1 -b .XSS-fix
@@ -23,16 +24,11 @@ xmkmf
 
 
 %build
-make %{?_smp_mflags} CDEBUGFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"
+make %{?_smp_mflags} CDEBUGFLAGS="%{optflags}" CC="%{__cc}"
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install install.man DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+make install install.man DESTDIR=%{buildroot} INSTALL="install -p"
 
 
 %files


More information about the scm-commits mailing list