]> git.pld-linux.org Git - packages/rrdtool.git/blob - rrdtool.spec
1ffa19e8420ab7309276c4bb3dc6bb3641cf973d
[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):    Narzêdzia programistyczne pakietu RRDtools
29 Group:          Development/Libraries
30 Group(de):      Entwicklung/Libraries
31 Group(fr):      Development/Librairies
32 Group(pl):      Programowanie/Biblioteki
33 Requires:       %{name}
34
35 %description devel
36 RDDTools development files.
37
38 %description -l pl devel
39 Narzêdzia programistyczne pakietu RRDtools.
40
41 %package static
42 Summary:        RDDTools static library
43 Summary(pl):    Statyczne biblioteki RRDtools
44 Group:          Development/Libraries
45 Group(de):      Entwicklung/Libraries
46 Group(fr):      Development/Librairies
47 Group(pl):      Programowanie/Biblioteki
48 Requires:       %{name}-devel
49
50 %description static
51 RDDTools static library.
52
53 %description -l pl static
54 Statyczne biblioteki RRDtools.
55
56 %prep
57 %setup -q
58 %patch -p1
59
60 %build
61 aclocal
62 automake
63 autoconf
64 %configure \
65         --enable-shared=yes \
66         --without-tclib
67 # uncoment this line ONLY IF tcl package is ready. 
68 #       --with-tclib=%{_prefix}
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 %{__make} DESTDIR=$RPM_BUILD_ROOT install
74 %{__make} DESTDIR=$RPM_BUILD_ROOT site-perl-install
75
76 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
77
78 (cd $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name};
79 mv -f ../../../examples/* .;
80 mv -f ../../../contrib .)
81
82 %post   -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_bindir}/rrd*
91 %attr(755,root,root) %{_bindir}/trytime
92 %attr(755,root,root) %{_libdir}/lib*.so.*.*
93 %{_libdir}/perl
94 %{_mandir}/man1/*
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(644,root,root) %{_libdir}/librrd.so
99 %attr(644,root,root) %{_libdir}/librrd.la
100 %{_examplesdir}/%{name}
101
102 %files static
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/librrd.la
105 %{_libdir}/librrd.a
This page took 0.069 seconds and 2 git commands to generate.