]> git.pld-linux.org Git - packages/libpcap.git/blobdiff - libpcap.spec
- up to 1.1.1, no functional changes for pld linux
[packages/libpcap.git] / libpcap.spec
index 839653ce654c09fab877d34b2541728b1065af8d..dad3b51f3f66d267b9b48dadf0ddaa1111d1d59f 100644 (file)
@@ -1,7 +1,8 @@
 #
 # Conditional build:
 %bcond_with        pfring           # http://www.ntop.org/PF_RING.html
-#
+%bcond_without bluetooth       # disable bluetooth support
+
 Summary:       Libpcap provides promiscuous mode access to network interfaces
 Summary(es.UTF-8):     libpcap ofrece acceso a modo promiscuo en interfaces de red
 Summary(pl.UTF-8):     Libpcap pozwala na bezpośredni dostęp do interfejsów sieciowych
@@ -9,23 +10,21 @@ Summary(pt_BR.UTF-8):        A libpcap fornece acesso ao modo promíscuo em interfaces
 Summary(ru.UTF-8):     Предоставляет доступ к сетевым интерфейсам в promiscuous-режиме
 Summary(uk.UTF-8):     Надає доступ до мережевих інтерфейсів в promiscuous-режимі
 Name:          libpcap
-Version:       0.9.8
+Version:       1.1.1
 Release:       1
 Epoch:         2
 License:       BSD
 Group:         Libraries
 Source0:       http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
-# Source0-md5: 5208f24d0328ee7c20b52c43eaa9aa0e
-Patch0:                %{name}-shared.patch
+# Source0-md5: 1bca27d206970badae248cfa471bbb47
 Patch1:                %{name}-pf_ring.patch
 URL:           http://www.tcpdump.org/
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake
 BuildRequires: bison
+%{?with_bluetooth:BuildRequires:       bluez-libs-devel}
 BuildRequires: flex
 %{?with_pfring:BuildRequires:  libpfring-devel}
-# beware of tar 1.13.9[12] madness (tarball contains libpcap-0.8.3/./* paths)
-BuildRequires: tar >= 1:1.13.93
 Obsoletes:     libpcap0
 Obsoletes:     libpcap_mmap
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -150,7 +149,6 @@ Biblioteka statyczna libpcap.
 
 %prep
 %setup -q
-%patch0 -p1
 %{?with_pfring:%patch1 -p0}
 
 %build
@@ -164,13 +162,19 @@ cp -f /usr/share/automake/config.sub .
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-# some packages want it... but sanitize somehow
-# (don't depend on HAVE_{STRLCPY,SNPRINTF,VSNPRINTF} defines)
-sed -e '285,291d;294,303d' pcap-int.h > $RPM_BUILD_ROOT%{_includedir}/pcap-int.h
+# some packages want pcap-int.h (like kismet)...
+# but sanitize somehow:
+# don't depend on HAVE_{STRLCPY,SNPRINTF,VSNPRINTF} defines
+sed -e '/#ifndef HAVE_STRLCPY/,/#endif/d;/#if !defined(HAVE_SNPRINTF)/,/#endif/d;/#if !defined(HAVE_VSNPRINTF)/,/#endif/d' \
+       pcap-int.h > $RPM_BUILD_ROOT%{_includedir}/pcap-int.h
+
+# to show the diff
+diff -u pcap-int.h $RPM_BUILD_ROOT%{_includedir}/pcap-int.h || :
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -182,12 +186,18 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc CHANGES CREDITS LICENSE README
 %attr(755,root,root) %{_libdir}/libpcap.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpcap.so.1
+%{_mandir}/man5/pcap-savefile.5*
+%{_mandir}/man7/pcap-*.7*
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pcap-config
 %attr(755,root,root) %{_libdir}/libpcap.so
+%{_includedir}/pcap
 %{_includedir}/pcap*.h
-%{_mandir}/man3/pcap.3*
+%{_mandir}/man1/pcap-config.1*
+%{_mandir}/man3/pcap*.3*
 
 %files static
 %defattr(644,root,root,755)
This page took 0.049145 seconds and 4 git commands to generate.