fastfetch/fastfetch.spec
Soc Virnyl Estela 1bba6a174f - Update to version 2.0.1:
* Changes:
    - Unescape strings only when parsing .conf files
        - Previously: $ NO_CONFIG=1 fastfetch --os-key \\\\ -s os -l none prints \: *. 
          Note the backslashs are unescaped twice (once by shell and once by fastfetch).
        - Now: $ NO_CONFIG=1 fastfetch --os-key \\\\ -s os -l none prints \\: *
    - Remove option shortcut -c (alias of --color), which is more commonly used as alias of --config
    - Rename --recache to --logo-recache (which is used for regenerate image logo cache). Remove option shortcut -r (alias of --recache).
    - Detecting brightness of external displays with DDC/CI is no longer guarded behind --allow-slow-operations (Brightness)
  * Features:
    - Add --key-width for aligning the left edge of values, supported both for global --key-width and specific module --module-key-width
    - Add --bar-char-elapsed, --bar-char-total, --bar-width and --bar-border options
    - Add CMake option ENABLE_SYSTEM_YYJSON, which allow building fastfetch with system-provided yyjson (for package managers)
    - Add new module Version, which prints fastfetch version (like fastfetch --version)
  * Bugfixes:
    - Fix label detection. Use --disk-key 'Disk ({2})' to display it (Disk, Linux)
    - Fix some module options were not inited
    - Fix terminal version and font detection on NixOS (Terminal, Linux)

OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=21
2023-08-22 02:53:28 +00:00

98 lines
2.6 KiB
RPMSpec

#
# spec file for package fastfetch
#
# Copyright (c) 2023 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.0.1
Release: 0
Summary: Neofetch-like tool written in C
License: MIT
Group: Productivity/Text/Utilities
URL: https://github.com/LinusDierheimer/fastfetch
Source: https://github.com/LinusDierheimer/fastfetch/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: Mesa-devel
BuildRequires: cmake
BuildRequires: opencl-headers
BuildRequires: vulkan-headers
BuildRequires: pkgconfig(ImageMagick)
BuildRequires: pkgconfig(chafa)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libpci)
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 in pure c, with performance and customizability in mind. Currently Linux, Android, FreeBSD,
MacOS and Windows 7+ are supported.
%prep
%setup -q
sed -i "s|\#\!\/usr\/bin\/env bash||g" completions/bash
%build
%cmake
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/flashfetch
%{_bindir}/%{name}
%if 0%{?suse_version} > 1500
%dir %_distconfdir/%{name}
%_distconfdir/%{name}/config.conf
%else
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/config.conf
%endif
%{_datadir}/%{name}/
%{_datadir}/bash-completion/
%changelog