%global pkgvers 0 %global scdate0 20241209 %global schash0 0407e7a89e332f60a1ea3ba1f95e5317d1aa864b %global branch0 master %global source0 https://github.com/cocotb/cocotb.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: cocotb Version: 1.9.2 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Coroutine based cosimulation library for writing VHDL and Verilog License: BSD URL: https://cocotb.org BuildRequires: git gcc-c++ make python3-devel python3-setuptools %description Cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python. %package python3 Summary: %{summary} Provides: cocotb %description python3 Cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python. %prep %setup -T -c -n %{name} git clone --depth 1 -n -b %{branch0} %{source0} . git fetch --depth 1 origin %{schash0} git reset --hard %{schash0} git --no-pager log --format=fuller %build sed -i '/-rpath/d' cocotb_build_libs.py sed -i 's|"-static-libstdc++"||g' cocotb_build_libs.py %py3_build %install %py3_install %files python3 %license LICENSE %doc README.md %{_bindir}/* %{python3_sitearch}/* %changelog * Thu Dec 23 2021 Cristian Balint - initial release