public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-trimesh] rawhide: Improved spec-file conditionals
@ 2026-11-12 20:17 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-12 20:17 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-trimesh
            Branch : rawhide
            Commit : e627d1532255e6ff53bfff21b90b75f7c0facc1f
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-11-12T19:58:12+00:00
            Stats  : +22/-22 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-trimesh/c/e627d1532255e6ff53bfff21b90b75f7c0facc1f?branch=rawhide

            Log:
            Improved spec-file conditionals

[skip changelog]

---
diff --git a/python-trimesh.spec b/python-trimesh.spec
index d52a179..b48d7dd 100644
--- a/python-trimesh.spec
+++ b/python-trimesh.spec
@@ -29,17 +29,34 @@ Source0:        https://github.com/mikedh/trimesh/archive/%{version}/trimesh-%{v
 # output and on the docstring of trimesh.__main__.main
 Source1:        trimesh.1
 
+# trimesh.interfaces.blender
+# Since 5.0.0, Blender doesn’t support big-endian architectures.
+%ifnarch s390x
+%global arch_has_blender 1
+%endif
+# The python-cascadio package is currently ExcludeArch: s390x
+# python-cascadio: Tests for cascadio fail on s390x, wrong endianness
+# https://bugzilla.redhat.com/show_bug.cgi?id=2298452
+%ifnarch s390x
+%global arch_has_cascadio 1
+%endif
+# embree only supports x86_64, aarch64
+# https://bugzilla.redhat.com/show_bug.cgi?id=2461412
+%ifarch %{x86_64} %{arm64}
+%global arch_has_embree 1
+%endif
+
 BuildSystem:    pyproject
 BuildOption(generate_buildrequires): --extras easy,recommend,test,test_more
 BuildOption(install): --assert-license trimesh
 # Some dependencies are unavailable; see the %%prep section.
 # - trimesh.viewer.widget requires glooey
 # - trimesh.viewer.windowed requires pyglet
-BuildOption(check): %{shrink:
-    %{?!arch_has_embree:--exclude trimesh.ray.ray_pyembree}
-    --exclude trimesh.viewer.widget
-    --exclude trimesh.viewer.windowed
-    }
+%if !0%{?arch_has_embree}
+BuildOption(check): --exclude trimesh.ray.ray_pyembree
+%endif
+BuildOption(check): --exclude trimesh.viewer.widget
+BuildOption(check): --exclude trimesh.viewer.windowed
 
 # The combination of an arched package with a noarch binary packages makes it
 # easier for us to detect arch-dependent test failures, since the tests will
@@ -61,23 +78,6 @@ BuildRequires:  %{py3_dist pytest-xdist}
 # Not yet packaged: https://github.com/KhronosGroup/glTF-Validator
 #BuildRequires:  /usr/bin/gltf_validator
 
-# trimesh.interfaces.blender
-# Since 5.0.0, Blender doesn’t support big-endian architectures.
-%ifnarch s390x
-%global arch_has_blender 1
-%endif
-# The python-cascadio package is currently ExcludeArch: s390x
-# python-cascadio: Tests for cascadio fail on s390x, wrong endianness
-# https://bugzilla.redhat.com/show_bug.cgi?id=2298452
-%ifnarch s390x
-%global arch_has_cascadio 1
-%endif
-# embree only supports x86_64, aarch64
-# https://bugzilla.redhat.com/show_bug.cgi?id=2461412
-%ifarch %{x86_64} %{arm64}
-%global arch_has_embree 1
-%endif
-
 %global _description %{expand:
 Trimesh is a pure Python library for loading and using triangular meshes with
 an emphasis on watertight meshes. The goal of the library is to provide a fully

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

only message in thread, other threads:[~2026-11-12 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 20:17 [rpms/python-trimesh] rawhide: Improved spec-file conditionals Benjamin A. Beasley

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