1 %include /usr/lib/rpm/macros.perl
2 Summary: RRDtool - round robin database
7 Group: Applications/Databases
8 Group(pl): Aplikacje/Bazy danych
9 Source0: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtools/pub/%{name}-%{version}.tar.gz
10 #Patch0: /%{name}-perl-location.patch
11 Patch0: %{name}-makefile.patch
12 URL: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtol/
13 #BuildRequired: tcl-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 RRD is the Acronym for Round Robin Database. RRD is a system to store
18 and display time-series data (i.e. network bandwidth, machine-room
19 temperature, server load average). It stores the data in a very
20 compact way that will not expand over time, and it presents useful
21 graphs by processing the data to enforce a certain data density. It
22 can be used either via simple wrapper scripts (from shell or Perl) or
23 via frontends that poll network devices and put a friendly user
27 Summary: RDDTools development.
28 Summary(pl): Na¿êdzia programistyczne pakietu RRDtools
29 Group: Development/Libraries
30 Group(pl): Programowanie/Biblioteki
33 %description -l pl devel
36 Summary: RDDTools static library.
37 Summary(pl): Statycznie linkowana biblioteka RRDtools.
38 Group: Development/Libraries
39 Group(pl): Programowanie/Biblioteki
40 Requires: %{name}-devel
42 %description -l pl static
55 # uncoment this line ONLY IF tcl package is ready.
56 # --with-tclib=%{_prefix}
60 rm -rf $RPM_BUILD_ROOT
61 %{__make} DESTDIR=$RPM_BUILD_ROOT install
62 %{__make} DESTDIR=$RPM_BUILD_ROOT site-perl-install
64 install -d $RPM_BUILD_ROOT/usr/src/examples/%{name}
66 (cd $RPM_BUILD_ROOT/usr/src/examples/%{name};
67 mv ../../../examples/* .;
68 mv ../../../contrib .)
70 %post -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_bindir}/rrd*
79 %attr(755,root,root) %{_bindir}/trytime
80 %attr(755,root,root) %{_libdir}/librrd.so.0.0.0
85 %attr(644,root,root) %{_libdir}/librrd.so
86 %{_examplesdir}/%{name}
89 %attr(755,root,root) %{_libdir}/librrd.la