]> git.pld-linux.org Git - packages/libpcap.git/blobdiff - libpcap.spec
- updated to 0.9.4, updated shared patch
[packages/libpcap.git] / libpcap.spec
index 92fedfa44ff3f7d976895dc3236b54d6c1c46f39..1e9e707340012b8a23ee6fc3f7a6cb9c5756c54d 100644 (file)
@@ -5,19 +5,22 @@ Summary(pt_BR):       A libpcap fornece acesso ao modo prom
 Summary(ru):   ðÒÅÄÏÓÔÁ×ÌÑÅÔ ÄÏÓÔÕРˠÓÅÔÅ×ÙÍ ÉÎÔÅÒÆÅÊÓÁÍ × promiscuous-ÒÅÖÉÍÅ
 Summary(uk):   îÁÄÁ¤ ÄÏÓÔÕРÄÏ ÍÅÒÅÖÅ×ÉÈ ¦ÎÔÅÒÆÅÊӦננpromiscuous-ÒÅÖÉͦ
 Name:          libpcap
-Version:       0.7.2
+Version:       0.9.4
 Release:       1
 Epoch:         2
-License:       GPL
+License:       BSD
 Group:         Libraries
 Source0:       http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
-# Source0-md5: e3993a5409b98989c7a73e27c5df4d27
+# Source0-md5: 79025766e8027df154cb1f32de8a7974
 Patch0:                %{name}-shared.patch
-BuildRequires: flex
+BuildRequires: autoconf >= 2.53
+BuildRequires: automake
 BuildRequires: bison
-BuildRequires: autoconf
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: flex
+# beware of tar 1.13.9[12] madness (tarball contains libpcap-0.8.3/./* paths)
+BuildRequires: tar >= 1:1.13.93
 Obsoletes:     libpcap0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Libpcap is a system-independent interface for user-level packet
@@ -69,7 +72,7 @@ Summary(pt_BR):       Bibliotecas e arquivos de inclus
 Summary(ru):   èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÐÒÏÇÒÁÍÉÓÔÁ ÄÌÑ libpcap
 Summary(uk):   èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ libpcap
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 Obsoletes:     libpcap0-devel
 
 %description devel
@@ -85,7 +88,7 @@ Install libpcap if you need to do low-level network traffic monitoring
 on your network.
 
 %description devel -l pl
-Pliki nag³ówkowe i dokumetacja do libpcap.
+Pliki nag³ówkowe i dokumentacja do libpcap.
 
 %description devel -l pt_BR
 Tcpdump imprime os cabeçalhos dos pacotes em uma interface de rede.
@@ -108,7 +111,7 @@ Summary(pt_BR):     Biblioteca est
 Summary(ru):   óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ libpcap
 Summary(uk):   óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ libpcap
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Libpcap provides a portable framework for low-level network
@@ -136,10 +139,11 @@ Biblioteka statyczna libpcap.
 óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ, ÎÅÏÂȦÄÎÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú libpcap.
 
 %prep
-%setup  -q -n %{name}-%{version}
+%setup -q
 %patch0 -p1
 
 %build
+cp -f /usr/share/automake/config.sub .
 %{__autoconf}
 %configure \
        --with-pcap=linux \
@@ -148,28 +152,29 @@ Biblioteka statyczna libpcap.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}/net \
-       $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+# some packages want it... but sanitize somehow
+# (don't depend on HAVE_{STRLCPY,SNPRINTF,VSNPRINTF} defines)
+sed -e '262,268d;271,280d' pcap-int.h > $RPM_BUILD_ROOT%{_includedir}/pcap-int.h
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc README CHANGES CREDITS
+%doc CHANGES CREDITS LICENSE README
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_includedir}/*.h
-%{_includedir}/net/*.h
 %{_mandir}/man?/*
 
 %files static
This page took 0.08296 seconds and 4 git commands to generate.