]> git.pld-linux.org Git - packages/libpcap.git/blobdiff - libpcap.spec
- make sanitized pcap-int.h available to other packages (e.g. kismet)
[packages/libpcap.git] / libpcap.spec
index 02c6ec82c47f589f4910784c086fe2bef9946656..b97b26f6d2f91e199a84e9ced4e90c49b1c45efe 100644 (file)
 Summary:       Libpcap provides promiscuous mode access to network interfaces
+Summary(es):   libpcap ofrece acceso a modo promiscuo en interfaces de red
 Summary(pl):   Libpcap pozwala na bezpo¶redni dostêp do interfejsów sieciowych
+Summary(pt_BR):        A libpcap fornece acesso ao modo promíscuo em interfaces de rede
+Summary(ru):   ðÒÅÄÏÓÔÁ×ÌÑÅÔ ÄÏÓÔÕРˠÓÅÔÅ×ÙÍ ÉÎÔÅÒÆÅÊÓÁÍ × promiscuous-ÒÅÖÉÍÅ
+Summary(uk):   îÁÄÁ¤ ÄÏÓÔÕРÄÏ ÍÅÒÅÖÅ×ÉÈ ¦ÎÔÅÒÆÅÊӦננpromiscuous-ÒÅÖÉͦ
 Name:          libpcap
-Version:       0.4
-Release:       19
-Serial:                1
-License:       GPL
+Version:       0.8.1
+Release:       2
+Epoch:         2
+License:       BSD
 Group:         Libraries
-Group(fr):     Librairies
-Group(pl):     Biblioteki
-Source0:       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
-BuildRequires: flex
+Source0:       http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
+# Source0-md5: f03f588e1f0ba783004d76f60507cebd
+Patch0:                %{name}-shared.patch
+Patch1:                %{name}-ac25x.patch
+BuildRequires: autoconf >= 2.53
+BuildRequires: automake
 BuildRequires: bison
+BuildRequires: flex
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     libpcap0
 
 %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.
+
+%description -l es
+libpcap es una interface independiente de sistema para captura de
+paquetes en modo usuario. Ofrece un esquema portátil para el control
+de la red en bajo nivel. Se utiliza para colecta de estadísticas de
+red, Control de seguridad, depuración de la red, etc. Tiene una API
+independiente de sistema que se usa por varias aplicaciones, entre
+ellas tcpdump y arpwatch.
+
+%description -l pl
+libpcap to niezale¿ny od systemu interfejs do przechwytywania pakietów
+z poziomu u¿ytkownika.
+
+%description -l pt_BR
+A libpcap é uma interface independente de sistema para captura de
+pacotes em modo usuário. Fornece um esquema portátil para monitoração
+da rede em baixo nível. É utilizada para coleta de estatísticas de
+rede, monitoramento de segurança, depuração da rede, etc. Tem uma API
+independente de sistema que é usada por várias aplicações, entre elas
+tcpdump e arpwatch.
+
+%description -l ru
+Libpcap - ÜÔÏ ÓÉÓÔÅÍÎÏÎÅÚÁ×ÉÓÉÍÙÊ ÉÎÔÅÒÆÅÊÓ ÄÌÑ ÚÁÈ×ÁÔÁ ÐÁËÅÔÏ× Ó
+ÐÏÌØÚÏ×ÁÔÅÌØÓËÏÇÏ ÕÒÏ×ÎÑ É ÎÉÚËÏÕÒÏ×ÎÅ×ÏÇÏ ÓÅÔÅ×ÏÇÏ ÍÏÎÉÔÏÒÉÎÇÁ.
+÷ÏÚÍÏÖÎÙÅ ÐÒÉÍÅÎÅÎÉÑ ×ËÌÀÞÁÀÔ ÓÂÏÒ ÓÅÔÅ×ÏÊ ÓÔÁÔÉÓÔÉËÉ, ÎÁÂÌÀÄÅÎÉÅ ÚÁ
+ÂÅÚÏÐÁÓÎÏÓÔØÀ, ÏÔÌÁÄËÁ ÓÅÔÉ É Ô.Ä. Libpcap ÉÍÅÅÔ ÓÉÓÔÅÍÎÏÎÅÚÁ×ÉÓÉÍÙÊ
+API, ÉÓÐÏÌØÚÕÅÍÙÊ ÍÎÏÇÉÍÉ ÐÒÉÌÏÖÅÎÉÑÍÉ, ×ËÌÀÞÁÑ tcpdump É arpwatch.
+
+%description -l uk
+Libpcap - ÃÅ ÓÉÓÔÅÍÎÏÎÅÚÁÌÅÖÎÉÊ ¦ÎÔÅÒÆÅÊÓ ÄÌÑ ÚÁÈ×ÁÔÕ ÐÁËÅԦנڠҦ×ÎÑ
+ËÏÒÉÓÔÕ×ÁÞÁ ÔÁ Î¦ÚËÏÒ¦×ÎÅ×ÏÇÏ ÍÏΦÔÏÒÉÎÇÕ ÍÅÒÅÖ¦. íÏÖÌÉצ ×ÉËÏÒÉÓÔÁÎÎÑ
+×ËÌÀÞÁÀÔØ Ú¦ҠÓÔÁÔÉÓÔÉËÉ ÍÅÒÅÖ¦, ÓÐÏÓÔÅÒÅÖÅÎÎÑ ÚÁ ÂÅÚÐÅËÏÀ, ×¦ÄÌÁÄËÁ
+ÍÅÒÅÖ¦ ¦ Ô.¦. Libpcap ÍÁ¤ ÓÉÓÔÅÍÎÏÎÅÚÁÌÅÖÎÉÊ API ÝÏ ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ
+ÂÁÇÁÔØÍÁ ÐÒÏÇÒÁÍÁÍÉ, ÔÁËÉÍÉ ÑÌ tcpdump, arpwatch ÔÁ trafshow.
 
 %package devel
 Summary:       Header files and develpment documentation for libpcap
