diff --git a/python-omni-camera.changes b/python-omni-camera.changes index d95adf8..6c5b7ce 100644 --- a/python-omni-camera.changes +++ b/python-omni-camera.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Jan 5 23:36:02 UTC 2025 - Steve Kowalik + +- Set environment variable so older PyO3 will build with 3.13. +- Run one example as a test of sorts. +- Correct Suggests. + ------------------------------------------------------------------- Tue Apr 16 07:44:10 UTC 2024 - Markéta Machová diff --git a/python-omni-camera.spec b/python-omni-camera.spec index a67e40d..e2958c1 100644 --- a/python-omni-camera.spec +++ b/python-omni-camera.spec @@ -1,7 +1,7 @@ # # spec file for package python-omni-camera # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,13 +25,15 @@ URL: https://github.com/IntQuant/Camerata Source: https://files.pythonhosted.org/packages/source/o/omni-camera/omni_camera-%{version}.tar.gz Source1: vendor.tar.zst Source2: cargo_config +BuildRequires: %{python_module Pillow} BuildRequires: %{python_module maturin} +BuildRequires: %{python_module numpy} BuildRequires: %{python_module pip} BuildRequires: cargo-packaging BuildRequires: clang BuildRequires: fdupes BuildRequires: python-rpm-macros -Suggests: python-pilow +Suggests: python-Pillow ExclusiveArch: %{rust_tier1_arches} %python_subpackages @@ -41,16 +43,22 @@ A library for querying and capturing from cameras, based on nokhwa crate. %prep %autosetup -a1 -p1 -n omni_camera-%{version} mkdir -p .cargo -cp %{SOURCE2} .cargo/config +cp %{SOURCE2} .cargo/config.toml %build +export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python examples/00_query_cameras.py + %files %{python_files} +%doc README.md +%license LICENSE %{python_sitearch}/omni_camera %{python_sitearch}/omni_camera-%{version}.dist-info