%global pkgvers 0 %global scdate0 20241106 %global schash0 3b8c55802f9305920c9f97e72efb0fd2d570f972 %global branch0 master %global source0 https://github.com/litex-hub/litex-boards.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: litex-boards Version: 2024.08 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Platforms & targets supported by LiteX License: BSD BuildArch: noarch URL: https://github.com/litex-hub/litex-boards BuildRequires: git python3-devel python3-setuptools Requires: %{name}-python3 = %{version}-%{release} %global _python_dist_allow_version_zero 1 %description Platforms/targets currently supported by LiteX. %package python3 Summary: %{summary} Requires: litex-python3 Provides: litex-boards %description python3 Platforms/targets currently supported by LiteX. %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 log --format=fuller # fix spurious sed -i 's|3e6\,\,|3e6\,|g' litex_boards/targets/ztex213.py sed -i 's|3e6\,\,|3e6\,|g' litex_boards/targets/efinix_xyloni_dev_kit.py %build %{py3_build} %install %{py3_install} %files python3 %doc README.md %doc test %license LICENSE %{python3_sitelib}/* %changelog * Thu Nov 18 2021 Cristian Balint - initial release