+Summary(es):   Arquivos de cabeçalho e bibliotecas de desenvolvimento para libpcap
 Summary(pl):   Pliki nag³ówkowe i dokumetacja do libpcap
+Summary(pt_BR):        Bibliotecas e arquivos de inclusão para a libpcap
+Summary(ru):   èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÐÒÏÇÒÁÍÉÓÔÁ ÄÌÑ libpcap
+Summary(uk):   èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ libpcap
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
+Obsoletes:     libpcap0-devel
 
 %description devel
-Header files and develpment documentation for libpcap.
-
-%description -l pl devel
+Libpcap provides a portable framework for low-level network
+monitoring. Libpcap can provide network statistics collection,
+security monitoring and network debugging. Since almost every system
+vendor provides a different interface for packet capture, the libpcap
+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.
+
+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.
 
+%description devel -l pt_BR
+Tcpdump imprime os cabeçalhos dos pacotes em uma interface de rede.
+Ele é muito prático para resolver problemas na rede e para operações
+de segurança.
+
+%description devel -l ru
+èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÐÒÏÇÒÁÍÉÓÔÁ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó
+libpcap.
+
+%description devel -l uk
+èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú
+libpcap.
+
 %package static
 Summary:       Static libpcap library
+Summary(es):   Biblioteca estática usada no desenvolvimento de aplicativos com libpcap
 Summary(pl):   Biblioteka statyczna libpcap
+Summary(pt_BR):        Biblioteca estática de desenvolvimento
+Summary(ru):   óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ libpcap
+Summary(uk):   óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ libpcap
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}
 
 %description static
-Static libpcap library.
-
-%description -l pl static
+Libpcap provides a portable framework for low-level network
+monitoring. Libpcap can provide network statistics collection,
+security monitoring and network debugging. Since almost every system
+vendor provides a different interface for packet capture, the libpcap
+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 contains the static library used for development.
+
+%description static -l pt_BR
+Tcpdump imprime os cabeçalhos dos pacotes em uma interface de rede.
+Ele é muito prático para resolver problemas na rede e para operações
+de segurança.
+
+%description static -l pl
 Biblioteka statyczna libpcap.
 
+%description static -l ru
+óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ, ÎÅÏÂÈÏÄÉÍÁÑ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó libpcap.
+
+%description static -l uk
+óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ, ÎÅÏÂȦÄÎÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú libpcap.
+
 %prep
-%setup  -q
+# -c because of "tar: Removing leading `libpcap-0.8.1/./' from member names"
+%setup -q -c
+# tar < 1.13.9x compat
+[ -f configure ] || cd %{name}-%{version}
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
 
 %build
-aclocal
-autoconf
-LDFLAGS="-s"; export LDFLAGS
-%configure
-make
+[ -f configure ] || cd %{name}-%{version}
+cp -f /usr/share/automake/config.sub .
+%{__autoconf}
+%configure \
+       --with-pcap=linux \
+       --enable-ipv6
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}/net \
-       $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3}
+if [ ! -f configure ]; then
+       mv -f %{name}-%{version}/{CHANGES,CREDITS,LICENSE,README} .
+       cd %{name}-%{version}
+fi
 
-make install install-man install-incl \
-       DESTDIR=$RPM_BUILD_ROOT \
-       INCLDEST=%{_includedir} \
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
+# some packages want it... but sanitize somehow
+# (don't depend on HAVE_{STRLCPY,SNPRINTF,VSNPRINTF} defines)
+sed -e '233,239d;242,251d' pcap-int.h > $RPM_BUILD_ROOT%{_includedir}/pcap-int.h
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       README CHANGES 
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
-%doc {README,CHANGES}.gz
+%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}/*
-%{_mandir}/man*/*
+%{_includedir}/*.h
+%{_mandir}/man?/*
 
 %files static
 %defattr(644,root,root,755)
This page took 0.10404 seconds and 4 git commands to generate.