Name: python-pycocotools Version: 2.0.8 Release: 1%{?dist} # Fill in the actual package summary to submit package to Fedora Summary: Official APIs for the MS-COCO dataset # Check if the automatically generated License and its spelling is correct for Fedora # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ # BSD-2-Clause-Views covers most of the code as the main license.txt file # common/gason.{cpp,h} are a vendored dependency, and is licensed MIT License: BSD-2-Clause-Views AND MIT URL: https://github.com/ppwwyyxx/cocoapi Source: %{pypi_source pycocotools} BuildRequires: python3-devel BuildRequires: gcc # Fill in the actual package description to submit package to Fedora %global _description %{expand: This is package 'pycocotools' generated automatically by pyp2spec.} %description %_description %package -n python3-pycocotools Summary: %{summary} %description -n python3-pycocotools %_description %prep %autosetup -p1 -n pycocotools-%{version} # Use sed to drop the numpy 2 requirement, it's backwards-compatible sed -i "s/numpy>=2.0.0rc1/numpy/" pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Add top-level Python module names here as arguments, you can use globs %pyproject_save_files pycocotools %check %pyproject_check_import %files -n python3-pycocotools -f %{pyproject_files} %changelog %autochangelog