Name: cmake Version: 3.28.3 Release: 1%{?dist} Summary: CMake is an open-source system that manages the build process in an operating system and in a compiler-independent manner. License: BSD-3-Clause URL: https://cmake.org/ Source0: https://openi.pcl.ac.cn/JunJun-Liu/cmake/cmake-3.28.3.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: openssl-devel %description CMake is an open-source, cross-platform family of tools designed to build, test, and package software. CMake is used to control the software compilation process using simple platform and compiler-independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. %prep %setup -q %build echo "Starting build process in directory:" pwd echo "Available files and directories:" ls -la ./bootstrap --prefix=/usr make %{?_smp_mflags} %install echo "Starting install process in directory:" pwd echo "Environment variables:" printenv echo "Files and directories before installation:" ls -la # 确保构建根目录存在 mkdir -p %{buildroot} # 实际安装到构建根目录中 make install DESTDIR=%{buildroot} echo "Files and directories after installation in buildroot:" ls -la %{buildroot} echo "Detailed look into buildroot's usr directory:" ls -laR %{buildroot}/usr # 特别检查期望的目录和文件 echo "Checking for expected directories and files:" echo "Checking specifically for /usr/share/cmake-%{version}:" ls -la %{buildroot}/usr/share/cmake-%{version} echo "Checking for binaries:" ls -la %{buildroot}/usr/bin/ %files /usr/bin/cmake /usr/bin/ctest /usr/bin/cpack /usr/share/cmake-3.28.3 /usr/share/bash-completion /usr/share/aclocal /usr/doc/cmake-3.28.3 %changelog * Wed Feb 28 2024 JunjunLiu - 3.28.3-1 - Updated to version 3.28.3 - Added debugging statements to spec file