15
0

Accepting request 1235083 from devel:languages:python

- Set environment variable so older PyO3 will build with 3.13.
- Run one example as a test of sorts.
- Correct Suggests.

OBS-URL: https://build.opensuse.org/request/show/1235083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-omni-camera?expand=0&rev=3
This commit is contained in:
2025-01-06 15:05:38 +00:00
committed by Git OBS Bridge
2 changed files with 18 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Jan 5 23:36:02 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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á <mmachova@suse.com>

View File

@@ -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