blob: 688d5fc1aeac835388249c859b89678dfb2346c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
%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 <pkwarcraft@hotmail.com> - 2.34.0-1
- Init package
|