]> git.pld-linux.org Git - packages/rrdtool.git/blob - rrdtool.spec
- release 4
[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.33
5 Release:        4
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 Patch1:         %{name}-perl-install.patch
12 URL:            http://ee-staff.ethz.ch/~oetiker/webtools/rrdtol/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 #BuildRequired: tcl-devel
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 %patch0 -p1
61 %patch1 -p1
62
63 %build
64 aclocal
65 autoconf
66 automake -a -c
67 %configure \
68         --enable-shared=yes \
69         --without-tclib
70 # uncoment this line ONLY IF tcl package is ready. 
71 #       --with-tclib=%{_prefix}
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT \
80         perl_sitearch=%{perl_sitearch}
81
82 %{__make} site-perl-install \
83         DESTDIR=$RPM_BUILD_ROOT \
84         perl_sitearch=%{perl_sitearch}
85
86 (cd $RPM_BUILD_ROOT%{_examplesdir}/%{name};
87 mv -f ../../../examples/* .;
88 mv -f ../../../contrib .)
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %files
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/rrd*
99 %attr(755,root,root) %{_bindir}/trytime
100 %attr(755,root,root) %{_libdir}/lib*.so.*.*
101 %{perl_sitearch}/*.pm
102 %dir %{perl_sitearch}/auto/RRDs
103 %{perl_sitearch}/auto/RRDs/RRDs.bs
104 %attr(755,root,root) %{perl_sitearch}/auto/RRDs/RRDs.so
105 %{_mandir}/man1/*
106
107 %files devel
108 %defattr(644,root,root,755)
109 %attr(644,root,root) %{_libdir}/librrd.so
110 %attr(644,root,root) %{_libdir}/librrd.la
111 %{_examplesdir}/%{name}
112
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/librrd.a
This page took 0.032064 seconds and 4 git commands to generate.