commit b0148b3332f20c10634c25fd8967a145decb76a6
Author: Jakub Bogusz <[email protected]>
Date:   Mon Jan 7 17:13:00 2013 +0100

    - added headers patch (add missing includes to openjpeg2 headers)
    - release 2

 openjpeg2-headers.patch | 21 +++++++++++++++++++++
 openjpeg2.spec          |  4 +++-
 2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/openjpeg2.spec b/openjpeg2.spec
index f3ee0b0..975822d 100644
--- a/openjpeg2.spec
+++ b/openjpeg2.spec
@@ -2,12 +2,13 @@ Summary:      An open-source JPEG 2000 codec
 Summary(pl.UTF-8):     Biblioteka kodująca i dekodująca format JPEG 2000
 Name:          openjpeg2
 Version:       2.0.0
-Release:       1
+Release:       2
 License:       BSD
 Group:         Libraries
 #Source0Download: http://code.google.com/p/openjpeg/downloads/list
 Source0:       http://openjpeg.googlecode.com/files/openjpeg-%{version}.tar.gz
 # Source0-md5: d9be274bddc0f47f268e484bdcaaa6c5
+Patch0:                %{name}-headers.patch
 URL:           http://www.openjpeg.org/
 BuildRequires: cmake >= 2.8.2
 BuildRequires: lcms2-devel >= 2
@@ -57,6 +58,7 @@ Programy kodujące/dekodujące dla biblioteki OpenJPEG 2.
 
 %prep
 %setup -q -n openjpeg-%{version}
+%patch0 -p1
 
 %build
 %cmake . \
diff --git a/openjpeg2-headers.patch b/openjpeg2-headers.patch
new file mode 100644
index 0000000..b93ca73
--- /dev/null
+++ b/openjpeg2-headers.patch
@@ -0,0 +1,21 @@
+--- openjpeg-2.0.0/src/lib/openjp2/opj_stdint.h.orig   2012-11-19 
15:26:08.000000000 +0100
++++ openjpeg-2.0.0/src/lib/openjp2/opj_stdint.h        2013-01-07 
17:09:24.649324889 +0100
+@@ -27,6 +27,7 @@
+ #define OPJ_STDINT_H
+ 
+ #include "opj_config.h"
++#include <stddef.h>
+ #ifdef HAVE_STDINT_H
+ #include <stdint.h>
+ #else
+--- openjpeg-2.0.0/src/lib/openjp2/openjpeg.h.orig     2012-11-19 
15:26:08.000000000 +0100
++++ openjpeg-2.0.0/src/lib/openjp2/openjpeg.h  2013-01-07 17:09:24.649324889 
+0100
+@@ -103,6 +103,8 @@ typedef uint64_t OPJ_UINT64;
+ /* Avoid compile-time warning because parameter is not used */
+ #define OPJ_ARG_NOT_USED(x) (void)(x)
+ 
++#include <stdio.h>
++
+ /* 
+ ==========================================================
+    Useful constant definitions
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openjpeg2.git/commitdiff/b0148b3332f20c10634c25fd8967a145decb76a6

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to