[gnubg] Libpng.

Jon Ciesla limb at fedoraproject.org
Tue Dec 13 16:33:08 UTC 2011


commit 37d34b3101dffd0921f965afaf657da1b16669c3
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Tue Dec 13 10:32:42 2011 -0600

    Libpng.

 gnubg-0.9.0.1-libpng15.patch |   17 +++++++++++++++++
 gnubg.spec                   |   11 ++++++++++-
 2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/gnubg-0.9.0.1-libpng15.patch b/gnubg-0.9.0.1-libpng15.patch
new file mode 100644
index 0000000..ffbc2ad
--- /dev/null
+++ b/gnubg-0.9.0.1-libpng15.patch
@@ -0,0 +1,17 @@
+--- export.c~	2008-03-14 01:20:05.000000000 -0500
++++ export.c	2011-12-13 10:20:15.274970677 -0600
+@@ -515,10 +515,10 @@
+   atext[1].text = VERSION_STRING;
+   atext[1].compression = PNG_TEXT_COMPRESSION_NONE;
+ 
+-#ifdef PNG_iTXt_SUPPORTED
+-  text_ptr[0].lang = NULL;
+-  text_ptr[1].lang = NULL;
+-#endif
++//#ifdef PNG_iTXt_SUPPORTED
++//  text_ptr[0].lang = NULL;
++//  text_ptr[1].lang = NULL;
++//#endif
+   png_set_text (ppng, pinfo, atext, 2);
+ 
+   png_write_info (ppng, pinfo);
diff --git a/gnubg.spec b/gnubg.spec
index e53ad0a..6c65299 100644
--- a/gnubg.spec
+++ b/gnubg.spec
@@ -4,12 +4,13 @@ Group:         Amusements/Games
 Summary:       A backgammon game and analyser
 Epoch:         1
 Version:       0.9.0.1
-Release:       12%{?dist}
+Release:       13%{?dist}
 Source0:       http://gnubg.org/media/sources/gnubg-0.9.0-1.tar.gz
 Source1:       gnubg.weights
 Source2:       gnubg.desktop
 Source3:       gnubg.png
 Patch0:        gnubg-0.9.0.1-disable_sse.patch
+Patch1:        gnubg-0.9.0.1-libpng15.patch
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n ) 
 URL:           http://www.gnubg.org
 BuildRequires: gtk2-devel
@@ -68,6 +69,7 @@ play GNU Backgammon using the command line or a graphical interface
 /bin/mv ChangeLog.tmp ChangeLog
 
 %patch0 -p0
+%patch1 -p0
 
 # running autogen, sources are nightly CVS tarballs not
 # containing configure
@@ -79,6 +81,10 @@ export CFLAGS="$RPM_OPT_FLAGS"
         --without-gdbm \
         --without-guile \
         --without-timecontrol
+
+#Please don't look, this is hideous.
+sed -i s/png12/png15/g Makefile
+
 make
 
 %install
@@ -165,6 +171,9 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_datadir}/gnubg/gnubg_ts0.bd
 
 %changelog
+* Tue Dec 13 2011 Jon Ciesla <limburgher at gmail.com> - 1:0.9.0.1-13
+- Patched for libpng.
+
 * Tue Dec 06 2011 Adam Jackson <ajax at redhat.com> - 1:0.9.0.1-12
 - Rebuild for new libpng
 


More information about the scm-commits mailing list