diff --git a/dyninst.spec b/dyninst.spec index 7b4b3caebac3e2d1a90347dbbd5aca01119ebb19..1429854c292fb26141f2113d75b58e636bc7d36e 100644 --- a/dyninst.spec +++ b/dyninst.spec @@ -1,6 +1,6 @@ Name: dyninst -License: LGPLv2+ -Release: 6 +License: LGPL-2.1-or-later +Release: 7 Version: 12.3.0 Summary: An API for Run-time Code Generation ExclusiveArch: x86_64 aarch64 @@ -74,17 +74,27 @@ export CFLAGS CXXFLAGS LDFLAGS -DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_SKIP_RPATH:BOOL=YES \ - . -%make_build +%cmake_build -make DESTDIR=../install install +# Hack to install dyninst nearby, so the testsuite can use it +DESTDIR="../install" %__cmake --install "%{__cmake_builddir}" find ../install -name '*.cmake' -execdir \ sed -i -e 's!%{_prefix}!../install&!' '{}' '+' sed -i '/libtbb.so/ s/".*usr/"\/usr/' $PWD/../install%{_libdir}/cmake/Dyninst/commonTargets.cmake +cd ../%{testsuite_base} +# testsuite build sometimes encounters dependency issues with -jN +%define _smp_mflags -j1 +%cmake \ + -DDyninst_DIR:PATH=$PWD/../install%{_libdir}/cmake/Dyninst \ + -DINSTALL_DIR:PATH=%{_libdir}/dyninst/testsuite \ + -DCMAKE_BUILD_TYPE:STRING=Debug \ + -DCMAKE_SKIP_RPATH:BOOL=YES +%cmake_build + %install cd %{dyninst_base} -%make_install +%cmake_install mkdir -p %{buildroot}/etc/ld.so.conf.d echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf @@ -125,6 +135,9 @@ echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf %doc %{dyninst_base}/symtabAPI/doc/symtabAPI.pdf %changelog +* Thu Nov 07 2024 Funda Wang - 12.3.0-7 +- adopt to new cmake macro + * Tue Aug 20 2024 Chunchun Yang - 12.3.0-6 - Replaced declaration of subpackage with the 'package_help' macro. diff --git a/dyninst.yaml b/dyninst.yaml index 43af000b27a0eddfd1e2065f36daf8e9cfc7c003..ea3be230b3b93f92ad839d5bdd724157fc26eb7c 100644 --- a/dyninst.yaml +++ b/dyninst.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: dyninst/dyninst tag_prefix: ^v -seperator: . +separator: .