diff --git a/exempi-upstream_gcc44_fix.patch b/exempi-upstream_gcc44_fix.patch new file mode 100644 index 0000000..9188bdb --- /dev/null +++ b/exempi-upstream_gcc44_fix.patch @@ -0,0 +1,36 @@ +diff --git a/exempi/tests/utils.cpp b/exempi/tests/utils.cpp +index 64be1ee..ee1c3a9 100644 +--- a/exempi/tests/utils.cpp ++++ b/exempi/tests/utils.cpp +@@ -34,6 +34,7 @@ + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#include + + #include + +diff --git a/samples/source/XMPFilesCoverage.cpp b/samples/source/XMPFilesCoverage.cpp +index dc9ce41..007c12b 100644 +--- a/samples/source/XMPFilesCoverage.cpp ++++ b/samples/source/XMPFilesCoverage.cpp +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + + #define TXMP_STRING_TYPE std::string + #define XMP_INCLUDE_XMPFILES 1 +diff --git a/source/common/XML_Node.cpp b/source/common/XML_Node.cpp +index de3866f..75298a8 100644 +--- a/source/common/XML_Node.cpp ++++ b/source/common/XML_Node.cpp +@@ -11,6 +11,7 @@ + + #include + #include ++#include + #include + + // ! Can't include XMP..._Impl.hpp - used by both Core and Files. diff --git a/exempi.spec b/exempi.spec index 51a8fff..48325d3 100644 --- a/exempi.spec +++ b/exempi.spec @@ -1,11 +1,12 @@ Summary: Library for easy parsing of XMP metadata Name: exempi Version: 2.1.0 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: System Environment/Libraries URL: http://libopenraw.freedesktop.org/wiki/Exempi Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz +Patch0: exempi-upstream_gcc44_fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: boost-devel expat-devel zlib-devel pkgconfig @@ -26,6 +27,7 @@ developing with exempi %prep %setup -q +%patch0 -p1 -b .gcc44 %build %configure LDFLAGS="-L%{_libdir}" CPPFLAGS="-I%{_includedir}" @@ -61,6 +63,9 @@ rm -rf %{buildroot} %{_libdir}/pkgconfig/*.pc %changelog +* Wed Feb 04 2009 Deji Akingunola - 2.1.0-2 +- Add patch to build with gcc-4.4 + * Tue Jan 06 2009 Deji Akingunola - 2.1.0-1 - Update to 2.1.0