3 %bcond_with cairo # disable Cairo even if present
5 Summary: TCP Flow Recorder
6 Summary(pl.UTF-8): Program zapisujący ruch TCP
11 Group: Applications/Networking
12 Source0: http://www.digitalcorpora.org/downloads/tcpflow/%{name}-%{version}.tar.gz
13 # Source0-md5: 5978b112a899f2099e98cef6d9a0ece9
14 Patch0: 0001-using-the-debian-package-of-libhttp-parser-instead-o.patch
15 Patch1: 0001-tcpflow-b-0-now-works.patch
16 Patch2: packing-struct-tcphdr-to-improve-portability.patch
17 URL: https://github.com/simsong/tcpflow
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: boost-devel
21 BuildRequires: bzip2-devel
22 %{?with_cairo:BuildRequires: cairo-devel}
23 #BuildRequires: exiv2-devel
24 BuildRequires: expat-devel
25 BuildRequires: fontconfig-devel
26 BuildRequires: freetype-devel
27 BuildRequires: http-parser-devel
28 BuildRequires: libmd-devel
29 BuildRequires: libpcap-devel
30 #BuildRequires: libregex-devel
31 #BuildRequires: lightgrep-devel
32 BuildRequires: openssl-devel
33 BuildRequires: pixman-devel
34 BuildRequires: sqlite3-devel
35 BuildRequires: tre-devel
36 BuildRequires: zlib-devel
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Tcpflow is program that captures data transmitted as part of TCP
41 connections, and and stores the data in a way that is convenient for
42 protocol analysis or debugging. Tcpflow stores all captured data in
43 two files per connection.
45 %description -l pl.UTF-8
46 Tcpflow jest programem, który przechwytuje dane przesyłane w ramach
47 połączeń TCP i zapisuje je w sposób wygodny do analizy lub śledzenia
48 protokołu - tworząc dwa pliki z danymi na każde przechwycone
63 CPPFLAGS="%{rpmcppflags} -std=c++11" \
64 %{!?with_cairo:--enable-cairo=false}
68 rm -rf $RPM_BUILD_ROOT
71 DESTDIR=$RPM_BUILD_ROOT
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc AUTHORS ChangeLog NEWS README TODO.txt
79 %attr(755,root,root) %{_bindir}/tcpflow
80 %{_mandir}/man1/tcpflow.1*