]> git.pld-linux.org Git - packages/libpcap.git/commitdiff
- release 3, libpcap-0_4-3
authorkloczek <kloczek@pld-linux.org>
Sat, 27 Nov 1999 03:07:10 +0000 (03:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added patch for building and installing srared libpcap (based on Debian),
- added static and devel subpackages,
- added scanner and IFF_LOOPBACK patches (from Debian).

Changed files:
    libpcap.spec -> 1.15

libpcap.spec

index 78d80d7521d2721e2e739acd5db0a787a79ff763..a6b64dea4ab7b669b367f60d3afbb6a30ec6e487 100644 (file)
@@ -2,14 +2,17 @@ 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:       2
-Group:         Applications/Networking
-Group(pl):     Aplikacje/Sieciowe
+Release:       3
+Group:         Libraries
+Group(pl):     Biblioteki
 Copyright:     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-ss990417.dif.gz
 Patch1:                libpcap-Makefile.patch
+Patch2:                libpcap-shared.patch
+Patch3:                libpcap-scanner.patch
+Patch4:                libpcap-IFF_LOOPBACK.patch
 BuildRoot:     /tmp/%{name}-%{version}-root
 
 %description
@@ -18,13 +21,44 @@ 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:         Libraries/Development
+Group(pl):     Biblioteki/Programowanie
+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:         Libraries/Development
+Group(pl):     Biblioteki/Programowanie
+Requires:      %{name}-devel = %{version}
+
+%description static
+Static libpcap library.
+
+%description -l pl static
+Biblioteka statyczna libpcap.
+
 %prep
 %setup  -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
+aclocal
+autoconf
 LDFLAGS="-s"; export LDFLAGS
 %configure
 make
@@ -38,18 +72,28 @@ 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 
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc {README,CHANGES}.gz
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
-%{_includedir}
-%{_libdir}/libpcap.a
+%files devel
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*
 %{_mandir}/man*/*
 
+%files static
+%attr(644,root,root) %{_libdir}/lib*.a
+
 %changelog
This page took 0.089099 seconds and 4 git commands to generate.