Name: python-cocotb Version: 1.9.2 Release: %autorelease # Fill in the actual package summary to submit package to Fedora Summary: cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python. # No license information obtained, it's up to the packager to fill it in License: BSD-3-Clause URL: https://github.com/cocotb/cocotb Source: %{pypi_source cocotb} BuildRequires: python3-devel BuildRequires: python3-wheel python3-packaging python3-pip python3-setuptools BuildRequires: gcc gcc-c++ %{toolchain} # Fill in the actual package description to submit package to Fedora %global _description %{expand: This is package 'cocotb' generated automatically by pyp2spec.} %description %_description %package -n python3-cocotb Summary: %{summary} %description -n python3-cocotb %_description # For official Fedora packages, review which extras should be actually packaged # See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras #pyproject_extras_subpkg -n python3-cocotb %prep %autosetup -p1 -n cocotb-%{version} sed -i 's/ext.extra.*static-libstdc.*/pass/' cocotb_build_libs.py %if 0 %generate_buildrequires # Keep only those extras which you actually want to package or use during tests %pyproject_buildrequires %endif %build %pyproject_wheel %install %pyproject_install # Add top-level Python module names here as arguments, you can use globs #pyproject_save_files -l ... %if 0 %check %pyproject_check_import %endif %files -n python3-cocotb %{_bindir}/cocotb-config %{python3_sitearch}/cocotb* %{python3_sitearch}/pygpi %changelog %autochangelog