]> git.pld-linux.org Git - packages/flow-tools.git/blob - flow-tools.spec
- fix more shebangs, remove duplicate global var, rel 8
[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
5 Release:        8
6 License:        BSD
7 Group:          Applications/Networking
8 Source0:        http://flow-tools.googlecode.com/files/%{name}-%{version}.tar.bz2
9 # Source0-md5:  3c5e75da2822ab6b4947c928c09ea365
10 Patch0:         %{name}-shebang.patch
11 Patch1:         format-security.patch
12 Patch2:         openssl.patch
13 Patch3:         duplicate-def.patch
14 URL:            http://code.google.com/p/flow-tools/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  libtool
20 BuildRequires:  libwrap-devel >= 7.6-32
21 BuildRequires:  mysql-devel
22 BuildRequires:  openssl-devel
23 BuildRequires:  rpm-pythonprov
24 BuildRequires:  zlib-devel
25 Requires:       %{name}-libs = %{version}-%{release}
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This is a software package for collecting and processing NetFlow data
30 from Cisco and Juniper routers.
31
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.
35
36 %package libs
37 Summary:        flow-tools library
38 Summary(pl.UTF-8):      Biblioteka flow-tools
39 Group:          Libraries
40 Conflicts:      flow-tools < 0.67-2
41
42 %description libs
43 flow-tools library.
44
45 %description libs -l pl.UTF-8
46 Biblioteka flow-tools.
47
48 %package devel
49 Summary:        Header files flow-tools library
50 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki flow-tools
51 Group:          Development/Libraries
52 Requires:       %{name}-libs = %{version}-%{release}
53 Requires:       zlib-devel
54
55 %description devel
56 This package contains header files for flow-tools library.
57
58 %description devel -l pl.UTF-8
59 Ten pakiet zawiera pliki nagłówkowe biblioteki flow-tools.
60
61 %package static
62 Summary:        Static flow-tools library
63 Summary(pl.UTF-8):      Statyczna biblioteka flow-tools
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66
67 %description static
68 Static flow-tools library.
69
70 %description static -l pl.UTF-8
71 Statyczna biblioteka flow-tools.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76 %patch1 -p1
77 %patch2 -p1
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
84
85 %build
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         --sysconfdir=%{_sysconfdir}/%{name} \
93         --with-mysql \
94         --with-openssl
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   libs -p /sbin/ldconfig
107 %postun libs -p /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog ChangeLog.old INSTALL README README.fork SECURITY TODO
112 %attr(755,root,root) %{_bindir}/flow-*
113 %attr(755,root,root) %{_datadir}/%{name}
114 %{_mandir}/man1/flow-*.1*
115
116 %files libs
117 %defattr(644,root,root,755)
118 %{_sysconfdir}/%{name}
119 %attr(755,root,root) %{_libdir}/libft.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libft.so.0
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libft.so
125 %{_libdir}/libft.la
126 %{_includedir}/*.h
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libft.a
This page took 0.084603 seconds and 3 git commands to generate.