public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openscad] f45: Ensure 3MF support is enabled
@ 2026-10-30 12:24 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-30 12:24 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/openscad
            Branch : f45
            Commit : 5fc47b6c084759e557e1d0db40e0224d1b7551e6
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2026-10-29T13:51:16+01:00
            Stats  : +6/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/openscad/c/5fc47b6c084759e557e1d0db40e0224d1b7551e6?branch=f45

            Log:
            Ensure 3MF support is enabled

- Fixes: rhbz#2561538

Assisted-By: Claude Sonnet 5

---
diff --git a/openscad.spec b/openscad.spec
index 9b839c9..b06a11b 100644
--- a/openscad.spec
+++ b/openscad.spec
@@ -75,7 +75,7 @@ Requires:       font(liberationserif)
 Requires:       hicolor-icon-theme
 Recommends:     %{name}-MCAD = %{version}-%{release}
 
-%bcond_without 3mf
+%bcond 3mf      1
 %if %{with 3mf}
 BuildRequires:  lib3mf-devel
 %endif
@@ -209,6 +209,11 @@ done
 %check
 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
 
+%if %{with 3mf}
+ldd %{buildroot}%{_bindir}/%{name} | grep -q 'lib3mf\.so' || \
+  { echo "error: %{name} binary is not linked against lib3mf, but 3MF support was requested (%%bcond 3mf)" >&2; exit 1; }
+%endif
+
 # tests
 cd tests
 xwfb-run -c mutter -- ctest %{?_smp_mflags} || : # let the tests fail, as they probably won't work in Koji

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

only message in thread, other threads:[~2026-10-30 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 12:24 [rpms/openscad] f45: Ensure 3MF support is enabled 

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