]> git.pld-linux.org Git - packages/rrdtool.git/blob - rrdtool.spec
include perl macros
[packages/rrdtool.git] / rrdtool.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        RRDtool - round robin database
3 Name:           rrdtool
4 Version:        1.0.28
5 Release:        1
6 License:        GPL
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)
15
16 %description
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
24 interface on it.
25
26 %package devel
27 Summary:        RDDTools development.
28 Summary(pl):    Na¿êdzia programistyczne pakietu RRDtools
29 Group:          Development/Libraries
30 Group(pl):      Programowanie/Biblioteki
31 Requires:       %{name}
32 %description devel
33 %description -l pl devel
34
35 %package static
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
41 %description static
42 %description -l pl static
43
44 %prep
45 %setup -q
46 %patch -p1
47
48 %build
49 aclocal
50 automake
51 autoconf
52 %configure \
53         --enable-shared=yes \
54         --without-tclib
55 # uncoment this line ONLY IF tcl package is ready. 
56 #       --with-tclib=%{_prefix}
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 %{__make} DESTDIR=$RPM_BUILD_ROOT install
62 %{__make} DESTDIR=$RPM_BUILD_ROOT site-perl-install
63
64 install -d $RPM_BUILD_ROOT/usr/src/examples/%{name}
65
66 (cd $RPM_BUILD_ROOT/usr/src/examples/%{name};
67 mv ../../../examples/* .;
68 mv ../../../contrib .)
69
70 %post -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
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
81 %{_libdir}/perl
82 %{_mandir}/man1/*
83
84 %files devel
85 %attr(644,root,root) %{_libdir}/librrd.so
86 %{_examplesdir}/%{name}
87
88 %files static
89 %attr(755,root,root) %{_libdir}/librrd.la
90 %{_libdir}/librrd.a
This page took 0.064781 seconds and 4 git commands to generate.