diff --git a/libmhgui-0.2-libpng-1.6.patch b/libmhgui-0.2-libpng-1.6.patch new file mode 100644 index 0000000..01a7b77 --- /dev/null +++ b/libmhgui-0.2-libpng-1.6.patch @@ -0,0 +1,11 @@ +diff -up mhgui-0.2/include/mhgui/ImageData.h.png15 mhgui-0.2/include/mhgui/ImageData.h +--- mhgui-0.2/include/mhgui/ImageData.h.png15 2007-12-12 22:07:20.000000000 +0100 ++++ mhgui-0.2/include/mhgui/ImageData.h 2012-01-21 15:10:13.179933285 +0100 +@@ -67,7 +67,7 @@ class ImageData + private: + char *image_data; /* raw png image data */ + char *end_bufferPtr; +- unsigned long width, height; ++ png_uint_32 width, height; + unsigned int bytesPerRow; + bool alpha; \ No newline at end of file diff --git a/libmhgui.spec b/libmhgui.spec index 1b94ce4..3e09e42 100644 --- a/libmhgui.spec +++ b/libmhgui.spec @@ -1,7 +1,7 @@ ### AUTOUPDATE-OFF: 1 Name: libmhgui Version: 0.2 -Release: 1mamba +Release: 2mamba Summary: A graphical user interface library for makehuman Group: System/Libraries Vendor: openmamba @@ -9,14 +9,24 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.makehuman.org Source: http://downloads.sourceforge.net/sourceforge/makehuman/mhgui-%{version}.tar.gz +Patch0: libmhgui-0.2-libpng-1.6.patch License: LGPL BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN -## AUTOBUILDREQ-END -BuildRequires: libX11-devel +BuildRequires: glibc-devel BuildRequires: libGL-devel -BuildRequires: libpng-devel +BuildRequires: libGLU-devel BuildRequires: libICE-devel +BuildRequires: libSM-devel +BuildRequires: libX11-devel +BuildRequires: libXi-devel +BuildRequires: libXmu-devel +BuildRequires: libanimorph-devel +BuildRequires: libfreeglut-devel +BuildRequires: libgcc +BuildRequires: libpng-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END %description A graphical user interface library for makehuman. @@ -33,6 +43,7 @@ This package contains static libraries and header files need for development. %prep %setup -q -n mhgui-%{version} +%patch0 -p1 %build %configure @@ -58,9 +69,12 @@ rm -rf %{buildroot}%{_prefix}/doc %{_libdir}/libmhgui.a %{_libdir}/libmhgui.la %{_libdir}/libmhgui.so -%{_exec_prefix}/lib/pkgconfig/*.pc +%{_libdir}/pkgconfig/*.pc %changelog +* Sat May 09 2015 Silvan Calarco 0.2-2mamba +- rebuild with libpng 1.6 + * Sun Jun 07 2009 Silvan Calarco 0.2-1mamba - update to 0.2