public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/libheif] epel10: Add support to multilib in devel sub-package
Date: Thu, 30 Jul 2026 20:23:17 GMT [thread overview]
Message-ID: <178544299764.1.12259077237130074393.rpms-libheif-5b3dcde200cf@fedoraproject.org> (raw)
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
reply other threads:[~2026-07-30 20:23 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=178544299764.1.12259077237130074393.rpms-libheif-5b3dcde200cf@fedoraproject.org \
--to=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