]> git.pld-linux.org Git - packages/flow-tools.git/blobdiff - flow-tools.spec
- fix more shebangs, remove duplicate global var, rel 8
[packages/flow-tools.git] / flow-tools.spec
index 1b44226c432e98e2748c6771fbb5b2ec1107142d..221baafe03318193bde92ac2e0291be1b02fe9c7 100644 (file)
@@ -1,49 +1,53 @@
 Summary:       Collecting and processing NetFlow data
-Summary(pl):   Gromadzenie i przetwarzanie informacji o przep³ywie w sieci
+Summary(pl.UTF-8):     Gromadzenie i przetwarzanie informacji o przepływie w sieci
 Name:          flow-tools
-Version:       0.68
-Release:       1
+Version:       0.68.5
+Release:       8
 License:       BSD
 Group:         Applications/Networking
-Source0:       ftp://ftp.eng.oar.net/pub/flow-tools/%{name}-%{version}.tar.gz
-# Source0-md5: c9e0a8b53c79611b6bffcb9d510a5a38
-Patch0:                %{name}-shared.patch
-URL:           http://www.splintered.net/sw/flow-tools/
+Source0:       http://flow-tools.googlecode.com/files/%{name}-%{version}.tar.bz2
+# Source0-md5: 3c5e75da2822ab6b4947c928c09ea365
+Patch0:                %{name}-shebang.patch
+Patch1:                format-security.patch
+Patch2:                openssl.patch
+Patch3:                duplicate-def.patch
+URL:           http://code.google.com/p/flow-tools/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bison
 BuildRequires: flex
 BuildRequires: libtool
 BuildRequires: libwrap-devel >= 7.6-32
+BuildRequires: mysql-devel
+BuildRequires: openssl-devel
+BuildRequires: rpm-pythonprov
 BuildRequires: zlib-devel
 Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _localstatedir  %{_sysconfdir}/%{name}
-
 %description
 This is a software package for collecting and processing NetFlow data
 from Cisco and Juniper routers.
 
-%description -l pl
-Jest to oprogramowanie s³u¿±ce do gromadzenia i przetwarzania
-informacji o przep³ywie w sieci (NetFlow) z routerów Cisco i Juniper.
+%description -l pl.UTF-8
+Jest to oprogramowanie służące do gromadzenia i przetwarzania
+informacji o przepływie w sieci (NetFlow) z routerów Cisco i Juniper.
 
 %package libs
 Summary:       flow-tools library
-Summary(pl):   Biblioteka flow-tools
+Summary(pl.UTF-8):     Biblioteka flow-tools
 Group:         Libraries
 Conflicts:     flow-tools < 0.67-2
 
 %description libs
 flow-tools library.
 
-%description libs -l pl
+%description libs -l pl.UTF-8
 Biblioteka flow-tools.
 
 %package devel
 Summary:       Header files flow-tools library
-Summary(pl):   Pliki nag³ówkowe biblioteki flow-tools
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki flow-tools
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      zlib-devel
@@ -51,24 +55,32 @@ Requires:   zlib-devel
 %description devel
 This package contains header files for flow-tools library.
 
-%description devel -l pl
-Ten pakiet zawiera pliki nag³ówkowe biblioteki flow-tools.
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe biblioteki flow-tools.
 
 %package static
 Summary:       Static flow-tools library
-Summary(pl):   Statyczna biblioteka flow-tools
+Summary(pl.UTF-8):     Statyczna biblioteka flow-tools
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static flow-tools library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka flow-tools.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
+      bin/flow-log2rrd \
+      bin/flow-rpt2rrd \
+      bin/flow-rptfmt
 
 %build
 %{__libtoolize}
@@ -76,8 +88,10 @@ Statyczna biblioteka flow-tools.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
-#      --with-mysql
+%configure \
+       --sysconfdir=%{_sysconfdir}/%{name} \
+       --with-mysql \
+       --with-openssl
 %{__make}
 
 %install
@@ -94,14 +108,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog INSTALL NEWS README SECURITY TODO
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
+%doc AUTHORS ChangeLog ChangeLog.old INSTALL README README.fork SECURITY TODO
+%attr(755,root,root) %{_bindir}/flow-*
+%attr(755,root,root) %{_datadir}/%{name}
+%{_mandir}/man1/flow-*.1*
 
 %files libs
 %defattr(644,root,root,755)
+%{_sysconfdir}/%{name}
 %attr(755,root,root) %{_libdir}/libft.so.*.*.*
-%{_localstatedir}
+%attr(755,root,root) %ghost %{_libdir}/libft.so.0
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.060797 seconds and 4 git commands to generate.