# SPDX-License-Identifier: GPL-2.0-only #%define _unpackaged_files_terminate_build 1 #%define _stripped_files_terminate_build 1 #%set_verify_elf_method strict Name: Cling Version: 1.1 Release: alt1 Summary: Cling - The Interactive C++ Interpreter License: UI/NCSAOSL or LGPL Group: Development/C++ Url: https://rawcdn.githack.com/root-project/cling/d59d27ad61f2f3a78cd46e652cd9fb8adb893565/www/index.html Vcs: https://github.com/root-project/cling Packager: Aleksandr Gamzin Source: %name-%version.tar.gz BuildRequires(pre): rpm-build-cmake BuildRequires(pre): rpm-build-python BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: llvm15.0-devel BuildRequires: llvm15.0-tools BuildRequires: llvm15.0-gold BuildRequires: clang15.0-devel BuildRequires: libmlir15.0-devel BuildRequires: mlir15.0-tools BuildRequires: libpolly15.0-devel BuildRequires: zlib-devel BuildRequires: libtinfo-devel %description %summary, %package devel Summary: %summary. Group: Development/C++ %description devel Cling is an interactive C++ interpreter, built on top of Clang and LLVM compiler infrastructure. Cling implements the read-eval-print loop (REPL) concept, in order to leverage rapid application development. Implemented as a small extension to LLVM and Clang, the interpreter reuses their strengths such as the praised concise and expressive compiler diagnostics. %prep %setup #export PATH="/usr/lib/llvm-15.0/bin:$PATH" #export PATH="/usr/bin/clang++-15:$PATH" #export LLVM_DIR="/usr/lib/llvm-15.0/lib64/cmake" #llvm-config --prefix --version #clang --version %build export LLVM_DIR="/usr/lib/llvm-15.0/lib64/cmake" llvm-config --prefix --version %cmake \ -DCMAKE_BUILD_TYPE=Release \ # -DLLVM_EXTERNAL_PROJECTS=cling \ # -DLLVM_EXTERNAL_CLING_SOURCE_DIR=/usr/src/RPM/BUILD/Cling-1.1/ \ # -DLLVM_ENABLE_PROJECTS="clang" \ # -DLLVM_TARGETS_TO_BUILD="host;NVPTX" \ # /usr/lib/llvm-15.0 %cmake_build %install %files devel %doc *.txt #%_includedir/CImg* #%_datadir/pkgconfig/CImg.pc