fastfetch/fastfetch.spec

117 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package fastfetch
#
Accepting request 1142035 from home:Pi-Cla:branches:utilities - update to version 2.7.0: Changes: * Add new module TerminalTheme, which prints the foreground and background color of the current terminal window. * Allow command substitution when expanding paths * Improve xonsh shell detection (Shell) * Support colored percentage values (Bluetooth / Gamepad / Sound) * Add --<module>-percent-[green|yellow] options to specify threshold of percentage colors * Add --percent-color-[green|yellow|red] options to specify color of different percent value states. * Remove support of option --battery-dir. We detect a lot of things in /sys/class/* and only module Battery supports specifying a custom directory for some reason, which is weird. * Remove --chassis-use-wmi which is no longer used. * --gpu-use-nvml has been renamed to --gpu-driver-specific due to using of IGCL and AGS * We now detect external partitions more conservatively in Linux. USB partitions will not be detected as external always Features: * Default preset names to .jsonc. For example, fastfetch -c all will load presets/all.jsonc * Support more properties of physical disks (PhysicalDisk) * Support SSD temperature detection with --physicaldisk-temp (PhysicalDisk) * Support ash (default shell of BusyBox) version detection (Shell, Linux) * Support manufacture date and serial number detection for physical monitors (Monitor) * Support battery serial number and manufacturer date detection (Battery) * Support host serial number and UUID detection (Host) * Support battery level detection for gamepads where possible (Gamepad) Bugfixes: * Fix segfault in CPU module when running in aarch64 machine without lscpu installed (CPU, Linux) * Don't use login as terminal process (Terminal, Linux) * Create sub folders when writing config file * Fix Btrfs subvolumes being detected as external partitions some times (Linux, Disk) * Fix battery cycle counts in some places (Battery) * Fix physical monitor detection with Nvidia drivers (Monitor, Linux) * Fix locale module printing unexpected results in specific environments (Locale) OBS-URL: https://build.opensuse.org/request/show/1142035 OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=34
2024-01-28 11:17:36 +01:00
# Copyright (c) 2024 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
- update to 2.11.3: * Features: - Add cmake option CUSTOM_AMDGPU_IDS_PATH for specifying custom path of amdgpu.ids * Bugfixes: - Fix hanging when detecting disconnected network drive (Disk, Windows) - Ensure line ending is printed when printing image logo errors (Logo) - Revert image logo limitation change in 2.11.2; allow image logo in SSH session and tmux again (#861, Logo) - Fix doubled output in custom formation (PhysicalDisk, Windows) - changes that are from 2.11.2: * Changes: - Error messages when trying to print image logo will only be printed with --show-errors - When generating JSON output, fastfetch will generate an empty array when no result is detected, instead of an error. * Bugfixes: - Fix segfault in Debian 11 and some old kernels. Regression introduced in 2.11.0 (#845, GPU, Linux) - Don't try detecting version of raw sh shell (#849, Shell, Linux) - Trim \r on Windows * Features: - Check xdg state home for nix user packages (#837, Packages, Linux) - Disable image logos in ssh and tmux sessions (#839) - Support MX Linux distro detection (#847, OS, Linux) * Logo: - Add KernelOS - Fix name of DraugerOS - Add missing FF_LOGO_LINE_TYPE_SMALL_BIT flags - Add MX2 - changes that are from 2.11.2: * Bugfixes: - Fix uninitialized variables which can cause crashes (#760 #838, Battery, Android) - Don't detect hyfetch as shell when used as backend of hyfetch - Fix incorrect information in man page (#828) OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=66
2024-05-05 09:46:37 +02:00
Version: 2.11.3
Release: 0
Summary: Neofetch-like tool written mostly in C
License: MIT
Group: Productivity/Text/Utilities
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
BuildRequires: pkgconfig(ImageMagick)
BuildRequires: pkgconfig(chafa)
BuildRequires: pkgconfig(dbus-1)
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}
Group: System/Shells
Supplements: (%{name} and fish)
Requires: fish
BuildArch: noarch
%description fish-completion
Fish command-line completion support for %{name}.
%package bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Supplements: (%{name} and bash-completion)
Requires: bash-completion
BuildArch: noarch
%description bash-completion
Bash command-line completion support for %{name}.
%prep
%setup -q
sed -i "s|\#\!\/usr\/bin\/env bash||g" completions/bash
sed -i "s|\#\!\/usr\/bin\/env fish||g" completions/fish
%build
%cmake
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/flashfetch
%{_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
%changelog