diff --git a/fix-header-include.patch b/fix-header-include.patch new file mode 100644 index 0000000..be45a08 --- /dev/null +++ b/fix-header-include.patch @@ -0,0 +1,10 @@ +--- libmng-2.0.2.orig/libmng_types.h 2013-01-20 04:45:24.000000000 +0100 ++++ libmng-2.0.2/libmng_types.h 2014-05-20 19:10:09.460790466 +0200 +@@ -204,6 +204,7 @@ + #define HAVE_BOOLEAN + typedef int boolean; + #endif ++#include + #include + #endif /* MNG_INCLUDE_IJG6B */ + diff --git a/libmng.changes b/libmng.changes index 33cae2f..b869f86 100644 --- a/libmng.changes +++ b/libmng.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 20 17:12:33 UTC 2014 - hrvoje.senjan@gmail.com + +- Added fix-header-include.patch; make libmng_types header usable + to outside packages/libraries + ------------------------------------------------------------------- Sat May 17 21:56:29 UTC 2014 - hrvoje.senjan@gmail.com diff --git a/libmng.spec b/libmng.spec index 069d666..dfa9e99 100644 --- a/libmng.spec +++ b/libmng.spec @@ -38,6 +38,8 @@ Url: http://www.libmng.com/ Source0: http://downloads.sourceforge.net/project/%{name}/%{name}-devel/%{version}/%{name}-%{version}.tar.xz Source1: baselibs.conf Patch0: libmng-1.0.9-dont-leak-zlib-streams.diff +# PATCH-FIX-UPSTREAM fix-header-include.patch -- make libmng_types header usable to outside packages/libraries +Patch1: fix-header-include.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -77,6 +79,7 @@ This package contains the static library and the header files. %prep %setup -q %patch0 +%patch1 -p1 %build # This is not zlib licensed and unused, just as a caution, bnc#744320