]> git.pld-linux.org Git - packages/rrdtool.git/blob - rrdtool.spec
- added %%Requires: perl >= 5.005
[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 Requires:       perl >= 5.005
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 RRD is the Acronym for Round Robin Database. RRD is a system to store
19 and display time-series data (i.e. network bandwidth, machine-room
20 temperature, server load average). It stores the data in a very
21 compact way that will not expand over time, and it presents useful
22 graphs by processing the data to enforce a certain data density. It
23 can be used either via simple wrapper scripts (from shell or Perl) or
24 via frontends that poll network devices and put a friendly user
25 interface on it.
26
27 %package devel
28 Summary:        RDDTools development
29 Summary(pl):    Narzêdzia programistyczne pakietu RRDtools
30 Group:          Development/Libraries
31 Group(de):      Entwicklung/Libraries
32 Group(fr):      Development/Librairies
33 Group(pl):      Programowanie/Biblioteki
34 Requires:       %{name}
35
36 %description devel
37 RDDTools development files.
38
39 %description -l pl devel
40 Narzêdzia programistyczne pakietu RRDtools.
41
42 %package static
43 Summary:        RDDTools static library
44 Summary(pl):    Statyczne biblioteki RRDtools
45 Group:          Development/Libraries
46 Group(de):      Entwicklung/Libraries
47 Group(fr):      Development/Librairies
48 Group(pl):      Programowanie/Biblioteki
49 Requires:       %{name}-devel
50
51 %description static
52 RDDTools static library.
53
54 %description -l pl static
55 Statyczne biblioteki RRDtools.
56
57 %prep
58 %setup -q
59 %patch -p1
60
61 %build
62 aclocal
63 automake
64 autoconf
65 %configure \
66         --enable-shared=yes \
67         --without-tclib
68 # uncoment this line ONLY IF tcl package is ready. 
69 #       --with-tclib=%{_prefix}
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 %{__make} DESTDIR=$RPM_BUILD_ROOT install
75 %{__make} DESTDIR=$RPM_BUILD_ROOT site-perl-install
76
77 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
78
79 (cd $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name};
80 mv -f ../../../examples/* .;
81 mv -f ../../../contrib .)
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_bindir}/rrd*
92 %attr(755,root,root) %{_bindir}/trytime
93 %attr(755,root,root) %{_libdir}/lib*.so.*.*
94 %{_libdir}/perl
95 %{_mandir}/man1/*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(644,root,root) %{_libdir}/librrd.so
100 %attr(644,root,root) %{_libdir}/librrd.la
101 %{_examplesdir}/%{name}
102
103 %files static
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/librrd.la
106 %{_libdir}/librrd.a
This page took 0.076753 seconds and 3 git commands to generate.