3 Commits

Author SHA256 Message Date
334fe8b80e Accepting request 1313390 from multimedia:libs
OBS-URL: https://build.opensuse.org/request/show/1313390
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lcms2?expand=0&rev=40
2025-10-27 13:38:10 +00:00
efd7c889ba Accepting request 1312521 from home:ateixeira:branches:multimedia:libs
- Enable threads support
  * Drop lcms2-visibility.patch as it was causing linker errors when
    enabling threads

OBS-URL: https://build.opensuse.org/request/show/1312521
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lcms2?expand=0&rev=92
2025-10-24 11:52:29 +00:00
98ce6a8cbd Accepting request 1305576 from home:ateixeira:branches:multimedia:libs
- Update to 2.17:
  * Add fuzzers foundation. Many thanks to Amir Montazery and Open-Source
    Technology Improvement Fund (ostif.org), Google, for funding that.
  * Add ability to disable building tests in meson
  * Fixed gamut warning not working on certain conditions
  * Mac sequoia added to test beds
  * Add the possibility of duplicating a NULL context for cloning defaults.
  * Small cleanup of CGATS parser.
  * Change computation of profile ID to follow actual ICC spec (yes, they
    changed the spec!)
  * Allow to apply color management on memory blocks > 4Gb.
  * Get rid of samples on meson compilation
  * Increase coverage of pre-multiplied alpha.
  * Bug fixing and cosmetical work.
- Refresh lcms2-ocloexec.patch

OBS-URL: https://build.opensuse.org/request/show/1305576
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lcms2?expand=0&rev=91
2025-09-27 13:10:13 +00:00
6 changed files with 39 additions and 33 deletions

Binary file not shown.

3
lcms2-2.17.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d11af569e42a1baa1650d20ad61d12e41af4fead4aa7964a01f93b08b53ab074
size 5245319

View File

@@ -1,8 +1,8 @@
Index: b/src/cmscgats.c
===================================================================
--- a/src/cmscgats.c 2022-11-01 12:13:11.000000000 +0200
+++ b/src/cmscgats.c 2022-11-11 14:16:56.842380821 +0200
@@ -1017,7 +1017,7 @@ void InSymbol(cmsIT8* it8)
--- a/src/cmscgats.c
+++ b/src/cmscgats.c
@@ -1072,7 +1072,7 @@ void InSymbol(cmsIT8* it8)
return;
}
@@ -10,8 +10,8 @@ Index: b/src/cmscgats.c
+ FileNest->Stream = fopen(FileNest->FileName, "rte");
if (FileNest->Stream == NULL) {
SynError(it8, "File %s not found", FileNest->FileName);
@@ -1912,7 +1912,7 @@ cmsBool CMSEXPORT cmsIT8SaveToFile(cmsHA
SynError(it8, "File %s not found", FileNest->FileName);
@@ -2007,7 +2007,7 @@ cmsBool CMSEXPORT cmsIT8SaveToFile(cmsHA
memset(&sd, 0, sizeof(sd));
@@ -20,7 +20,7 @@ Index: b/src/cmscgats.c
if (!sd.stream) return FALSE;
for (i=0; i < it8 ->TablesCount; i++) {
@@ -2423,7 +2423,7 @@ cmsBool IsMyFile(const char* FileName)
@@ -2529,7 +2529,7 @@ cmsBool IsMyFile(const char* FileName)
cmsUInt32Number Size;
cmsUInt8Number Ptr[133];
@@ -29,7 +29,7 @@ Index: b/src/cmscgats.c
if (!fp) {
cmsSignalError(0, cmsERROR_FILE, "File '%s' not found", FileName);
return FALSE;
@@ -2506,7 +2506,7 @@ cmsHANDLE CMSEXPORT cmsIT8LoadFromFile(
@@ -2612,7 +2612,7 @@ cmsHANDLE CMSEXPORT cmsIT8LoadFromFile(
if (!hIT8) return NULL;

View File

@@ -1,18 +0,0 @@
Index: b/src/lcms2_internal.h
===================================================================
--- a/src/lcms2_internal.h 2022-11-01 12:13:11.000000000 +0200
+++ b/src/lcms2_internal.h 2022-11-11 14:17:12.797708563 +0200
@@ -37,6 +37,7 @@
// assert macro is part of C99 as per 7.2
#include <assert.h>
+#pragma GCC visibility push(hidden)
// Some needed constants
#ifndef M_PI
# define M_PI 3.14159265358979323846
@@ -1149,4 +1150,5 @@ cmsBool _cmsBuildRGB2XYZtransferMatrix
cmsBool _cmsGetTime(struct tm* ptr_time);
#define _lcms_internal_H
+#pragma GCC visibility pop
#endif

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Tue Oct 7 15:11:31 UTC 2025 - Antonio Teixeira <antonio.teixeira@suse.com>
- Enable threads support
* Drop lcms2-visibility.patch as it was causing linker errors when
enabling threads
-------------------------------------------------------------------
Wed Sep 17 19:49:41 UTC 2025 - Antonio Teixeira <antonio.teixeira@suse.com>
- Update to 2.17:
* Add fuzzers foundation. Many thanks to Amir Montazery and Open-Source
Technology Improvement Fund (ostif.org), Google, for funding that.
* Add ability to disable building tests in meson
* Fixed gamut warning not working on certain conditions
* Mac sequoia added to test beds
* Add the possibility of duplicating a NULL context for cloning defaults.
* Small cleanup of CGATS parser.
* Change computation of profile ID to follow actual ICC spec (yes, they
changed the spec!)
* Allow to apply color management on memory blocks > 4Gb.
* Get rid of samples on meson compilation
* Increase coverage of pre-multiplied alpha.
* Bug fixing and cosmetical work.
- Refresh lcms2-ocloexec.patch
-------------------------------------------------------------------
Mon Dec 4 20:27:04 UTC 2023 - Antonio Teixeira <antonio.teixeira@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package lcms2
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: lcms2
Version: 2.16
Version: 2.17
Release: 0
Summary: Little CMS Engine - A color management library and tools
License: MIT
@@ -26,7 +26,6 @@ URL: https://www.littlecms.com/
Source0: https://github.com/mm2/Little-CMS/releases/download/lcms%{version}/lcms2-%{version}.tar.gz
Source1: baselibs.conf
Patch0: lcms2-ocloexec.patch
Patch1: lcms2-visibility.patch
%if 0%{?suse_version}
BuildRequires: autoconf
BuildRequires: glibc-devel
@@ -95,8 +94,7 @@ autoreconf -fiv
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
# FIXME --without-threads is a workaround for a linker error
%configure --disable-static --without-threads
%configure --disable-static
%make_build