public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: git-commits@fedoraproject.org
Subject: [rpms/freeimage] epel10: Update for libpng 1.5 API
Date: Tue, 17 Nov 2026 23:56:28 GMT	[thread overview]
Message-ID: <179495978870.1.8842947425043294591.rpms-freeimage-5822c50abae3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/freeimage
Branch : epel10
Commit : 5822c50abae307036e0b7ca4cda7cc8c8939db05
Author : Bruno Wolff III <bruno@wolff.to>
Date   : 2012-02-13T21:24:12-06:00
Stats  : +40/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/freeimage/c/5822c50abae307036e0b7ca4cda7cc8c8939db05?branch=epel10

Log:
Update for libpng 1.5 API

---
diff --git a/FreeImage-3.10.0-libpng15.patch b/FreeImage-3.10.0-libpng15.patch
new file mode 100644
index 0000000..dc6ff81
--- /dev/null
+++ b/FreeImage-3.10.0-libpng15.patch
@@ -0,0 +1,35 @@
+--- Source/FreeImage/PluginPNG.cpp.orig	2012-02-13 20:40:18.980814932 -0600
++++ Source/FreeImage/PluginPNG.cpp	2012-02-13 21:20:54.917409944 -0600
+@@ -322,7 +322,8 @@
+ 
+ 			png_read_info(png_ptr, info_ptr);
+ 			png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, NULL, NULL, NULL);
+-			pixel_depth = info_ptr->pixel_depth;
++			pixel_depth = png_get_bit_depth(png_ptr, info_ptr) *
++				png_get_channels(png_ptr, info_ptr);
+ 
+ 			// get image data type (assume standard image type)
+ 
+@@ -534,11 +535,11 @@
+ 
+ 			if (png_get_valid(png_ptr, info_ptr, PNG_INFO_iCCP)) {
+ 				png_charp profile_name = NULL;
+-				png_charp profile_data = NULL;
++				png_bytepp profile_data = NULL;
+ 				png_uint_32 profile_length = 0;
+ 				int  compression_type;
+ 
+-				png_get_iCCP(png_ptr, info_ptr, &profile_name, &compression_type, &profile_data, &profile_length);
++				png_get_iCCP(png_ptr, info_ptr, &profile_name, &compression_type, profile_data, &profile_length);
+ 
+ 				// copy ICC profile data (must be done after FreeImage_Allocate)
+ 
+@@ -771,7 +772,7 @@
+ 
+ 			FIICCPROFILE *iccProfile = FreeImage_GetICCProfile(dib);
+ 			if (iccProfile->size && iccProfile->data) {
+-				png_set_iCCP(png_ptr, info_ptr, "Embedded Profile", 0, (png_charp)iccProfile->data, iccProfile->size);
++				png_set_iCCP(png_ptr, info_ptr, "Embedded Profile", 0, (png_const_bytep)iccProfile->data, iccProfile->size);
+ 			}
+ 
+ 			// write metadata

diff --git a/freeimage.spec b/freeimage.spec
index e47a1d8..50a1418 100644
--- a/freeimage.spec
+++ b/freeimage.spec
@@ -3,7 +3,7 @@
 
 Name:           freeimage
 Version:        3.10.0
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Multi-format image decoder library
 Group:          System Environment/Libraries
 # freeimage is dual-licensed, see Whatsnew.txt (search for license) or:
@@ -13,6 +13,7 @@ URL:            http://freeimage.sourceforge.net/
 Source0:        http://downloads.sourceforge.net/%{name}/FreeImage%{_version}.zip
 Patch0:         FreeImage-3.10.0-syslibs.patch
 Patch1:         FreeImage-3.10.0-doxygen.patch
+Patch2:         FreeImage-3.10.0-libpng15.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  libjpeg-devel libpng-devel libtiff-devel OpenEXR-devel
 BuildRequires:  libmng-devel openjpeg-devel doxygen
@@ -114,6 +115,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Feb 13 2012 Bruno Wolff III <bruno@wolff.to> 3.10.0-9
+- Update for libpng 1.5 API
+
 * Thu Feb 09 2012 Rex Dieter <rdieter@fedoraproject.org> 3.10.0-8
 - rebuild (openjpeg)
 

                 reply	other threads:[~2026-11-17 23:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179495978870.1.8842947425043294591.rpms-freeimage-5822c50abae3@fedoraproject.org \
    --to=bruno@wolff.to \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox