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