]> git.pld-linux.org Git - packages/ntop.git/blobdiff - ntop.spec
- Add require lib
[packages/ntop.git] / ntop.spec
index e695643841ccfd7c469f6c293d08ebb59e6e4cc8..ae0b1c3217fcda1d7d2ef4d9c953f2e4c8c19a62 100644 (file)
--- a/ntop.spec
+++ b/ntop.spec
@@ -1,23 +1,34 @@
+%define        snap    02-10-03
 Summary:       Network monitoring tool
 Summary(pl):   Narzêdzie do monitorowania sieci
 Name:          ntop
-Version:       1.3.2
-Release:       1
+Version:       2.1
+Release:       0.5.%(echo %{snap} | sed -e "s/-//g")
 License:       GPL
 Group:         Networking
-Group(de):     Netzwerkwesen
-Group(pl):     Sieciowe
-Source0:       ftp://ftp.ntop.org/pub/local/ntop/snapshots/%{name}-src-Oct-26-2000.tar.gz
-Patch0:                %{name}-configure.patch
-Patch1:                %{name}-plugins.patch
+Source0:       http://snapshot.ntop.org/tgz/%{name}-%{snap}.tgz
+#Patch0:       %{name}-configure.patch
+Patch1:                %{name}-externallib.patch
+Patch2:                %{name}-perl.patch
+Patch3:                %{name}-am.patch
+#Patch4:               %{name}-plugins-Makefile.patch
+Patch5:                %{name}-pep-Makefile.patch
+Patch6:                %{name}-Makefile.patch
 URL:           http://www.ntop.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gd-devel >= 2.0.1
+BuildRequires: gdbm-devel
 BuildRequires: libpcap-devel
+BuildRequires: libpcap-static
+BuildRequires: libpng-devel
 BuildRequires: libwrap-devel
-BuildRequires: ncurses-devel
-BuildRequires: readline-devel
-BuildRequires: openssl-devel
+BuildRequires: libtool
+BuildRequires: ncurses-devel >= 5.2
+BuildRequires: openssl-devel >= 0.9.6a
+BuildRequires: readline-devel >= 4.2
 BuildRequires: ucd-snmp-devel
-BuildRequires: tar
+BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -29,54 +40,75 @@ ntop to narz
 robi to popularna Unixowa komenda top.
 
 %prep
-%setup -q -c
-tar xzf %{name}-*.tar.gz
-tar xzf gdchart*.tar.gz
-rm -f *.tar.gz
-cd %{name}-%{version}
-%patch0 -p1
+%setup -q -n %{name}-current
+cd %{name}*
+#rm -f missing ltconfig
+#%patch0 -p1
+%patch2 -p1
+%patch3 -p1
+cd ../gdchart*
 %patch1 -p1
+cd ../%{name}*
+%patch6 -p0
+
+cd plugins
+#%patch4 -p0
+cd pep
+%patch5 -p0
 
 %build
 cd gdchart*
+rm -rf gd-* zlib-*
+%{__libtoolize}
+aclocal
+%{__autoconf}
 %configure
 %{__make}
 
-cd ../%{name}-%{version}
-libtoolize --copy --force
+cd ../%{name}*
+#mv -f acinclude.m4.in acinclude.m4
+#rm -f missing
+#%{__libtoolize}
 aclocal
-autoheader
-automake --add-missing --gnu
-autoconf
+%{__autoconf}
+%{__automake}
 %configure \
-       --with-gdchart-root=../gdchart* \
+       --with-gdchart-root=../gdchart0.94c \
        --with-ossl-root=%{_prefix} \
        --enable-tcpwrap \
-       --disable-mt \
-       --localstatedir=%{_var}/%{ntop}
+       --with-gnu-ld \
+       --localstatedir=%{_var}/lib/%{name}
        
+
+%{__make}
+cd plugins
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-cd %{name}-%{version}
-rm -rf $RPM_BUILD_ROOT
+cd %{name}*
+install -d     $RPM_BUILD_ROOT%{_var}/lib/%{name}
 
-install -d $RPM_BUILD_ROOT%{_var}/%{name}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_bindir}/*.pem
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf AUTHORS FAQ KNOWN_BUGS NEWS README THANKS TODO
+mv $RPM_BUILD_ROOT%{_bindir}/*.pem $RPM_BUILD_ROOT%{_datadir}/%{name}
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+#rm -rf $RPM_BUILD_ROOT
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc */*.gz
-%dir %{_var}/%{name}
+%doc ntop/AUTHORS ntop/NEWS ntop/README ntop/THANKS
+%dir %{_var}/lib/%{name}
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*
-%{_libdir}/%{name}
-%{_datadir}/%{name}
+%attr(755,root,root) %{_libdir}/*
+#%attr(755,root,root) %{_libdir}/lib*.la
+#%dir %{_libdir}/%{name}
+#%dir %{_libdir}/%{name}/plugins
+#%attr(755,root,root) %{_libdir}/%{name}/plugins/
+#%{_datadir}/%{name}
 %{_mandir}/man*/*
This page took 0.029357 seconds and 4 git commands to generate.