%global pkgvers 0 %global scdate0 20260325 %global schash0 4e53d772996184b07e9bfe784060f96e6cb0a267 %global branch0 master %global source0 https://github.com/povik/yosys-slang.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: yosys-slang Version: 0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: SystemVerilog frontend for Yosys License: ISC URL: https://github.com/povik/yosys-slang BuildRequires: gcc-c++ git cmake BuildRequires: yosys-devel boost-devel sv-lang-devel Requires: yosys %global __cmake_in_source_build 1 %description Yosys plugin providing a new command (read_slang) for elaborating SystemVerilog designs. It builds on top of the slang library to provide comprehensive SystemVerilog support. The plugin supports an (informally defined) synthesizable subset of SystemVerilog in version IEEE 1800-2017 or IEEE 1800-2023. %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 submodule update --init --depth 1 --recursive third_party/fmt git submodule update --init --depth 1 --recursive third_party/slang git log --format=fuller # static sv-lang sed -i '1i set(BUILD_SHARED_LIBS OFF)' third_party/slang/CMakeLists.txt %build mkdir -p build pushd build %global optflags $(echo "%{optflags}" -I/usr/include/yosys) %cmake .. -Wno-dev -G "Unix Makefiles" \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo make %{?_smp_mflags} popd %install pushd build make install DESTDIR=%{buildroot} popd %files %license LICENSE %doc README.md %{_datadir}/yosys/plugins/*.so %changelog * Fri Mar 27 2026 Cristian Balint - Update to git releases