]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
tcpdump: Fix build by removing RPATH from the binary.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Mar 2012 14:55:19 +0000 (15:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Mar 2012 14:55:19 +0000 (15:55 +0100)
tcpdump/tcpdump.nm

index d491340aab2491b2b178faa1ab9bbc606461eaf2..2a81d25af078324133817cf2838358e9e9d01112 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = tcpdump
 version    = 4.1.1
-release    = 1
+release    = 2
 
 groups     = Networking/Sniffer
 url        = http://www.tcpdump.org/
@@ -25,6 +25,7 @@ CFLAGS    += -fno-strict-aliasing
 
 build
        requires
+               chrpath
                libpcap-devel
                openssl-devel
        end
@@ -32,11 +33,18 @@ build
        configure_options += \
                --with-crypto \
                --without-smi
+
+       install_cmds
+               # Remove duplicated binary.
+               rm -vf %{BUILDROOT}%{sbindir}/tcpdump.%{version}
+
+               # Remove RPATH.
+               chrpath --delete %{BUILDROOT}%{sbindir}/tcpdump
+       end
 end
 
 packages
        package %{name}
-       end
 
        package %{name}-debuginfo
                template DEBUGINFO