Name: libpcap Epoch: 14 Version: 1.9.0 Release: 4 Summary: A library for user-level packet capture License: BSD with advertising URL: http://www.tcpdump.org Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz #ptach 1 and 2 are come from fedora Patch0001: 0001-man-tcpdump-and-tcpslice-have-manpages-in-man8.patch Patch0002: 0002-pcap-config-mitigate-multilib-conflict.patch #following patches are come from upstream community Patch6000: ieee80215-arphrd.patch Patch6001: Fix-using-uninitialised-file-descriptor.patch Patch6002: Don-t-overflow-an-int.patch Patch6003: Fix-leak-in-rpcap.patch Patch6004: Fix-the-semantics-of-BPF_LSH-and-BPF_RSH-for-shifts-.patch Patch6005: 0194-Plug-some-memory-leaks.patch Patch6006: 0195-Plug-some-memory-leaks.patch Patch6007: Catch-another-place-where-we-divide-by-or-take-a-mod.patch Patch6008: Make-qerr-const.patch Patch6009: fix-use-of-sizeof-on-a-pointer.patch Patch6010: 0470-Plug-memory-leak.patch Patch6011: 0012-Plug-a-file-descriptor-leak.patch Patch6012: 0036-Use-the-snapshot-length-to-set-the-buffer-size-and-s.patch Patch6013: 0066-Check-for-an-empty-description-by-checking-if-the-fi.patch Patch6014: 0068-Fixed-the-fread-call-in-the-savefile.c-file.patch Patch6015: 0069-Fixed-number-of-elements-returned.patch Patch6016: 0070-Read-the-magic-number-into-a-byte-array.patch Patch6017: 0075-Use-ab-rather-than-rb-for-the-pcap_dump_open_append-.patch Patch6018: 0079-Treat-both-ENXIO-and-EIO-as-device-went-away.patch Patch6019: 0080-Change-the-error-message-for-ENXIO-EIO-to-match-real.patch BuildRequires: bison bluez-libs-devel flex glibc-kernheaders >= 2.2.0 %description Libpcap provides functions for user-level packet capture, used in low-level network monitoring. %package devel Summary: Libraries and files for libpcap Requires: %{name} = %{epoch}:%{version}-%{release} %description devel This package provides files and libraries for developing libpcap applications. %package help Summary: Help information for libpcap %description help This package provides help for libpcap. %prep %autosetup -p1 %build %configure %make_build CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %install %make_install %ldconfig_post %ldconfig_postun %files %license LICENSE %{_libdir}/libpcap.so.* %exclude %{_libdir}/libpcap.a %files devel %{_bindir}/pcap-config %{_includedir}/pcap*.h %{_includedir}/pcap %{_libdir}/libpcap.so %{_libdir}/pkgconfig/libpcap.pc %files help %doc README.md CHANGES CREDITS %{_mandir}/man1/pcap-config.1* %{_mandir}/man3/pcap*.3* %{_mandir}/man5/pcap*.5* %{_mandir}/man7/pcap*.7* %changelog * Wed Sep 25 2019 openEuler Buildteam - 14:1.9.0-4 - Type:bugfix - ID:NA - SUG:NA - DESC:Plug-a-file-descriptor-leak Use-the-snapshot-length-to-set-the-buffer-size-and-s Check-for-an-empty-description-by-checking-if-the-fi Fixed-the-fread-call-in-the-savefile.c-file Fixed-number-of-elements-returned Read-the-magic-number-into-a-byte-array Use-ab-rather-than-rb-for-the-pcap_dump_open_append Treat-both-ENXIO-and-EIO-as-device-went-away Change-the-error-message-for-ENXIO-EIO-to-match-real * Wed Sep 11 2019 liyongqiang - 14:1.9.0-3 - Package init