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