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