public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libheif] epel10: Add support to multilib in devel sub-package
@ 2026-07-30 20:23 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-07-30 20:23 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/libheif
            Branch : epel10
            Commit : 5b3dcde200cf7be81e7409790996fcffc73e8747
            Author : Sérgio M. Basto <sergio@serjux.com>
            Date   : 2024-11-16T14:27:40+00:00
            Stats  : +29/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/libheif/c/5b3dcde200cf7be81e7409790996fcffc73e8747?branch=epel10

            Log:
            Add support to multilib in devel sub-package

Resolves: rhbz#2279891

---
diff --git a/libheif.spec b/libheif.spec
index bce945d..79e31ad 100644
--- a/libheif.spec
+++ b/libheif.spec
@@ -2,7 +2,7 @@
 
 Name:           libheif
 Version:        1.19.3
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        HEIF and AVIF file format decoder and encoder
 
 License:        LGPL-3.0-or-later and MIT
@@ -130,12 +130,40 @@ rm -rf third-party/
 %install
 %cmake_install
 
+# fix multilib issues: Rename the provided file with platform-bits in name.
+# Create platform independent file inplace of the provided one and conditionally
+# include the required one.
+# $1 - filename.h to process.
+function multilibFileVersions(){
+mv $1 ${1%%.h}-%{__isa_bits}.h
+
+local basename=$(basename $1)
+
+cat >$1 <<EOF
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+# include "${basename%%.h}-32.h"
+#elif __WORDSIZE == 64
+# include "${basename%%.h}-64.h"
+#else
+# error "unexpected value for __WORDSIZE macro"
+#endif
+EOF
+}
+
+multilibFileVersions %{buildroot}%{_includedir}/%{name}/heif_version.h
+
 
 %check
 %ctest
 
 
 %changelog
+* Sat Nov 16 2024 Sérgio Basto <sergio@serjux.com> - 1.19.3-2
+- Add support to multilib in devel sub-package
+- Resolves: rhbz#2279891
+
 * Tue Nov 12 2024 Dominik Mierzejewski <dominik@greysector.net> - 1.19.3-1
 - update to 1.19.3 (resolves rhbz#2295525)
 - drop obsolete patches

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-30 20:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 20:23 [rpms/libheif] epel10: Add support to multilib in devel sub-package 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox