File: rrdtool.spec

package info (click to toggle)
rrdtool 1.0.49-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,820 kB
  • ctags: 4,214
  • sloc: ansic: 84,833; sh: 17,990; perl: 1,742; makefile: 423; php: 162; awk: 70
file content (109 lines) | stat: -rw-r--r-- 3,889 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
%define DISTRO %([ -f /etc/redhat-release ] && sed -e "s/\\(.\\+\\)\\( Linux release \\)\\(.\\+\\)\\( .\\+\\)/\\1 \\3/" /etc/redhat-release)
%define DISTRO_REL %([ -f /etc/redhat-release ] && sed -e "s/\\(.\\+ release \\)\\(.\\+\\)\\( .\\+\\)/\\2/" /etc/redhat-release)
%define REQ_RPM_REL %(rpm -q --queryformat "%{VERSION}" rpm)
%define GLIBC_REL %(rpm -q --queryformat "%{VERSION}" glibc)

Summary: 	RRDtool - round robin database
Name: 		rrdtool
Version:	1.0.49
Release:	1.%{DISTRO_REL}
Copyright: 	GPL
Group: 		Applications/Databases
Source: 	http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/%{name}-%{version}.tar.gz
Buildroot: 	/var/tmp/rrdtool-root
Prefix:	 	%{_prefix}
BuildRequires:	tcl
Url: 		http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
Vendor: 	Tobi Oetiker <oetiker@ee.ethz.ch>
Packager:	Henri Gomez <hgomez@users.sourceforge.net>, Ragnar Kjrstad <rrdtool@ragnark.vestdata.no>

%description
RRD is the Acronym for Round Robin Database. RRD is a system to store and 
display time-series data (i.e. network bandwidth, machine-room temperature, 
server load average). It stores the data in a very compact way that will not 
expand over time, and it presents useful graphs by processing the data to 
enforce a certain data density. It can be used either via simple wrapper 
scripts (from shell or Perl) or via frontends that poll network devices and 
put a friendly user interface on it.

%package devel
Summary: RRDtool - round robin database static libraries and headers
Group: Development/Libraries
Requires: rrdtool
%description devel
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). This package allow you to use directly this library.


%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --with-tcllib=%{_libdir} --prefix=%{_prefix} --enable-shared
make
# @perl@ and @PERL@ correction
cd examples
find . -type f -exec /usr/bin/perl -e 's/^#! \@perl\@/#!\/usr\/bin\/perl/gi' -p -i \{\} \;
find . -name "*.pl" -exec perl -e 's;\015;;gi' -p -i \{\} \;
# clean-up pod2man

%install
rm -rf ${RPM_BUILD_ROOT}
make install prefix=${RPM_BUILD_ROOT}/usr imandir=${RPM_BUILD_ROOT}%{_mandir}/man1 mandir=${RPM_BUILD_ROOT}%{_mandir}

# reduce executables len
strip ${RPM_BUILD_ROOT}/%{_bindir}/rrd*
# reduce libraries len
strip ${RPM_BUILD_ROOT}/%{_libdir}/librrd*.so
strip ${RPM_BUILD_ROOT}/%{_libdir}/librrd*.a
strip ${RPM_BUILD_ROOT}/%{_libdir}/perl/auto/RRDs/RRDs.so
eval `perl '-V:installarchlib'`
install -d ${RPM_BUILD_ROOT}/$installarchlib
mv -f ${RPM_BUILD_ROOT}/%{_libdir}/perl/* ${RPM_BUILD_ROOT}/$installarchlib
# now create include and files
install -d ${RPM_BUILD_ROOT}/%{_includedir}
install -m644 src/rrd*.h ${RPM_BUILD_ROOT}/%{_includedir}
install -m755 contrib/log2rrd/log2rrd.pl ${RPM_BUILD_ROOT}/%{_bindir}
# remove .in/.am files
find  . -type f -name "*.in" -exec rm -f \{\} \;
find  . -type f -name "*.am" -exec rm -f \{\} \;
find ${RPM_BUILD_ROOT}/$installarchlib -type f -print | sed "s@^${RPM_BUILD_ROOT}@@g" > %{name}-%{version}-file

%clean
rm -rf ${RPM_BUILD_ROOT}
 
%files -f %{name}-%{version}-file
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/librrd.so*
%{_mandir}/man1/*
%doc C* README TODO doc/*.txt doc/*.html contrib/*

%files devel
%defattr(-,root,root)
%{_libdir}/lib*.a
%{_includedir}/*.h
%doc examples/*


%changelog
* Wed Mar 26 2003 Tom Scanlan <tscanlan-web@they.gotdns.org>
- 1.0.41

* Mon Oct 28 2002 Andrew Pam <xanni@sericyb.com.au>
- 1.0.40

* Fri Jul 05 2002 Henri Gomez <hgomez@users.sourceforge.net>
- 1.0.39

* Mon Jun 03 2002 Henri Gomez <hgomez@users.sourceforge.net>
- 1.0.38

* Fri Apr 19 2002 Henri Gomez <hgomez@users.sourceforge.net>
- 1.0.37

* Tue Mar 12 2002 Henri Gomez <hgomez@users.sourceforge.net>
- 1.0.34
- rrdtools include zlib 1.1.4 which fix vulnerabilities in 1.1.3