fastfetch/fastfetch.spec
R N 4c7e3e9fcd - update to 2.37.0
Changes:
   * Option `--escape-bedrock` is removed. The function is always enabled now.
  Features:
   * Support for Haiku is greatly improved (Haiku)
     - CPU, GPU, Disk, Sound, Terminal, Terminal Font, Init System, Battery, Mouse, Keyboard, NetIO, CPU Usage, Physical Disk and OpenGL should work on Haiku now
     - SMBIOS related modules (Host, Bios, Board, Chassis, Physical Memory) should work in platforms with legacy BIOS system.
     - Support for Gamepad and Bluetooth are WIP.
     - Some bugs are found and fixed.
   * Remove `python-requests` dependency in `scripts/gen-*.py`.
   * Add cmake option `-DENABLE_EMBEDDED_AMDGPUIDS=BOOL` (disabled by default) 
     - If enabled, fastfetch will embed the newest `amdgpu.ids` file into fastfetch binary.
   * Weather module now honors `display.temp.unit` option
   * Support Physical Memory module in NetBSD (PhysicalMemory, NetBSD) 
     - Requires root permission
   * Improve non-intel CPU detection in NetBSD (gh#fastfetch-cli/fastfetch#1573, CPU, NetBSD)
  Bugfixes:
   * Fix building in macOS 10.13 (GPU, macOS)
   * Properly round percent values when detecting volume (gh#fastfetch-cli/fastfetch#1558, Sound)
   * Fix Physical Memory module doesn't work in `--format json` mode
   * Add some missing variable inits (GPU, Linux)
   * Fix `--localip-default-route-only false` not working with `--gen-config` (gh#fastfetch-cli/fastfetch#1570, LocalIP)
  Logo:
   * Update Rosa linux
   * Add Haiku2

OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=137
2025-02-19 16:08:10 +00:00

137 lines
3.8 KiB
RPMSpec

#
# spec file for package fastfetch
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: fastfetch
Version: 2.37.0
Release: 0
Summary: Neofetch-like tool written mostly in C
License: MIT
URL: https://github.com/fastfetch-cli/fastfetch
Source: https://github.com/fastfetch-cli/fastfetch/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: Mesa-devel
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: opencl-headers
BuildRequires: vulkan-headers
# For some reason these don't build on Leap
%if 0%{?suse_version} > 1600
%ifarch %{ix86} x86_64
BuildRequires: pkgconfig(DirectX-Headers)
%endif
%endif
BuildRequires: pkgconfig(ImageMagick)
BuildRequires: pkgconfig(chafa)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dconf)
BuildRequires: pkgconfig(ddcutil)
BuildRequires: pkgconfig(libelf)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(ocl-icd)
BuildRequires: pkgconfig(rpm)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(zlib)
Recommends: ImageMagick
Recommends: Mesa
Recommends: chafa
Recommends: dbus-1
Recommends: dconf
Recommends: glib2-tools
Recommends: pciutils
Recommends: rpm
Recommends: sqlite3
Recommends: vulkan-tools
Recommends: xfconf
Recommends: xrandr
Recommends: zlib
%description
Fastfetch is a neofetch-like tool for fetching system information and
displaying them in a pretty way. It is written mainly in C, with performance and
customizability in mind. Currently Linux, Android, FreeBSD,
MacOS and Windows 7+ are supported.
%package fish-completion
Summary: Fish Completion for %{name}
Supplements: (%{name} and fish)
Requires: fastfetch
Requires: fish
BuildArch: noarch
%description fish-completion
Fish command-line completion support for %{name}.
%package bash-completion
Summary: Bash Completion for %{name}
Supplements: (%{name} and bash-completion)
Requires: bash-completion
Requires: fastfetch
BuildArch: noarch
%description bash-completion
Bash command-line completion support for %{name}.
%package zsh-completion
Summary: Zsh Completion for %{name}
Supplements: (%{name} and zsh)
Requires: fastfetch
Requires: zsh
BuildArch: noarch
%description zsh-completion
Zsh command-line completion support for %{name}.
%prep
%autosetup
%build
%cmake -DBUILD_FLASHFETCH:BOOL=FALSE
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/%{name}/
%files bash-completion
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/fastfetch
%files fish-completion
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/fastfetch.fish
%files zsh-completion
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_fastfetch
%changelog