%global pkgvers 2 %global scdate0 20221108 %global schash0 13cbe4453e14960a80949f6d0c66b63aabffd3df %global branch0 master %global source0 https://github.com/litex-hub/pythondata-cpu-cva6.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: litex-pythondata-cpu-cva6 Version: 2022.12 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Non-Python files needed for the cpu cva6 License: BSD BuildArch: noarch URL: https://github.com/litex-hub/pythondata-cpu-cva6 BuildRequires: git python3-devel python3-setuptools Requires: %{name}-python3 = %{version}-%{release} %undefine __strip %global __strip /bin/true %define debug_package %{nil} %undefine _auto_set_build_flags %global __provides_exclude_from ^(%{python3_sitelib}/.*$) %global __requires_exclude_from ^(%{python3_sitelib}/.*$) %undefine _missing_build_ids_terminate_build %define _binaries_in_noarch_packages_terminate_build 0 %description Non-Python files needed for the cpu cva6 packaged into a Python module so they can be used with Python libraries and tools. %package python3 Summary: %{summary} Requires: litex-python3 Provides: pythondata-cpu-cva6 %description python3 Non-Python files needed for the cpu cva6 packaged into a Python module so they can be used with Python libraries and tools. %prep %setup -T -c -n %{name} find %{_builddir} -name SPECPARTS -exec rm -rf {} + git clone --depth 1 -n -b %{branch0} %{source0} . git fetch --depth 1 origin %{schash0} git reset --hard %{schash0} git log --format=fuller %build %{py3_build} %install %{py3_install} sed -i %{buildroot}%{python3_sitelib}/pythondata_cpu_cva6/system_verilog/corev_apu/tb/riscv-isa-sim/tests/ebreak.py \ -e 's|#!/usr/bin/python|#!/usr/bin/python3|' %files python3 %doc README.md %license LICENSE %{python3_sitelib}/* %changelog * Sat Jun 04 2022 Cristian Balint - initial release