%global __cmake_in_source_build 1 Name: fastfetch Version: 2.34.0 Release: 1%{?dist} Summary: Like neofetch, but much faster because written in c License: MIT URL: https://github.com/fastfetch-cli/fastfetch Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: python3 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: hwdata BuildRequires: wayland-devel BuildRequires: libxcb-devel BuildRequires: libXrandr-devel BuildRequires: dconf-devel BuildRequires: dbus-devel BuildRequires: sqlite-devel BuildRequires: ImageMagick-devel BuildRequires: zlib-devel BuildRequires: libglvnd-devel BuildRequires: mesa-libOSMesa-devel BuildRequires: glib2-devel BuildRequires: ocl-icd-devel BuildRequires: rpm-devel BuildRequires: libdrm-devel BuildRequires: pulseaudio-libs-devel BuildRequires: elfutils-libelf-devel BuildRequires: libddcutil-devel BuildRequires: vulkan-loader-devel #BuildRequires: chafa-devel #BuildRequires: yyjson-devel Recommends: hwdata Recommends: libxcb Recommends: libXrandr Recommends: dconf Recommends: sqlite Recommends: zlib Recommends: libglvnd-glx Recommends: ImageMagick Recommends: glib2 Recommends: ocl-icd Recommends: chafa Recommends: ddcutil Recommends: libdrm Recommends: pulseaudio-libs Recommends: elfutils-libelf Provides: fastfetch-bash-completion = %{version}%{release} Provides: fastfetch-zsh-completion = %{version}%{release} Provides: fastfetch-fish-completion = %{version}%{release} ExcludeArch: %{ix86} %description fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way. It is written in c to achieve much better performance, in return only Linux and Android are supported. It also uses mechanisms like multithreading and caching to finish as fast as possible. %prep %autosetup -p1 %build %cmake -DBUILD_TESTS=ON -DBUILD_FLASHFETCH=OFF %cmake_build %check %ctest %install %cmake_install %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/%{name}/ %{_mandir}/man1/fastfetch.1* %{_datadir}/bash-completion/completions/%{name} %{_datadir}/fish/vendor_completions.d/%{name}.fish %{_datadir}/zsh/site-functions/_%{name} %changelog * Thu Jan 9 2025 lichaoran - 2.34.0-1 - Init package