5
0
forked from pool/fastfetch
Files
fastfetch/fastfetch.spec

137 lines
3.8 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package fastfetch
#
- Update to 2.50.1: Bugfixes: * Fixes percentage bar not displaying correctly in certain cases * Fixes linglong package detection on Debian 13 (gh#fastfetch-cli/fastfetch#1899) - Update to 2.50.0: Changes: * Keys in JSON configuration files are now case-sensitive, as stated in v2.49.0. - This is a breaking change, but it should not affect most users as long as your config file passes JSON schema validation. * All module config flags have been removed, as stated in v2.49.0. - To configure modules via the command line * The percent bar config display.bar.* options have been replaced with a more organized, nested object structure. - `display.bar.charElapsed` has been renamed to `display.bar.char.elapsed`. - `display.bar.charTotal` has been renamed to `display.bar.char.total`. - `display.bar.borderLeft` has been renamed to `display.bar.border.left`. - `display.bar.borderRight` has been renamed to `display.bar.border.right`. * The undocumented flag `--load-config` has been removed. - Use `--config` or `-c` instead. * Flashfetch, a simplified fastfetch variant that used a hardcoded module list with direct function calls to reduce startup overhead, has been changed to a version that aims to match neofetch's behavior as closely as possible, for demonstration purposes. - Flashfetch is intended to be built from source (like st). We do not provide prebuilt binaries in distributions. Features: * Added support for reading JSON config from stdin using `--config -` or `-c -`. * Added `display.bar.border.{leftElapsed,rightElapsed}` for using the border as part of the bar content. (gh#fastfetch-cli/fastfetch#1875) - `display.bar.border: null` has been added as a shorthand to disable bar borders. * Added display.bar.color.{elapsed,total,border} to customize the color of the elapsed, total, and border sections of the percent bar. - `display.bar.color: null` has been added as a shorthand to disable bar colors. * Improved Bedrock Linux detection (gh#fastfetch-cli/fastfetch#1881) * Added the command flag `--gen-config-full`, which generates a JSON config file containing all optional module options. * Improved the default IP address display when `localip.showAllIPs` is not set (LocalIP) - For IPv4, the preferred source address (if detected) is shown. - For IPv6, the first GUA or ULA that is not deprecated or temporary is shown. * Added detection support for Xlibre (gh#fastfetch-cli/fastfetch#1888) Bugfixes: * Fixed custom object inheriting a key from the previous custom object if the key is blank (gh#fastfetch-cli/fastfetch#1477) * Fixed a possible segfault when parsing color strings in the JSON config (gh#fastfetch-cli/fastfetch#1878) * Fixed lliurex detection (gh#fastfetch-cli/fastfetch#1882) * Fixed compatibility with -ffast-math (gh#fastfetch-cli/fastfetch#1894) Logos: * Added ObsidianOS (gh#fastfetch-cli/fastfetch#1890) OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=169
2025-08-14 22:57:54 +00:00
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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.50.1: Bugfixes: * Fixes percentage bar not displaying correctly in certain cases * Fixes linglong package detection on Debian 13 (gh#fastfetch-cli/fastfetch#1899) - Update to 2.50.0: Changes: * Keys in JSON configuration files are now case-sensitive, as stated in v2.49.0. - This is a breaking change, but it should not affect most users as long as your config file passes JSON schema validation. * All module config flags have been removed, as stated in v2.49.0. - To configure modules via the command line * The percent bar config display.bar.* options have been replaced with a more organized, nested object structure. - `display.bar.charElapsed` has been renamed to `display.bar.char.elapsed`. - `display.bar.charTotal` has been renamed to `display.bar.char.total`. - `display.bar.borderLeft` has been renamed to `display.bar.border.left`. - `display.bar.borderRight` has been renamed to `display.bar.border.right`. * The undocumented flag `--load-config` has been removed. - Use `--config` or `-c` instead. * Flashfetch, a simplified fastfetch variant that used a hardcoded module list with direct function calls to reduce startup overhead, has been changed to a version that aims to match neofetch's behavior as closely as possible, for demonstration purposes. - Flashfetch is intended to be built from source (like st). We do not provide prebuilt binaries in distributions. Features: * Added support for reading JSON config from stdin using `--config -` or `-c -`. * Added `display.bar.border.{leftElapsed,rightElapsed}` for using the border as part of the bar content. (gh#fastfetch-cli/fastfetch#1875) - `display.bar.border: null` has been added as a shorthand to disable bar borders. * Added display.bar.color.{elapsed,total,border} to customize the color of the elapsed, total, and border sections of the percent bar. - `display.bar.color: null` has been added as a shorthand to disable bar colors. * Improved Bedrock Linux detection (gh#fastfetch-cli/fastfetch#1881) * Added the command flag `--gen-config-full`, which generates a JSON config file containing all optional module options. * Improved the default IP address display when `localip.showAllIPs` is not set (LocalIP) - For IPv4, the preferred source address (if detected) is shown. - For IPv6, the first GUA or ULA that is not deprecated or temporary is shown. * Added detection support for Xlibre (gh#fastfetch-cli/fastfetch#1888) Bugfixes: * Fixed custom object inheriting a key from the previous custom object if the key is blank (gh#fastfetch-cli/fastfetch#1477) * Fixed a possible segfault when parsing color strings in the JSON config (gh#fastfetch-cli/fastfetch#1878) * Fixed lliurex detection (gh#fastfetch-cli/fastfetch#1882) * Fixed compatibility with -ffast-math (gh#fastfetch-cli/fastfetch#1894) Logos: * Added ObsidianOS (gh#fastfetch-cli/fastfetch#1890) OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=169
2025-08-14 22:57:54 +00:00
Version: 2.50.1
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
Accepting request 1233452 from home:RN:branches:utilities - Excluded flashfetch binary - update to 2.33.0 Changes: * Introduce a new CMake flag `-DBUILD_FLASHFETCH=OFF` to disable building flashfetch binaries - Package managers are encouraged to enable it. Bugfixes: * Fix interconnect type detection (gh#fastfetch-cli/fastfetch#1453, PhysicalDisk) - Regression of v2.28 * Don't report `proot` as terminal (Terminal, Android) * Remove a debug output (DiskIO, OpenBSD) * Fix media detection for some players (gh#fastfetch-cli/fastfetch#1461, Media) - Regression of v2.32 Features: * Use `$POWERSHELL_VERSION` as PowerShell version if available (Shell) - Fetching Windows PowerShell version can be very slow. Add `$env:POWERSHELL_VERSION = $PSVersionTable.PSVersion.ToString()` in $PROFILE before running fastfetch to improve the performance of Shell module * Add support for ubuntu-based armbian detection (gh#fastfetch-cli/fastfetch#1447) * Improve performance of Bluetooth detection (Bluetooth) - We no longer report disconnected bluetooth devices in `--format json` when `--bluetooth-show-disconnected` isn't specified * Support brightness level detection for builtin displays (Brightness, OpenBSD / NetBSD) - Requires root permission on OpenBSD * Support battery level detection (Battery, OpenBSD / NetBSD) * Support CPU temperature detection in NetBSD (CPU, NetBSD) * Hard code path of `libvulkan.so` for Android - So that users don't need to install the vulkan-loader wrapper of termux Logo: * Add NurOS * Add GoralixOS OBS-URL: https://build.opensuse.org/request/show/1233452 OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=125
2024-12-26 14:07:38 +00:00
%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