[packages/libjpeg12] - updated to 10 (new soname)

qboosh qboosh at pld-linux.org
Sun May 24 17:46:19 CEST 2026


commit 150526eca879dcc8bba43f46c0c8e2b0b36ac74e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 24 17:46:24 2026 +0200

    - updated to 10 (new soname)

 libjpeg-12bit.patch | 43 ++++++++++++++++++++++++++++++++++---------
 libjpeg12.spec      | 15 ++++++++-------
 2 files changed, 42 insertions(+), 16 deletions(-)
---
diff --git a/libjpeg12.spec b/libjpeg12.spec
index 3b03746..210f92d 100644
--- a/libjpeg12.spec
+++ b/libjpeg12.spec
@@ -1,18 +1,18 @@
 Summary:	Library for handling different JPEG files - 12-bit version
 Summary(pl.UTF-8):	Biblioteka do manipulacji plikami w formacie JPEG - wersja 12-bitowa
 Name:		libjpeg12
-Version:	9f
+Version:	10
 Release:	1
 License:	distributable
 Group:		Libraries
 Source0:	http://www.ijg.org/files/jpegsrc.v%{version}.tar.gz
-# Source0-md5:	9ca58d68febb0fa9c1c087045b9a5483
+# Source0-md5:	cc9eda64fc6281dc24739e29aa9556fc
 Patch0:		libjpeg-maxmem-sysconf.patch
 Patch1:		libjpeg-12bit.patch
 URL:		http://www.ijg.org/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
-BuildRequires:	libtool
+BuildRequires:	libtool >= 2:2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -82,6 +82,8 @@ install jversion.h $RPM_BUILD_ROOT%{_includedir}/libjpeg12
 # (not necessary but may generate warnings confusing autoconf)
 sed -i -e 's#.*HAVE_STD..._H.*##g' $RPM_BUILD_ROOT%{_includedir}/libjpeg12/jconfig.h
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libjpeg12.la
 # tools packaged in generic libjpeg
 %{__rm} -r $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 
@@ -94,14 +96,13 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README change.log
-%attr(755,root,root) %{_libdir}/libjpeg12.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libjpeg12.so.9
+%{_libdir}/libjpeg12.so.*.*.*
+%ghost %{_libdir}/libjpeg12.so.10
 
 %files devel
 %defattr(644,root,root,755)
 %doc libjpeg.txt structure.txt
-%attr(755,root,root) %{_libdir}/libjpeg12.so
-%{_libdir}/libjpeg12.la
+%{_libdir}/libjpeg12.so
 %{_includedir}/libjpeg12
 %{_pkgconfigdir}/libjpeg12.pc
 
diff --git a/libjpeg-12bit.patch b/libjpeg-12bit.patch
index acf5b37..fee5528 100644
--- a/libjpeg-12bit.patch
+++ b/libjpeg-12bit.patch
@@ -227,18 +227,27 @@
  
  /*
   * These two functions are used to allocate and release small chunks of
---- jpeg-9a/jmorecfg.h.orig	2014-01-26 17:31:32.791654317 +0100
-+++ jpeg-9a/jmorecfg.h	2014-01-26 17:32:43.334984688 +0100
-@@ -30,7 +30,8 @@
-  * in all cases (see below).
-  */
- 
--#define BITS_IN_JSAMPLE  8	/* use 8, 9, 10, 11, or 12 */
-+#define BITS_IN_JSAMPLE  12	/* use 8, 9, 10, 11, or 12 */
-+#define NEED_12_BIT_NAMES
+--- jpeg-10/jmorecfg.h.orig	2025-11-27 14:30:22.000000000 +0100
++++ jpeg-10/jmorecfg.h	2026-05-24 16:37:13.802417628 +0200
+@@ -13,7 +13,6 @@
  
  
+ #define JPEG_DATA_PRECISION  8				/* see table below */
+-#define BITS_IN_JSAMPLE      JPEG_DATA_PRECISION	/* see table below */
  /*
+  * Most useful alternative for "HDR" (High Dynamic Range) application
+  * with backward compatibility for file interchange (see table below;
+@@ -23,9 +22,8 @@
+ /* For still higher demands (see table below):
+ #define BITS_IN_JSAMPLE      11
+  */
+-/* or
+ #define BITS_IN_JSAMPLE      12
+- */
++#define NEED_12_BIT_NAMES
+ 
+ /*                      |                     BITS_IN_JSAMPLE
+  *  JPEG_DATA_PRECISION |   read / write with full DCT up to lossless operation
 --- jpeg-8d.orig/jpegint.h	2011-10-13 10:53:56.000000000 +0200
 +++ jpeg-8d/jpegint.h	2012-01-30 19:17:54.740780423 +0100
 @@ -335,6 +335,49 @@
@@ -429,3 +438,19 @@
 -Libs: -L${libdir} -ljpeg
 +Libs: -L${libdir} -ljpeg12
  Cflags: -I${includedir}
+--- jpeg-10/jconfig.cfg.orig	2015-07-29 14:07:32.000000000 +0200
++++ jpeg-10/jconfig.cfg	2026-05-24 17:17:58.615839603 +0200
+@@ -43,11 +43,11 @@ typedef unsigned char boolean;
+ 
+ #ifdef JPEG_CJPEG_DJPEG
+ 
+-#define BMP_SUPPORTED		/* BMP image file format */
++#undef BMP_SUPPORTED		/* BMP image file format */
+ #define GIF_SUPPORTED		/* GIF image file format */
+ #define PPM_SUPPORTED		/* PBMPLUS PPM/PGM image file format */
+ #undef RLE_SUPPORTED		/* Utah RLE image file format */
+-#define TARGA_SUPPORTED		/* Targa image file format */
++#undef TARGA_SUPPORTED		/* Targa image file format */
+ 
+ #undef TWO_FILE_COMMANDLINE
+ #undef NEED_SIGNAL_CATCHER
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libjpeg12.git/commitdiff/150526eca879dcc8bba43f46c0c8e2b0b36ac74e



More information about the pld-cvs-commit mailing list