[libpcap] spec: specfile cleanup

Michal Sekletar msekleta at fedoraproject.org
Tue Mar 26 12:23:45 UTC 2013


commit 8490e94d3b7c9bc9132b4fd61ac97da936717ed2
Author: Michal Sekletar <msekleta at redhat.com>
Date:   Tue Mar 26 09:49:10 2013 +0100

    spec: specfile cleanup

 libpcap.spec |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/libpcap.spec b/libpcap.spec
index bfa967c..f677505 100644
--- a/libpcap.spec
+++ b/libpcap.spec
@@ -7,7 +7,6 @@ Group: Development/Libraries
 License: BSD with advertising
 URL: http://www.tcpdump.org
 BuildRequires: glibc-kernheaders >= 2.2.0 bison flex bluez-libs-devel
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
 Patch1: libpcap-man.patch
@@ -40,17 +39,17 @@ authors created this system-independent API to ease in porting and to
 alleviate the need for several system-dependent packet capture modules
 in each application.
 
-This package provides the libraries, include files, and other 
+This package provides the libraries, include files, and other
 resources needed for developing libpcap applications.
- 
+
 %prep
 %setup -q
 
-%patch1 -p1 -b .man 
+%patch1 -p1 -b .man
 %patch2 -p1 -b .multilib
 %patch3 -p1 -b .s390
 
-#sparc needs -fPIC 
+#sparc needs -fPIC
 %ifarch %{sparc}
 sed -i -e 's|-fpic|-fPIC|g' configure
 %endif
@@ -61,14 +60,9 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 make DESTDIR=$RPM_BUILD_ROOT install
 rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig


More information about the scm-commits mailing list