From d209528b031800daafc570449f560af58cb0586a Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 24 Sep 2020 21:38:18 +0200 Subject: [PATCH 1/1] - new --- tcpslice.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 tcpslice.spec diff --git a/tcpslice.spec b/tcpslice.spec new file mode 100644 index 0000000..da8ae64 --- /dev/null +++ b/tcpslice.spec @@ -0,0 +1,51 @@ +Summary: tcpslice - extract pieces of and/or merge together pcap files +Summary(pl.UTF-8): tcpslice - wydobywanie fragmentów i/lub łączenie plików pcap +Name: tcpslice +Version: 1.3 +Release: 1 +License: BSD +Group: Networking/Utilities +Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz +# Source0-md5: 7342da221f50964b6fd54c235f032f7e +URL: http://www.tcpdump.org/ +BuildRequires: autoconf >= 2.64 +BuildRequires: libnids-devel +BuildRequires: libosip2-devel +BuildRequires: libpcap-devel +BuildRequires: ooh323c-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Tcpslice is a program for extracting portions of packet-trace files +generated using tcpdump's -w flag. It can also be used to merge +together several such files. + +%description -l pl.UTF-8 +Tcpslice to program do wydobywania ragmentów plików śladów pakietów, +wygenerowanych przy użyciu flagi -w programu tcpdump. Potrafi także +łączyć kilka takich plików. + +%prep +%setup -q + +%build +%{__autoconf} +CPPFLAGS="%{rpmcppflags} -I/usr/include/ooh323c" +%configure + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES CREDITS README +%attr(755,root,root) %{_sbindir}/tcpslice +%{_mandir}/man1/tcpslice.1* -- 2.44.0