summaryrefslogtreecommitdiff
path: root/tcpflow.spec
blob: 0c85644f0679602dda86715a008ccdd0b151b5f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# Conditional build:
%bcond_with	cairo		# disable Cairo even if present

Summary:	TCP Flow Recorder
Summary(pl.UTF-8):	Program zapisujący ruch TCP
Name:		tcpflow
Version:	1.6.1
Release:	1
License:	GPL v3
Group:		Applications/Networking
Source0:	http://digitalcorpora.org/downloads/%{name}/%{name}-%{version}.tar.gz
# Source0-md5:	4946a730747260cbd69e23bb0659b45b
Patch0:		format-security.patch
Patch1:		no-python.patch
URL:		https://github.com/simsong/tcpflow
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	boost-devel
BuildRequires:	bzip2-devel
%{?with_cairo:BuildRequires:	cairo-devel}
#BuildRequires:	exiv2-devel
BuildRequires:	expat-devel
BuildRequires:	fontconfig-devel
BuildRequires:	freetype-devel
BuildRequires:	http-parser-devel
BuildRequires:	libcap-ng-devel
BuildRequires:	libmd-devel
BuildRequires:	libpcap-devel
#BuildRequires:	libregex-devel
#BuildRequires:	lightgrep-devel
BuildRequires:	openssl-devel
BuildRequires:	pixman-devel
BuildRequires:	sqlite3-devel
BuildRequires:	tre-devel
BuildRequires:	zlib-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Tcpflow is program that captures data transmitted as part of TCP
connections, and and stores the data in a way that is convenient for
protocol analysis or debugging. Tcpflow stores all captured data in
two files per connection.

%description -l pl.UTF-8
Tcpflow jest programem, który przechwytuje dane przesyłane w ramach
połączeń TCP i zapisuje je w sposób wygodny do analizy lub śledzenia
protokołu - tworząc dwa pliki z danymi na każde przechwycone
połączenie.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
	--without-o3 \
	%{!?with_cairo:--enable-cairo=false}
%{__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 AUTHORS ChangeLog NEWS TODO.txt
%attr(755,root,root) %{_bindir}/tcpflow
%{_mandir}/man1/tcpflow.1*