From 1f630ff1ae050ff15c315ac615694bb90635c7a1 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Tue, 3 Mar 2009 15:35:52 +0000 Subject: [PATCH] include cstdio for std::sprintf --- libdap-3.8.2-includes.patch | 19 +++++++++++++++++++ libdap.spec | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 libdap-3.8.2-includes.patch diff --git a/libdap-3.8.2-includes.patch b/libdap-3.8.2-includes.patch new file mode 100644 index 0000000..effbd49 --- /dev/null +++ b/libdap-3.8.2-includes.patch @@ -0,0 +1,19 @@ +diff -ru libdap-3.8.2.orig/util_mit.cc libdap-3.8.2/util_mit.cc +--- libdap-3.8.2.orig/util_mit.cc 2009-03-03 15:12:12.000000000 +0000 ++++ libdap-3.8.2/util_mit.cc 2009-03-03 15:12:52.000000000 +0000 +@@ -35,6 +35,7 @@ + + #include + #include ++#include + #include + #include + +@@ -54,6 +55,7 @@ + using std::cerr; + using std::endl; + using std::string; ++using std::sprintf; + + #include "debug.h" + diff --git a/libdap.spec b/libdap.spec index e3d6311..5209dbf 100644 --- a/libdap.spec +++ b/libdap.spec @@ -1,13 +1,14 @@ Name: libdap Summary: The C++ DAP2 library from OPeNDAP Version: 3.8.2 -Release: 2%{?dist} +Release: 3%{?dist} # the deflate program is covered by the W3C license License: LGPLv2+ and W3C Group: Development/Libraries URL: http://www.opendap.org/ Source0: http://www.opendap.org/pub/source/libdap-%{version}.tar.gz +Patch0: libdap-3.8.2-includes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -58,6 +59,7 @@ Documentation of the libdap library. %prep %setup -q +%patch0 -p1 -b .includes iconv -f latin1 -t utf8 < COPYRIGHT_W3C > COPYRIGHT_W3C.utf8 touch -r COPYRIGHT_W3C COPYRIGHT_W3C.utf8 mv COPYRIGHT_W3C.utf8 COPYRIGHT_W3C @@ -120,6 +122,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Mar 2 2009 Caolán McNamara - 3.8.2-3 +- include cstdio for std::sprintf + * Wed Feb 25 2009 Fedora Release Engineering - 3.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild