diff --git a/cocotb-1.6.2.tar.gz b/cocotb-1.6.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..484f863fb6a86dfa49174b41e6d5eb1efd7f5fb3 Binary files /dev/null and b/cocotb-1.6.2.tar.gz differ diff --git a/python-cocotb.spec b/python-cocotb.spec new file mode 100644 index 0000000000000000000000000000000000000000..f16da09f28e399f1fa7ec453f83a32ba3010a533 --- /dev/null +++ b/python-cocotb.spec @@ -0,0 +1,49 @@ +%global pypi_name cocotb +%global pypi_version 1.6.2 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python + +License: BSD-3-Clause +URL: https://docs.cocotb.org +Source0: %{pypi_source} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description +cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(cocotb-bus) +Requires: python3dist(setuptools) +%description -n python3-%{pypi_name} +cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python. + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md cocotb/share/def/README.md +%{_bindir}/cocotb-config +%{python3_sitearch}/%{pypi_name} +%{python3_sitearch}/pygpi +%{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Mon Jul 04 2022 konglidong - 1.6.2-1 +- Initial package.