diff --git a/libdap-include.patch b/libdap-include.patch new file mode 100644 index 0000000..e651c50 --- /dev/null +++ b/libdap-include.patch @@ -0,0 +1,24 @@ +diff -up libdap-3.14.0/media_types.h.include libdap-3.14.0/media_types.h +--- libdap-3.14.0/media_types.h.include 2015-02-12 20:16:20.000000000 -0700 ++++ libdap-3.14.0/media_types.h 2015-04-17 19:35:06.752767086 -0600 +@@ -26,6 +26,8 @@ + #ifndef MEDIA_TYPES_H_ + #define MEDIA_TYPES_H_ + ++#include ++ + static std::string DAS1 = "dods_das"; + static std::string DAS2 = "dods-das"; + +diff -up libdap-3.14.0/mime_util.h.include libdap-3.14.0/mime_util.h +--- libdap-3.14.0/mime_util.h.include 2015-02-12 20:16:20.000000000 -0700 ++++ libdap-3.14.0/mime_util.h 2015-04-17 19:36:40.586900129 -0600 +@@ -47,6 +47,8 @@ + #include "EncodingType.h" + #endif + ++#include ++ + namespace libdap + { + diff --git a/libdap.spec b/libdap.spec index e610bfe..c389618 100644 --- a/libdap.spec +++ b/libdap.spec @@ -13,6 +13,8 @@ Patch0: libdap-offline.patch Patch1: libdap-flex.patch # Fix getopt() Patch2: libdap-getopt.patch +# Add needed includes +Patch3: libdap-include.patch # For autoreconf BuildRequires: libtool @@ -71,6 +73,7 @@ Documentation of the libdap library. %patch0 -p1 -b .offline %patch1 -p1 -b .flex %patch2 -p1 -b .getopt +%patch3 -p1 -b .include iconv -f latin1 -t utf8 < COPYRIGHT_W3C > COPYRIGHT_W3C.utf8 touch -r COPYRIGHT_W3C COPYRIGHT_W3C.utf8 mv COPYRIGHT_W3C.utf8 COPYRIGHT_W3C @@ -143,6 +146,9 @@ make check %changelog +* Fri Apr 17 2015 Orion Poplawski - 3.14.0-3 +- Add patch to add needed includes + * Fri Apr 17 2015 Orion Poplawski - 3.14.0-2 - Ship libtest-types.a for dependent package tests