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