]>
Commit | Line | Data |
---|---|---|
c07aba34 ER |
1 | # |
2 | # Conditional build: | |
cd72c1b8 | 3 | %bcond_with cairo # disable Cairo even if present |
c07aba34 | 4 | |
b294eeae | 5 | Summary: TCP Flow Recorder |
6714a67a | 6 | Summary(pl.UTF-8): Program zapisujący ruch TCP |
b294eeae | 7 | Name: tcpflow |
6322654e | 8 | Version: 1.4.5 |
3ce1eb5e | 9 | Release: 4 |
f9dba171 | 10 | License: GPL v3 |
b294eeae | 11 | Group: Applications/Networking |
e6a757c3 AM |
12 | Source0: http://www.digitalcorpora.org/downloads/tcpflow/%{name}-%{version}.tar.gz |
13 | # Source0-md5: 5978b112a899f2099e98cef6d9a0ece9 | |
c9a107b8 | 14 | Patch0: 0001-using-the-debian-package-of-libhttp-parser-instead-o.patch |
94288742 AM |
15 | Patch1: 0001-tcpflow-b-0-now-works.patch |
16 | Patch2: packing-struct-tcphdr-to-improve-portability.patch | |
c07aba34 | 17 | URL: https://github.com/simsong/tcpflow |
fd15480d JB |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
f9dba171 | 20 | BuildRequires: boost-devel |
c9a107b8 | 21 | BuildRequires: bzip2-devel |
cd72c1b8 | 22 | %{?with_cairo:BuildRequires: cairo-devel} |
e6a757c3 | 23 | #BuildRequires: exiv2-devel |
c9a107b8 TP |
24 | BuildRequires: expat-devel |
25 | BuildRequires: fontconfig-devel | |
26 | BuildRequires: freetype-devel | |
27 | BuildRequires: http-parser-devel | |
c9a107b8 | 28 | BuildRequires: libmd-devel |
b294eeae | 29 | BuildRequires: libpcap-devel |
c9a107b8 TP |
30 | #BuildRequires: libregex-devel |
31 | #BuildRequires: lightgrep-devel | |
f9dba171 | 32 | BuildRequires: openssl-devel |
c9a107b8 | 33 | BuildRequires: pixman-devel |
f9dba171 TP |
34 | BuildRequires: sqlite3-devel |
35 | BuildRequires: tre-devel | |
36 | BuildRequires: zlib-devel | |
b294eeae | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
d7c7408b | 40 | Tcpflow is program that captures data transmitted as part of TCP |
c07aba34 ER |
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. | |
b294eeae | 44 | |
e659e363 JR |
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 | |
49 | połączenie. | |
b294eeae | 50 | |
51 | %prep | |
52 | %setup -q | |
c9a107b8 | 53 | %patch0 -p1 |
94288742 AM |
54 | %patch1 -p1 |
55 | %patch2 -p1 | |
b294eeae | 56 | |
57 | %build | |
f9dba171 | 58 | %{__aclocal} -I m4 |
b294eeae | 59 | %{__autoconf} |
60 | %{__autoheader} | |
61 | %{__automake} | |
c07aba34 | 62 | %configure \ |
94288742 | 63 | CPPFLAGS="%{rpmcppflags} -std=c++11" \ |
c07aba34 | 64 | %{!?with_cairo:--enable-cairo=false} |
b294eeae | 65 | %{__make} |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
fd15480d | 69 | |
b294eeae | 70 | %{__make} install \ |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
f9dba171 | 78 | %doc AUTHORS ChangeLog NEWS README TODO.txt |
c07aba34 ER |
79 | %attr(755,root,root) %{_bindir}/tcpflow |
80 | %{_mandir}/man1/tcpflow.1* |