%global pypi_name nncf Name: python-%{pypi_name} Version: 3.4.0 Release: 1%{?dist} Summary: Neural Network Compression Framework License: Apache-2.0 URL: https://github.com/openvinotoolkit/nncf Source: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: NNCF provides post-training and training-time algorithms (quantization, weight compression, pruning) for optimizing neural network inference with OpenVINO, with support for PyTorch, ONNX and OpenVINO models. It is what optimum-intel uses to produce INT8/INT4 OpenVINO models.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} # Framework backends are optional and imported on demand Recommends: python3-openvino Suggests: python3-torch Suggests: python3-onnx %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} # Fedora ships newer NumPy than upstream has validated sed -i 's/"numpy>=1.24.0, <2.5.0"/"numpy>=1.24.0"/' pyproject.toml %generate_buildrequires # Release version from src/nncf/version.py, no git commit suffix export NNCF_RELEASE_BUILD=1 %pyproject_buildrequires %build export NNCF_RELEASE_BUILD=1 %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %pyproject_check_import -t %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog * Wed Oct 07 2026 Onuralp SEZER - 3.4.0-1 - Initial package