]> git.pld-linux.org Git - packages/flow-tools.git/blob - flow-tools.spec
b38dd40c26317d0e9c265d1774761c6da6c8c710
[packages/flow-tools.git] / flow-tools.spec
1 Summary:        Collecting and processing NetFlow data
2 Summary(pl.UTF-8):      Gromadzenie i przetwarzanie informacji o przepływie w sieci
3 Name:           flow-tools
4 Version:        0.68
5 Release:        3
6 License:        BSD
7 Group:          Applications/Networking
8 Source0:        ftp://ftp.eng.oar.net/pub/flow-tools/%{name}-%{version}.tar.gz
9 # Source0-md5:  c9e0a8b53c79611b6bffcb9d510a5a38
10 Patch0:         %{name}-shared.patch
11 Patch1:         %{name}-gcc4.patch
12 URL:            http://www.splintered.net/sw/flow-tools/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  bison
16 BuildRequires:  flex
17 BuildRequires:  libtool
18 BuildRequires:  libwrap-devel >= 7.6-32
19 BuildRequires:  rpm-pythonprov
20 BuildRequires:  sed >= 4.0
21 BuildRequires:  zlib-devel
22 Requires:       %{name}-libs = %{version}-%{release}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _localstatedir  %{_sysconfdir}/%{name}
26
27 %description
28 This is a software package for collecting and processing NetFlow data
29 from Cisco and Juniper routers.
30
31 %description -l pl.UTF-8
32 Jest to oprogramowanie służące do gromadzenia i przetwarzania
33 informacji o przepływie w sieci (NetFlow) z routerów Cisco i Juniper.
34
35 %package libs
36 Summary:        flow-tools library
37 Summary(pl.UTF-8):      Biblioteka flow-tools
38 Group:          Libraries
39 Conflicts:      flow-tools < 0.67-2
40
41 %description libs
42 flow-tools library.
43
44 %description libs -l pl.UTF-8
45 Biblioteka flow-tools.
46
47 %package devel
48 Summary:        Header files flow-tools library
49 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki flow-tools
50 Group:          Development/Libraries
51 Requires:       %{name}-libs = %{version}-%{release}
52 Requires:       zlib-devel
53
54 %description devel
55 This package contains header files for flow-tools library.
56
57 %description devel -l pl.UTF-8
58 Ten pakiet zawiera pliki nagłówkowe biblioteki flow-tools.
59
60 %package static
61 Summary:        Static flow-tools library
62 Summary(pl.UTF-8):      Statyczna biblioteka flow-tools
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description static
67 Static flow-tools library.
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka flow-tools.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75 %patch1 -p0
76
77 %{__sed} -i -e '1s,#.*bin/python,#!%{__python},' bin/flow-log2rrd bin/flow-rpt2rrd bin/flow-rptfmt
78
79 %build
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure
86 #       --with-mysql
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   libs -p /sbin/ldconfig
99 %postun libs -p /sbin/ldconfig
100
101 %files
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog INSTALL NEWS README SECURITY TODO
104 %attr(755,root,root) %{_bindir}/flow-*
105 %{_mandir}/man1/flow-*.1*
106
107 %files libs
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/libft.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libft.so.0
111 %{_localstatedir}
112
113 %files devel
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libft.so
116 %{_libdir}/libft.la
117 %{_includedir}/*.h
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/libft.a
This page took 0.049117 seconds and 3 git commands to generate.