public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/freeimage] epel10: Update for libpng 1.5 API
@ 2026-11-17 23:56 Bruno Wolff III
0 siblings, 0 replies; only message in thread
From: Bruno Wolff III @ 2026-11-17 23:56 UTC (permalink / raw)
To: git-commits
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-17 23:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 23:56 [rpms/freeimage] epel10: Update for libpng 1.5 API Bruno Wolff III
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox