Summary: PCAP SIP Dump tool Name: pcapsipdump-code Distribution: RedHat Version: trunk Epoch: 145 Release: 1%{?dist} License: GPL v2 Group: Utilities/System Vendor: pcapsipdump.sf.net BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} Source: https://sourceforge.net/code-snapshots/svn/p/pc/pcapsipdump/code/pcapsipdump-code-r145-trunk.zip Requires: libpcap BuildRequires: libpcap-devel Obsoletes: pcapsipdump %description pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk in a fashion similar to "tcpdump -w" (format is exactly the same), but one file per sip session (even if there is thousands of concurrent SIP sessions). %prep %setup -n %{name}-r%{epoch}-%{version} %build make %install mkdir -p $RPM_BUILD_ROOT/usr/sbin $RPM_BUILD_ROOT/etc/sysconfig $RPM_BUILD_ROOT/etc/rc.d/init.d $RPM_BUILD_ROOT/var/spool make DESTDIR=$RPM_BUILD_ROOT install %post chkconfig pcapsipdump --add %files %config(noreplace) %attr(0755,root,root) /etc/sysconfig/pcapsipdump %attr(0700,root,root) %dir /var/spool/pcapsipdump %attr(0755,root,root) /etc/rc.d/init.d/pcapsipdump %attr(0755,root,root) /usr/sbin/pcapsipdump