diff --git a/perl-Net-Pcap.spec b/perl-Net-Pcap.spec index 4515dbe..62c1700 100644 --- a/perl-Net-Pcap.spec +++ b/perl-Net-Pcap.spec @@ -44,6 +44,24 @@ like kernel-level packet filtering and access to internal statistics. Common applications include network statistics collection, security monitoring, network debugging, etc. +%package -n pcapdump +Summary: Dump packets from the network +Requires: %{name} = %{version} + +%description -n pcapdump +Command line tool to dump packets from the network. + +pcapdump mimics the very basic features of tcpdump(1) and provides a good +example of how to use Net::Pcap. + +%package -n pcapinfo +Summary: Prints detailed information about the network devices +Requires: %{name} = %{version} + +%description -n pcapinfo +pcapinfo prints detailed information about the network devices and Pcap library +available on the current host. + %prep %autosetup -n %{cpan_name}-%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 @@ -69,24 +87,6 @@ install -D -m0755 eg/pcapdump "%{buildroot}%{_bindir}/pcapdump" %exclude %{_bindir}/pcapdump %exclude %{_mandir}/man1/pcapinfo.1%{?ext_man} -%package -n pcapdump -Summary: Dump packets from the network -Requires: %{name} = %{version} - -%description -n pcapdump -Command line tool to dump packets from the network. - -pcapdump mimics the very basic features of tcpdump(1) and provides a good -example of how to use Net::Pcap. - -%package -n pcapinfo -Summary: Prints detailed information about the network devices -Requires: %{name} = %{version} - -%description -n pcapinfo -pcapinfo prints detailed information about the network devices and Pcap library -available on the current host. - %files -n pcapdump %{_bindir}/pcapdump