libpcap/libpcap.spec

178 lines
5.8 KiB
RPMSpec

Name: libpcap
Version: 1.10.1
Summary: A system-independent interface for user-level packet capture
Release: 1mamba
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://www.tcpdump.org
Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
Patch0: %{name}-1.0.0-pcap_config.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libdbus-devel
BuildRequires: libibverbs-devel
BuildRequires: libnl-devel
## AUTOBUILDREQ-END
BuildRequires: bison, flex >= 2.4
%description
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.
%package devel
Group: Development/Libraries
Summary: Static library and header files for the pcap library
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description 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.
%debug_package
%prep
%setup -q
#%patch -p1
%build
%if "%{_host}" != "%{_build}"
cat >> config.cache << _EOF
ac_cv_linux_vers=`uname -r 2>&1 | \
sed -n -e '$s/.* //' -e '$s/\..*//p'`
_EOF
%endif
%configure \
--enable-ipv6 \
--enable-bluetooth \
--with-libnl \
--with-pcap=linux \
%if "%{_host}" != "%{_build}"
--cache-file=config.cache
%endif
%make all "CCOPT=%{optflags} -fPIC"
## FIXME: ugly hack - but `make shared' create a broken shared library
#%{_host}-gcc -Wl,-soname,libpcap.so.0 -shared -fpic -o libpcap.so.%{version} *.o
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}%{_bindir}
%makeinstall
install -m755 libpcap.so.%{version} %{buildroot}%{_libdir}
#ln -s libpcap.so.%{version} %{buildroot}/usr/lib/libpcap.so.0
#ln -s libpcap.so.%{version} %{buildroot}/usr/lib/libpcap.so
install -d %{buildroot}%{_includedir}/net/
ln -s ../pcap-bpf.h %{buildroot}%{_includedir}/net/bpf.h
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libpcap.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/pcap-config
%{_includedir}/*.h
%{_includedir}/net/bpf.h
%{_includedir}/pcap/*.h
%{_libdir}/libpcap.a
%{_libdir}/libpcap.so
%{_libdir}/pkgconfig/libpcap.pc
%{_mandir}/man1/pcap-config.1.*
%{_mandir}/man3/*
%{_mandir}/man5/pcap-savefile.5.*
%{_mandir}/man7/pcap-filter.7.*
%{_mandir}/man7/pcap-linktype.7.*
%{_mandir}/man7/pcap-tstamp.7*
%changelog
* Thu Jun 10 2021 Automatic Build System <autodist@mambasoft.it> 1.10.1-1mamba
- automatic version update by autodist
* Wed Jan 13 2021 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- automatic version update by autodist
* Thu May 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.1-2mamba
- rebuilt with debug package
* Thu Oct 03 2019 Automatic Build System <autodist@mambasoft.it> 1.9.1-1mamba
- automatic version update by autodist
* Mon Aug 13 2018 Automatic Build System <autodist@mambasoft.it> 1.9.0-1mamba
- automatic version update by autodist
* Sat Sep 13 2014 Automatic Build System <autodist@mambasoft.it> 1.6.2-1mamba
- automatic version update by autodist
* Tue Aug 05 2014 Automatic Build System <autodist@mambasoft.it> 1.6.1-1mamba
- automatic update by autodist
* Fri Jan 31 2014 Automatic Build System <autodist@mambasoft.it> 1.5.3-1mamba
- automatic version update by autodist
* Thu Nov 28 2013 Automatic Build System <autodist@mambasoft.it> 1.5.1-1mamba
- automatic update by autodist
* Mon May 06 2013 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
- automatic version update by autodist
* Wed Jul 25 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-1mamba
- update to 1.3.0
* Thu Apr 05 2012 Automatic Build System <autodist@mambasoft.it> 1.2.1-1mamba
- automatic version update by autodist
* Fri May 28 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.0.0-2mamba
- fixed pcap-config
* Sun Nov 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
- automatic update by autodist
* Tue Oct 02 2007 Aleph0 <aleph0@openmamba.org> 0.9.8-1mamba
- update to 0.9.8
* Tue Jul 24 2007 Aleph0 <aleph0@openmamba.org> 0.9.7-1mamba
- update to 0.9.7
* Tue Jun 12 2007 Aleph0 <aleph0@openmamba.org> 0.9.6-1mamba
- update to 0.9.6
* Tue Mar 20 2007 Aleph0 <aleph0@openmamba.org> 0.9.5-1qilnx
- update to 0.9.5
* Tue Oct 04 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.9.4-1qilnx
- update to version 0.9.4 by autospec
* Fri Jul 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.9.1-2qilnx
- fixed shared library creation
* Wed Jul 06 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.9.1-1qilnx
- update to version 0.9.1 by autospec
* Wed Mar 31 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.8.3-1qilnx
- new version rebuild
* Thu Mar 25 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.1-2qilnx
- added syslink /usr/include/net/bpf.h (see www.ethereal.com/docs/user-guide/x716.html)
* Thu Jan 15 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.8.1-1qilnx
- specfile updated
- package updated to latest version
* Fri May 09 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 0.7.2-1qilnx
- creation of libpcap package