]>
Commit | Line | Data |
---|---|---|
83792d38 | 1 | Summary: Collecting and processing NetFlow data |
c8111e2e | 2 | Summary(pl.UTF-8): Gromadzenie i przetwarzanie informacji o przepływie w sieci |
5603c0af | 3 | Name: flow-tools |
9a541c21 | 4 | Version: 0.68.5 |
0b3dd96d | 5 | Release: 8 |
5603c0af AM |
6 | License: BSD |
7 | Group: Applications/Networking | |
9a541c21 TP |
8 | Source0: http://flow-tools.googlecode.com/files/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 3c5e75da2822ab6b4947c928c09ea365 | |
fea0b934 | 10 | Patch0: %{name}-shebang.patch |
0672eb7c | 11 | Patch1: format-security.patch |
75b1c298 | 12 | Patch2: openssl.patch |
0b3dd96d | 13 | Patch3: duplicate-def.patch |
9a541c21 | 14 | URL: http://code.google.com/p/flow-tools/ |
360c31ed JB |
15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
5603c0af | 17 | BuildRequires: bison |
83792d38 | 18 | BuildRequires: flex |
360c31ed JB |
19 | BuildRequires: libtool |
20 | BuildRequires: libwrap-devel >= 7.6-32 | |
9a541c21 TP |
21 | BuildRequires: mysql-devel |
22 | BuildRequires: openssl-devel | |
9a76901d | 23 | BuildRequires: rpm-pythonprov |
360c31ed JB |
24 | BuildRequires: zlib-devel |
25 | Requires: %{name}-libs = %{version}-%{release} | |
5603c0af AM |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
5603c0af | 28 | %description |
83792d38 | 29 | This is a software package for collecting and processing NetFlow data |
30 | from Cisco and Juniper routers. | |
31 | ||
caea4c0f JR |
32 | %description -l pl.UTF-8 |
33 | Jest to oprogramowanie służące do gromadzenia i przetwarzania | |
34 | informacji o przepływie w sieci (NetFlow) z routerów Cisco i Juniper. | |
5603c0af | 35 | |
360c31ed JB |
36 | %package libs |
37 | Summary: flow-tools library | |
c8111e2e | 38 | Summary(pl.UTF-8): Biblioteka flow-tools |
360c31ed JB |
39 | Group: Libraries |
40 | Conflicts: flow-tools < 0.67-2 | |
41 | ||
42 | %description libs | |
43 | flow-tools library. | |
44 | ||
caea4c0f | 45 | %description libs -l pl.UTF-8 |
360c31ed JB |
46 | Biblioteka flow-tools. |
47 | ||
5603c0af | 48 | %package devel |
360c31ed | 49 | Summary: Header files flow-tools library |
c8111e2e | 50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki flow-tools |
83792d38 | 51 | Group: Development/Libraries |
360c31ed JB |
52 | Requires: %{name}-libs = %{version}-%{release} |
53 | Requires: zlib-devel | |
5603c0af AM |
54 | |
55 | %description devel | |
360c31ed | 56 | This package contains header files for flow-tools library. |
83792d38 | 57 | |
caea4c0f JR |
58 | %description devel -l pl.UTF-8 |
59 | Ten pakiet zawiera pliki nagłówkowe biblioteki flow-tools. | |
360c31ed JB |
60 | |
61 | %package static | |
62 | Summary: Static flow-tools library | |
c8111e2e | 63 | Summary(pl.UTF-8): Statyczna biblioteka flow-tools |
360c31ed JB |
64 | Group: Development/Libraries |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static flow-tools library. | |
69 | ||
caea4c0f | 70 | %description static -l pl.UTF-8 |
360c31ed | 71 | Statyczna biblioteka flow-tools. |
5603c0af AM |
72 | |
73 | %prep | |
74 | %setup -q | |
5615bcb2 | 75 | %patch0 -p1 |
0672eb7c | 76 | %patch1 -p1 |
75b1c298 | 77 | %patch2 -p1 |
0b3dd96d JR |
78 | %patch3 -p1 |
79 | ||
80 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ | |
81 | bin/flow-log2rrd \ | |
82 | bin/flow-rpt2rrd \ | |
83 | bin/flow-rptfmt | |
68f039d1 | 84 | |
5603c0af | 85 | %build |
360c31ed JB |
86 | %{__libtoolize} |
87 | %{__aclocal} | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
9a541c21 TP |
91 | %configure \ |
92 | --sysconfdir=%{_sysconfdir}/%{name} \ | |
93 | --with-mysql \ | |
94 | --with-openssl | |
5603c0af AM |
95 | %{__make} |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %{__make} install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
5603c0af AM |
103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
360c31ed JB |
106 | %post libs -p /sbin/ldconfig |
107 | %postun libs -p /sbin/ldconfig | |
108 | ||
5603c0af AM |
109 | %files |
110 | %defattr(644,root,root,755) | |
9a541c21 | 111 | %doc AUTHORS ChangeLog ChangeLog.old INSTALL README README.fork SECURITY TODO |
1e90c614 | 112 | %attr(755,root,root) %{_bindir}/flow-* |
9a541c21 | 113 | %attr(755,root,root) %{_datadir}/%{name} |
1e90c614 | 114 | %{_mandir}/man1/flow-*.1* |
360c31ed JB |
115 | |
116 | %files libs | |
117 | %defattr(644,root,root,755) | |
9a541c21 | 118 | %{_sysconfdir}/%{name} |
360c31ed | 119 | %attr(755,root,root) %{_libdir}/libft.so.*.*.* |
1e90c614 | 120 | %attr(755,root,root) %ghost %{_libdir}/libft.so.0 |
5603c0af AM |
121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
360c31ed JB |
124 | %attr(755,root,root) %{_libdir}/libft.so |
125 | %{_libdir}/libft.la | |
5603c0af | 126 | %{_includedir}/*.h |
360c31ed JB |
127 | |
128 | %files static | |
129 | %defattr(644,root,root,755) | |
130 | %{_libdir}/libft.a |