[nload/el6] Add EPEL6 support.

Christopher Meng cicku at fedoraproject.org
Wed May 29 05:43:00 UTC 2013


commit 1414538e7c22e5405179793154ab8ae750474122
Author: Christopher Meng <rpm at cicku.me>
Date:   Wed May 29 13:32:09 2013 +0800

    Add EPEL6 support.

 nload.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/nload.spec b/nload.spec
index f4d992a..0aef1ee 100644
--- a/nload.spec
+++ b/nload.spec
@@ -8,6 +8,7 @@ URL:            http://www.roland-riegel.de/nload/
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 
 BuildRequires:  ncurses-devel
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
 %description
 nload is a console application which monitors network traffic and bandwidth
@@ -24,9 +25,14 @@ network usage.
 make %{?_smp_mflags}
 
 %install
+rm -rf %{buildroot}
 make install DESTDIR="%{buildroot}" INSTALL="install -p"
 
+%clean
+rm -rf %{buildroot}
+
 %files
+%defattr(-,root,root)
 %doc AUTHORS ChangeLog COPYING NEWS README
 %{_mandir}/man1/%{name}.1*
 %{_bindir}/%{name}


More information about the scm-commits mailing list