From 78cc4e97ee927a0b38fcab42450d7295d4060777 Mon Sep 17 00:00:00 2001 From: Thomas Sailer Date: Thu, 6 Mar 2014 12:22:26 +0100 Subject: [PATCH] windows.h must be lowercase --- lcms2-mingw.patch | 11 +++++++++++ mingw-lcms2.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 lcms2-mingw.patch diff --git a/lcms2-mingw.patch b/lcms2-mingw.patch new file mode 100644 index 0000000..c33e2bf --- /dev/null +++ b/lcms2-mingw.patch @@ -0,0 +1,11 @@ +--- src/lcms2_internal.h.mingw 2014-03-06 12:12:07.654380274 +0100 ++++ src/lcms2_internal.h 2014-03-06 12:12:19.590079255 +0100 +@@ -174,7 +174,7 @@ + #ifdef CMS_IS_WINDOWS_ + + #define WIN32_LEAN_AND_MEAN 1 +-#include ++#include + + + // From: http://locklessinc.com/articles/pthreads_on_windows/ diff --git a/mingw-lcms2.spec b/mingw-lcms2.spec index a6a74d2..57c70c6 100644 --- a/mingw-lcms2.spec +++ b/mingw-lcms2.spec @@ -11,6 +11,7 @@ Group: Development/Libraries License: MIT URL: http://www.littlecms.com/ Source0: http://www.littlecms.com/%{mingw_pkg_name}-%{version}%{prerelease}.tar.gz +Patch0: lcms2-mingw.patch BuildRequires: mingw32-filesystem BuildRequires: mingw64-filesystem @@ -69,6 +70,7 @@ mingw64-%{mingw_pkg_name} development. %prep %setup -q -n %{mingw_pkg_name}-%{version}%{prerelease} +%patch0 -p0 -b .mingw iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.x mv -f AUTHORS.x AUTHORS