SHA256
1
0
forked from pool/rrdtool

Accepting request 38070 from devel:languages:python

Copy from devel:languages:python/rrdtool based on submit request 38070 from user anicka

OBS-URL: https://build.opensuse.org/request/show/38070
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rrdtool?expand=0&rev=23
This commit is contained in:
OBS User autobuild 2010-04-18 22:18:32 +00:00 committed by Git OBS Bridge
parent e2ee7c01b3
commit 987593c329
3 changed files with 22 additions and 2 deletions

13
rrdtool-1.4.3-double.diff Normal file
View File

@ -0,0 +1,13 @@
Index: rrdtool-1.4.3/src/rrd_format.h
===================================================================
--- rrdtool-1.4.3.orig/src/rrd_format.h
+++ rrdtool-1.4.3/src/rrd_format.h
@@ -35,7 +35,7 @@
/* changed because microsecond precision requires another field */
#define RRD_VERSION "0004"
#define RRD_VERSION3 "0003"
-#define FLOAT_COOKIE 8.642135E130
+#define FLOAT_COOKIE ((double) 8.642135E130)
typedef union unival {
unsigned long u_cnt;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 16 19:41:43 CEST 2010 - anicka@suse.cz
- fixed bnc#594981 (-double.diff)
-------------------------------------------------------------------
Tue Mar 30 18:16:24 CEST 2010 - anicka@suse.cz

View File

@ -25,9 +25,10 @@ Group: Productivity/Scientific/Math
AutoReqProv: on
Requires: perl = %{perl_version}
Version: 1.4.3
Release: 1
Release: 2
Source: %{name}-%{version}.tar.bz2
Source1: cgilib-0.5.tar.bz2
Patch: %{name}-%{version}-double.diff
Url: http://oss.oetiker.ch/rrdtool/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A tool for data logging and analysis
@ -41,11 +42,12 @@ definable time period.
%prep
%setup -q -a1
%patch -p1
%build
# first prepare cgilib
cd cgilib*
make CC=gcc CFLAGS="$RPM_OPT_FLAGS -fPIC -I."
make CC=gcc CFLAGS="$RPM_OPT_FLAGS -fPIC -I. -fexcess-precision=fast"
mkdir -p ../lb/include
cp *.h ../lb/include
mkdir -p ../lb/lib