]> git.pld-linux.org Git - packages/libpcap.git/blobdiff - libpcap.spec
- release 2.
[packages/libpcap.git] / libpcap.spec
index e145cfe9afda2e37096d523c901fdd71d6617867..7912af104481feeb1c8676099e3c45b9786cc45e 100644 (file)
@@ -1,34 +1,38 @@
+%define                shortver        0.5
 Summary:       Libpcap provides promiscuous mode access to network interfaces
 Summary(pl):   Libpcap pozwala na bezpo¶redni dostêp do interfejsów sieciowych
 Name:          libpcap
-Version:       0.4
-Release:       18
+Version:       0.5.2
+Release:       2
+Epoch:         1
+License:       GPL
 Group:         Libraries
-Group(fr):     Librairies
 Group(pl):     Biblioteki
-License:       GPL
-Serial:                1
-Source:                ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.Z
-Patch0:                ftp://ftp.inr.ac.ru/ip-routing/lbl-tools/libpcap-0.4-ss991029.dif.gz
-Patch1:                libpcap-Makefile.patch
-Patch2:                libpcap-shared.patch
-Patch3:                libpcap-scanner.patch
-Patch4:                libpcap-IFF_LOOPBACK.patch
+Group(fr):     Librairies
+Source0:       http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
+#Patch0:       ftp://ftp.inr.ac.ru/ip-routing/lbl-tools/%{name}-0.4-ss991029.dif.gz
+Patch1:                %{name}-Makefile.patch
+Patch2:                %{name}-shared.patch
+Patch3:                %{name}-scanner.patch
+Patch4:                %{name}-IFF_LOOPBACK.patch
+BuildRequires: flex
+BuildRequires: bison
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Libpcap is a system-independent interface for user-level packet capture.
-Libpcap provides a portable framework for low-level network monitoring.
-Applications include network statistics collection, security monitoring,
-network debugging, etc. Libpcap has system-independent API that is used by
-several applications, including tcpdump and arpwatch.
+Libpcap is a system-independent interface for user-level packet
+capture. Libpcap provides a portable framework for low-level network
+monitoring. Applications include network statistics collection,
+security monitoring, network debugging, etc. Libpcap has
+system-independent API that is used by several applications, including
+tcpdump and arpwatch.
 
 %package devel
 Summary:       Header files and develpment documentation for libpcap
 Summary(pl):   Pliki nag³ówkowe i dokumetacja do libpcap
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
+Group(fr):     Development/Librairies
 Requires:      %{name} = %{version}
 
 %description devel
@@ -41,8 +45,8 @@ Pliki nag
 Summary:       Static libpcap library
 Summary(pl):   Biblioteka statyczna libpcap
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
+Group(fr):     Development/Librairies
 Requires:      %{name}-devel = %{version}
 
 %description static
@@ -52,10 +56,9 @@ Static libpcap library.
 Biblioteka statyczna libpcap.
 
 %prep
-%setup  -q
-%patch0 -p1
+%setup  -q -n %{name}-%{shortver}
 %patch1 -p1
-%patch2 -p1
+%patch2 -p1 
 %patch3 -p1
 %patch4 -p1
 
@@ -63,22 +66,22 @@ Biblioteka statyczna libpcap.
 aclocal
 autoconf
 LDFLAGS="-s"; export LDFLAGS
-%configure
-make
+%configure --enable-ipv6
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_includedir}/net \
        $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3}
 
-make install install-man install-incl \
+%{__make} install install-man install-incl \
        DESTDIR=$RPM_BUILD_ROOT \
        INCLDEST=%{_includedir} \
 
 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
 
 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       README CHANGES 
+       README CHANGES CREDITS
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -88,13 +91,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {README,CHANGES}.gz
+%doc {README,CHANGES,CREDITS}.gz
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
-%{_includedir}/*
+%{_includedir}/*.h
+%{_includedir}/net/*.h
 %{_mandir}/man*/*
 
 %files static
This page took 0.115663 seconds and 4 git commands to generate.