]> git.pld-linux.org Git - packages/libpcap.git/blobdiff - libpcap.spec
- release 2.
[packages/libpcap.git] / libpcap.spec
index b65c839f7db17c8d50efc8ff1881e4ccc6fa3ae7..7912af104481feeb1c8676099e3c45b9786cc45e 100644 (file)
+%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:       1
-Group:         Applications/Networking
-Group(pl):     Aplikacje/Sieciowe
-Copyright:     GPL
-Source:                ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.Z
-Patch0:                ftp://ftp.inr.ac.ru/ip-routing/lbl-tools/libpcap-0.4-ss990417.dif.gz
-Patch1:                libpcap-Makefile.patch
-BuildRoot:     /tmp/%{name}-%{version}-root
+Version:       0.5.2
+Release:       2
+Epoch:         1
+License:       GPL
+Group:         Libraries
+Group(pl):     Biblioteki
+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(pl):     Programowanie/Biblioteki
+Group(fr):     Development/Librairies
+Requires:      %{name} = %{version}
+
+%description devel
+Header files and develpment documentation for libpcap.
+
+%description -l pl devel
+Pliki nag³ówkowe i dokumetacja do libpcap.
+
+%package static
+Summary:       Static libpcap library
+Summary(pl):   Biblioteka statyczna libpcap
+Group:         Development/Libraries
+Group(pl):     Programowanie/Biblioteki
+Group(fr):     Development/Librairies
+Requires:      %{name}-devel = %{version}
+
+%description static
+Static libpcap library.
+
+%description -l pl static
+Biblioteka statyczna libpcap.
+
 %prep
-%setup  -q
-%patch0 -p1
+%setup  -q -n %{name}-%{shortver}
 %patch1 -p1
+%patch2 -p1 
+%patch3 -p1
+%patch4 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target_platform} \
-       --prefix=%{_prefix} \
-       --mandir=%{_mandir}
-make
+aclocal
+autoconf
+LDFLAGS="-s"; export LDFLAGS
+%configure --enable-ipv6
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}/pcap/net
-install -d $RPM_BUILD_ROOT%{_libdir}
-install -d $RPM_BUILD_ROOT%{_mandir}/man3
+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}/pcap \
+       INCLDEST=%{_includedir} \
+
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/*
-gzip -9nf README CHANGES 
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
+       README CHANGES CREDITS
+
+%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 {README,CHANGES,CREDITS}.gz
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
-%{_includedir}/pcap
-%{_libdir}/libpcap.a
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*.h
+%{_includedir}/net/*.h
 %{_mandir}/man*/*
 
-%changelog
-* Sat Jul 03 1999 Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
-  $Log: libpcap.spec,v $
-  Revision 1.10  1999-07-03 15:01:49  misiek
-  removed unnecesary info about few patches
-
-  Revision 1.9  1999/07/03 14:59:32  misiek
-  update to 0.4 and replaced ipv6 patches with ANK patch
-
-
-* Sun Mar 14 1999 Micha³ Kuratczyk <kura@pld.org.pl>
-  [0.4a6-6]
-- removed man group from man pages
-- fixed Summary(pl)
-- minor changes
-
-* Tue Feb 16 1999 Artur Frysiak <wiget@usa.net>
-  [0.4a6-5d]
-- initial release for PLD
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.041857 seconds and 4 git commands to generate.