Name: uhdm Version: 1.84 %global forgeurl https://github.com/chipsalliance/UHDM %forgemeta URL: %forgeurl Summary: Universal Hardware Data Model License: Apache Release: %autorelease Source0: %forgesource BuildRequires: gcc-c++ git cmake python3 swig python3-devel BuildRequires: python3-setuptools capnproto capnproto-devel python3-orderedmutidict BuildRequires: ninja-build %description A complete modeling of the IEEE SystemVerilog Object Model with VPI Interface, Elaborator, Serialization, Visitor and Listener. %package devel Summary: Development library of %{name} Requires: %{name} = %{version}-%{release} %description devel Development library for %{name}. %package python Summary: Development library of %{name} Requires: %{name} = %{version}-%{release} %description python Development library for %{name}. %prep %forgesetup sed -i -e 's|uhdm PROPERTIES|uhdm PROPERTIES SOVERSION 1 VERSION 1.0|' CMakeLists.txt # stdfs %if 0%{?rhel} == 8 sed -i -e 's|PRIVATE uhdm|PRIVATE uhdm stdc++fs|g' CMakeLists.txt %endif # install path sed -i 's|DESTINATION lib/|DESTINATION %{_lib}/|' CMakeLists.txt sed -i 's|${CMAKE_INSTALL_LIBDIR}/uhdm|${CMAKE_INSTALL_LIBDIR}/|' CMakeLists.txt sed -i 's|${CMAKE_INSTALL_PREFIX}/lib|${CMAKE_INSTALL_PREFIX}/%{_lib}/uhdm|' CMakeLists.txt sed -i 's|${CMAKE_INSTALL_PREFIX}/${Python_site_packages}|${Python_site_packages}|' python/CMakeLists.txt %build %cmake .. -Wno-dev -GNinja \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_SKIP_BUILD_RPATH=ON \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \ -DUHDM_BUILD_TESTS=OFF \ -DUHDM_WITH_PYTHON=ON \ -DUHDM_USE_HOST_CAPNP=ON %cmake_build %install %cmake_install # fix libpath #mkdir -p %{buildroot}/%{_libdir}/uhdm/ #mv -f %{buildroot}/%{_libdir}/uhdm/*.so* %{buildroot}/%{_libdir}/ #mv -f %{buildroot}/usr/lib/* %{buildroot}/%{_libdir}/ %files %doc README.md %license LICENSE %{_bindir}/* %{_datadir}/* %{_libdir}/*.so.* %files devel %{_includedir}/* %{_prefix}/%{_lib}/*.so %{_libdir}/cmake/* %{_libdir}/pkgconfig/* %files python %{python3_sitelib}/* %changelog * Sat Mar 12 2022 Balint Cristian - github update releases