# vim: syntax=spec Name: mediapipe Version: 0.8.9 Release: 1%{?dist} Summary: MediaPipe offers cross-platform, customizable ML solutions for live and streaming media. License: ASL 2.0 URL: https://github.com/google/mediapipe VCS: git+https://github.com/google/mediapipe.git#e6c19885c6d3c6f410c730952aeed2852790d306: Source0: mediapipe-e6c19885.tar.gz Patch0: change-build-options.patch %description MediaPipe offers cross-platform, customizable ML solutions for live and streaming media. End-to-End acceleration: Built-in fast ML inference and processing accelerated even on common hardware Build once, deploy anywhere: Unified solution works across Android, iOS, desktop/cloud, web and IoT Ready-to-use solutions: Cutting-edge ML solutions demonstrating full power of the framework %package -n python3-mediapipe Summary: %{summary} %{?python_provide:%python_provide python3-mediapipe} BuildRequires: opencv-devel BuildRequires: python-unversioned-command BuildRequires: python3-devel BuildRequires: protobuf-devel BuildRequires: protobuf-compiler BuildRequires: gcc-c++ # from Copr vbatts/bazel BuildRequires: bazel4 BuildRequires: python3dist(numpy) Requires: python3-opencv Requires: python3dist(absl-py) Requires: python3dist(attrs) Requires: python3dist(matplotlib) Requires: python3dist(numpy) Requires: python3dist(protobuf) %global debug_package %{nil} %description -n python3-mediapipe MediaPipe offers cross-platform, customizable ML solutions for live and streaming media. End-to-End acceleration: Built-in fast ML inference and processing accelerated even on common hardware Build once, deploy anywhere: Unified solution works across Android, iOS, desktop/cloud, web and IoT Ready-to-use solutions: Cutting-edge ML solutions demonstrating full power of the framework %generate_buildrequires %pyproject_buildrequires -R %prep %setup -T -b 0 -q -n mediapipe %patch sed -i "s/__version__ = 'dev'/__version__ = '%{version}'/" setup.py %build %python3 setup.py gen_protos %pyproject_wheel %install %pyproject_install %pyproject_save_files mediapipe %files -n python3-mediapipe -f %{pyproject_files} %{python3_sitearch}/mediapipe/python/_framework_bindings%{python3_ext_suffix} %license %{python3_sitearch}/%{name}-%{version}.dist-info/LICENSE %changelog * Sun Feb 13 2022 bruceketta 0.8.9-1 (none)