Accepting request 234880 from home:sumski:branches:graphics

Added fix-header-include.patch; make libmng_types header usable to outside packages/libraries

this shall be needed for OF:staging:D

OBS-URL: https://build.opensuse.org/request/show/234880
OBS-URL: https://build.opensuse.org/package/show/graphics/libmng?expand=0&rev=15
This commit is contained in:
Ismail Dönmez 2014-05-21 08:56:03 +00:00 committed by Git OBS Bridge
parent 9f9c449ad2
commit 60e0c49b7e
3 changed files with 19 additions and 0 deletions

10
fix-header-include.patch Normal file
View File

@ -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 <stdio.h>
#include <jpeglib.h>
#endif /* MNG_INCLUDE_IJG6B */

View File

@ -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 Sat May 17 21:56:29 UTC 2014 - hrvoje.senjan@gmail.com

View File

@ -38,6 +38,8 @@ Url: http://www.libmng.com/
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}-devel/%{version}/%{name}-%{version}.tar.xz Source0: http://downloads.sourceforge.net/project/%{name}/%{name}-devel/%{version}/%{name}-%{version}.tar.xz
Source1: baselibs.conf Source1: baselibs.conf
Patch0: libmng-1.0.9-dont-leak-zlib-streams.diff 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -77,6 +79,7 @@ This package contains the static library and the header files.
%prep %prep
%setup -q %setup -q
%patch0 %patch0
%patch1 -p1
%build %build
# This is not zlib licensed and unused, just as a caution, bnc#744320 # This is not zlib licensed and unused, just as a caution, bnc#744320