]> git.pld-linux.org Git - packages/tcpflow.git/blob - tcpflow.spec
e3673bb62881d5a237be1e794e6854e8cf715794
[packages/tcpflow.git] / tcpflow.spec
1 #
2 # Conditional build:
3 %bcond_with     cairo           # disable Cairo even if present
4
5 Summary:        TCP Flow Recorder
6 Summary(pl.UTF-8):      Program zapisujący ruch TCP
7 Name:           tcpflow
8 Version:        1.4.5
9 Release:        3
10 License:        GPL v3
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)
38
39 %description
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.
44
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.
50
51 %prep
52 %setup -q
53 %patch0 -p1
54 %patch1 -p1
55 %patch2 -p1
56
57 %build
58 %{__aclocal} -I m4
59 %{__autoconf}
60 %{__autoheader}
61 %{__automake}
62 %configure \
63         CPPFLAGS="%{rpmcppflags} -std=c++11" \
64         %{!?with_cairo:--enable-cairo=false}
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
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)
78 %doc AUTHORS ChangeLog NEWS README TODO.txt
79 %attr(755,root,root) %{_bindir}/tcpflow
80 %{_mandir}/man1/tcpflow.1*
This page took 0.065392 seconds and 2 git commands to generate.