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