mirror of
https://abf.rosa.ru/djam/libpcap.git
synced 2025-02-23 17:52:56 +00:00
New version 1.5.3, spec cleanup
This commit is contained in:
parent
a4b83555d6
commit
7df01f0af9
4 changed files with 59 additions and 72 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
"libpcap-1.3.0.tar.gz": 90aa2f0fcfb4bf79fc50ccdaa70f484d96295be3
|
||||
libpcap-1.5.3.tar.gz: 0d1502d1e46f088f5432d9d16e7fc2619cc33380
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.4.10 (GNU/Linux)
|
||||
|
||||
iQCVAwUAT9d3EIqHRg3pndX9AQKoXQP+IT2fkar8CcC+xoWRNEe1p+5jA7HOBGKB
|
||||
6e84o9o2xKEjEDt3dhQpeVrkeK1FA+bR53x0379GMq0Vym/GQiJJYEiNW5tFyid8
|
||||
YnlA7p7heXx4IEfjglmh10hwWffOUdpVQ67p0bd0CQweUc71loVVePmJvEJcLaUQ
|
||||
gfPGtL+M+ro=
|
||||
=dJIZ
|
||||
-----END PGP SIGNATURE-----
|
BIN
libpcap-1.5.3.tar.gz.sig
Normal file
BIN
libpcap-1.5.3.tar.gz.sig
Normal file
Binary file not shown.
120
libpcap.spec
120
libpcap.spec
|
@ -1,14 +1,15 @@
|
|||
%define major 1
|
||||
%define libname %mklibname pcap %major
|
||||
%define develname %mklibname pcap -d
|
||||
%define libname %mklibname pcap %{major}
|
||||
%define devname %mklibname pcap -d
|
||||
%bcond_without bluetooth
|
||||
|
||||
Summary: A system-independent interface for user-level packet capture
|
||||
Summary: A system-independent interface for user-level packet capture
|
||||
Name: libpcap
|
||||
Version: 1.3.0
|
||||
Release: 3
|
||||
Version: 1.5.3
|
||||
Release: 1
|
||||
License: BSD
|
||||
Group: System/Libraries
|
||||
URL: http://www.tcpdump.org/
|
||||
Url: http://www.tcpdump.org/
|
||||
Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
|
||||
Source1: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz.sig
|
||||
Patch0: libpcap-multilib.patch
|
||||
|
@ -16,10 +17,10 @@ Patch1: libpcap-man.patch
|
|||
Patch2: lpthread-1.3.0-libpcap.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
#BuildRequires: libnl-devel
|
||||
%if %{with bluetooth}
|
||||
BuildRequires: pkgconfig(bluez)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(libnl-3.0)
|
||||
BuildRequires: bluez-devel
|
||||
Suggests: %name-doc
|
||||
|
||||
%description
|
||||
Libpcap provides a portable framework for low-level network monitoring. Libpcap
|
||||
|
@ -29,23 +30,29 @@ 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.
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package doc
|
||||
Summary: Manual pages for %name
|
||||
Group: Books/Other
|
||||
BuildArch: noarch
|
||||
Conflicts: %develname < 1.1.1-3
|
||||
Summary: Manual pages for %{name}
|
||||
Group: Documentation
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
This contains the manual pages documenting %{name}.
|
||||
|
||||
%package -n %{libname}
|
||||
%files doc
|
||||
%{_mandir}/man5/pcap*
|
||||
%{_mandir}/man7/pcap*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: A system-independent interface for user-level packet capture
|
||||
Group: System/Libraries
|
||||
Obsoletes: %{name} < %{version}-%{release}
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
Provides: pcap = %{version}-%{release}
|
||||
Group: System/Libraries
|
||||
Provides: %{name} = %{EVRD}
|
||||
Provides: pcap = %{EVRD}
|
||||
|
||||
%description -n %{libname}
|
||||
%description -n %{libname}
|
||||
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
|
||||
|
@ -53,47 +60,50 @@ 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.
|
||||
|
||||
%package -n %{develname}
|
||||
Summary: Static library and header files for the pcap library
|
||||
%files -n %{libname}
|
||||
%{_libdir}/libpcap.so.%{major}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{devname}
|
||||
Summary: Development library and header files for the pcap library
|
||||
Group: Development/C
|
||||
Requires: %{libname} >= %{version}-%{release}
|
||||
Provides: pcap-devel = %{version}-%{release}
|
||||
Provides: %{name}-devel = %{version}-%{release}
|
||||
Requires: %{libname} = %{EVRD}
|
||||
Provides: pcap-devel = %{EVRD}
|
||||
Provides: %{name}-devel = %{EVRD}
|
||||
|
||||
%description -n %{develname}
|
||||
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.
|
||||
%description -n %{devname}
|
||||
This package contains the development pcap library and its header files needed
|
||||
to compile applications such as tcpdump, etc.
|
||||
|
||||
This package contains the static pcap library and its header files needed to
|
||||
compile applications such as tcpdump, etc.
|
||||
%files -n %{devname}
|
||||
%doc README* CREDITS INSTALL.txt LICENSE CHANGES TODO
|
||||
%{_bindir}/pcap-config
|
||||
%dir %{_includedir}/pcap
|
||||
%{_includedir}/pcap/*.h
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/libpcap.so
|
||||
%{_mandir}/man1/pcap-config.1*
|
||||
%{_mandir}/man3/pcap*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
|
||||
#sparc needs -fPIC
|
||||
%ifarch %{sparc}
|
||||
sed -i -e 's|-fpic|-fPIC|g' configure
|
||||
%endif
|
||||
%setup -q
|
||||
%apply_patches
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
#export CFLAGS="%{optflags} -fPIC"
|
||||
|
||||
%configure2_5x \
|
||||
--enable-ipv6 \
|
||||
--enable-bluetooth
|
||||
--disable-static \
|
||||
--enable-ipv6 \
|
||||
%if %{with bluetooth}
|
||||
--enable-bluetooth \
|
||||
%endif
|
||||
--with-pcap=linux
|
||||
|
||||
%make
|
||||
# LIBS='-lpthread'
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_bindir}
|
||||
|
@ -107,17 +117,3 @@ install -m0644 pcap/bluetooth.h %{buildroot}%{_includedir}/pcap/
|
|||
# nuke the statis lib
|
||||
rm -f %{buildroot}%{_libdir}/libpcap.a
|
||||
|
||||
%files -n %{libname}
|
||||
%doc README* CREDITS INSTALL.txt LICENSE
|
||||
%{_libdir}/libpcap.so.%{major}*
|
||||
|
||||
%files doc
|
||||
%{_mandir}/man?/*
|
||||
|
||||
%files -n %{develname}
|
||||
%doc CHANGES TODO
|
||||
%{_bindir}/pcap-config
|
||||
%dir %{_includedir}/pcap
|
||||
%{_includedir}/pcap/*.h
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/libpcap.so
|
||||
|
|
Loading…
Add table
Reference in a new issue