]> git.pld-linux.org Git - packages/ntop.git/blob - ntop.spec
77d048ab3d30005dfd79c7853a740488af2471e7
[packages/ntop.git] / ntop.spec
1 %define snap    01-10-26
2 Summary:        Network monitoring tool
3 Summary(pl):    Narzêdzie do monitorowania sieci
4 Name:           ntop
5 Version:        1.3.2
6 Release:        4.%(echo %{snap} | sed -e "s/-//g")
7 License:        GPL
8 Group:          Networking
9 Group(de):      Netzwerkwesen
10 Group(pl):      Sieciowe
11 Source0:        http://snapshot.ntop.org/tgz/%{name}-%{snap}.tgz
12 Patch0:         %{name}-configure.patch
13 Patch1:         %{name}-externallib.patch
14 Patch2:         %{name}-perl.patch
15 Patch3:         %{name}-am.patch
16 URL:            http://www.ntop.org/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  gd-devel >= 2.0.1
20 BuildRequires:  gdbm-devel
21 BuildRequires:  libpcap-devel
22 BuildRequires:  libpng-devel
23 BuildRequires:  libwrap-devel
24 BuildRequires:  libtool
25 BuildRequires:  ncurses-devel >= 5.2
26 BuildRequires:  openssl-devel >= 0.9.6a
27 BuildRequires:  readline-devel >= 4.2
28 BuildRequires:  ucd-snmp-devel
29 BuildRequires:  zlib-devel
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 ntop is a tool that shows the network usage, similar to what the
34 popular top Unix command does.
35
36 %description -l pl
37 ntop to narzêdzie, które pokazuje u¿ycie sieci w podobny sposób jak
38 robi to popularna Unixowa komenda top.
39
40 %prep
41 %setup -q -n %{name}-current
42 cd %{name}*
43 rm -f missing ltconfig
44 #%patch0 -p1
45 %patch2 -p1
46 %patch3 -p1
47 cd ../gdchart*
48 %patch1 -p1
49
50 %build
51 cd gdchart*
52 rm -rf gd-* zlib-*
53 libtoolize --copy --force
54 aclocal
55 autoconf
56 %configure
57 %{__make}
58
59 cd ../%{name}*
60 mv -f acinclude.m4.in acinclude.m4
61 libtoolize --copy --force
62 aclocal
63 autoconf
64 automake -a -c -i
65 %configure \
66         --with-gdchart-root=../gdchart0.94c \
67         --with-ossl-root=%{_prefix} \
68         --enable-tcpwrap \
69         --with-gnu-ld \
70         --localstatedir=%{_var}/%{ntop}
71         
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 cd %{name}*
77 install -d      $RPM_BUILD_ROOT%{_var}/%{name}
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81         
82 mv $RPM_BUILD_ROOT%{_bindir}/*.pem      $RPM_BUILD_ROOT%{_datadir}/%{name}
83
84 gzip -9nf AUTHORS NEWS README THANKS
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc */*.gz
95 %dir %{_var}/%{name}
96 %attr(755,root,root) %{_bindir}/*
97 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
98 %attr(755,root,root) %{_libdir}/lib*.la
99 %dir %{_libdir}/%{name}
100 %dir %{_libdir}/%{name}/plugins
101 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so*
102 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.la
103 %{_datadir}/%{name}
104 %{_mandir}/man*/*
This page took 0.543495 seconds and 3 git commands to generate.