%global debug_package %{nil} Name: kkfetch Version: 0.20.0 Release: 1%{?dist} Summary: Fast, lightweight system information tool in Rust License: MIT OR Apache-2.0 URL: https://github.com/kk376/kkfetch Source0: https://github.com/kk376/kkfetch/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo >= 1.75.0 BuildRequires: rust >= 1.75.0 BuildRequires: gcc %description KKFetch is a fast, zero-runtime-dependency CLI system information fetch tool written in Rust, specifically designed for Linux distributions. It gathers system metrics including OS release, kernel version, CPU, GPU, memory, disk usage, package managers, desktop environment, uptime, and shell information, formatting them cleanly alongside colorful ANSI distribution ASCII logos. %prep %autosetup -n %{name}-%{version} %build cargo build --release %check cargo test --release %install # Install executable binary install -Dpm 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name} # Install shell completions install -Dpm 0644 completions/%{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} install -Dpm 0644 completions/_%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name} install -Dpm 0644 completions/%{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish # Install man page if [ -f docs/%{name}.1 ]; then install -Dpm 0644 docs/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 fi # Install documentation install -Dpm 0644 README.md %{buildroot}%{_docdir}/%{name}/README.md %files %license LICENSE LICENSE-MIT LICENSE-APACHE %doc README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_datadir}/bash-completion/completions/%{name} %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/_%{name} %dir %{_datadir}/fish/vendor_completions.d %{_datadir}/fish/vendor_completions.d/%{name}.fish %post # Automatically remove any older conflicting cargo or local binaries in PATH if [ -n "$SUDO_USER" ]; then USER_HOME=$(getent passwd "$SUDO_USER" | cut -d: -f6) if [ -n "$USER_HOME" ]; then for shadowed in "$USER_HOME/.cargo/bin/%{name}" "$USER_HOME/.local/bin/%{name}" "/usr/local/bin/%{name}"; do if [ -f "$shadowed" ]; then rm -f "$shadowed" 2>/dev/null || true fi done rm -f "$USER_HOME/.cache/%{name}/de_*.cache" "$USER_HOME/.cache/%{name}/theme_*.cache" 2>/dev/null || true fi fi %changelog * Wed Oct 07 2026 Kushagra Kumar (kk376) - 0.20.0-1 - Release version 0.20.0: Information hierarchy optimization, disk and WM deduplication, compact timings grid, and Ghostty terminal font detection * Fri Oct 02 2026 Kushagra Kumar (kk376) - 0.19.0-1 - Release version 0.19.0: Multi-distribution ecosystem expansion (openSUSE OBS, EPEL 9/10 Copr for RHEL, Rocky, AlmaLinux, CentOS Stream, and automated release pipeline) * Thu Oct 01 2026 Kushagra Kumar (kk376) - 0.18.3-1 - Release version 0.18.3: 3-tier battery probing with tmpfs RAM cache, UPower D-Bus fast path, and concurrent thread execution * Thu Oct 01 2026 Kushagra Kumar (kk376) - 0.18.2-1 - Release version 0.18.2: Real-time battery sysfs synchronization, cold boot SQLite Name table fast path, streaming pci.ids, and network mount protections * Sat Sep 26 2026 Kushagra Kumar (kk376) - 0.18.1-1 - Release version 0.18.1: Classify AMD Raphael desktop iGPU as Integrated GPU (PR #1 by @akashdeepghosh) * Fri Sep 25 2026 Kushagra Kumar (kk376) - 0.18.0-1 - Release version 0.18.0: Persistent disk caching for battery and terminal to guarantee sub 1ms cold boot latency * Thu Sep 24 2026 Kushagra Kumar (kk376) - 0.17.0-1 - Release version 0.17.0: Dynamic Wayland/Sway/X11 scaling, compositor-authoritative cursor, session-bound theme cache, cross-session residue elimination * Mon Sep 21 2026 Kushagra Kumar (kk376) - 0.16.0-1 - Release version 0.16.0: Add fractional display scaling, live DE version invalidation, categorized Local IP with CIDR notation * Mon Sep 21 2026 Kushagra Kumar (kk376) - 0.15.2-1 - Release version 0.15.2: Automatic silent binary conflict resolution and quiet version output * Mon Sep 21 2026 Kushagra Kumar (kk376) - 0.15.1-1 - Release version 0.15.1: Installation health doctor (--doctor), binary shadowing warnings on -V/--version, packaging post-install notices, and updated shell completions * Mon Sep 21 2026 Kushagra Kumar (kk376) - 0.15.0-1 - Release version 0.15.0: Colorized battery time estimates, instant AC transition detection, reduced cache TTL, thread pool optimization, and package manager scan refinements * Sat Sep 12 2026 Kushagra Kumar (kk376) - 0.14.5-1 - Release version 0.14.5: Hotfix release syncing binary version string and package distributions * Sat Sep 12 2026 Kushagra Kumar (kk376) - 0.14.0-1 - Release version 0.14.0: Hardware-fingerprinted GPU cache invalidation for SSD swaps, updated Fastfetch benchmarks * Fri Sep 04 2026 Kushagra Kumar (kk376) - 0.13.0-1 - Release version 0.13.0: Darwin support, Win32 alignment hardening, no-plugins flag, cross-platform CI matrix * Tue Sep 01 2026 Kushagra Kumar (kk376) - 0.12.0-1 - Release version 0.12.0: Official rebrand to kkfetch, safety documentation, clippy safety lint, and cargo audit CI * Mon Aug 31 2026 Kushagra Kumar (kk376) - 0.11.7-1 - Release version 0.11.7: Rebrand to kkfetch, security hardening, and performance optimizations * Mon Aug 24 2026 Kushagra Kumar (kk376) - 0.10.1-1 - Release version 0.10.1 - Clean GPU marketing model resolution without raw internal silicon codenames - Dual-boot RTC installer clock skew normalization for OS installation time * Sun Aug 23 2026 Kushagra Kumar (kk376) - 0.10.0-1 - Release version 0.10.0 - Native Win32 zero-subprocess shell and terminal resolution - Windows package managers (Scoop, Winget, Chocolatey) - Release version 0.10.0: Milestone release with native Win32 zero-subprocess shell and terminal resolution * Sun Aug 23 2026 Kushagra Kumar (kk376) - 0.9.9-1 - Release version 0.9.9 - Preserve package checksum hashes in vendored crates * Sun Aug 23 2026 Kushagra Kumar (kk376) - 0.9.8-1 - Release version 0.9.8 - Fix vendored cargo checksums and offline paths * Sun Aug 23 2026 Kushagra Kumar (kk376) - 0.9.7-1 - Release version 0.9.7 - RPM MTIME package caching for sub-millisecond query latency - DRM-first display connector parsing * Sun Aug 23 2026 Kushagra Kumar (kk376) - 0.9.6-1 - Release version 0.9.6 - WSL Host Version Discovery: Reports host WSL version on Host line - Vendored cargo checksum fix for offline builds * Sat Aug 22 2026 Kushagra Kumar (kk376) - 0.9.5-1 - Release version 0.9.5 - WSLg Version Discovery: Probes and reports active WSLg version - GPU Type Classification: Identifies and annotates [Integrated] vs [Discrete] GPUs * Sat Aug 22 2026 Kushagra Kumar (kk376) - 0.9.0-1 - Release version 0.9.0 - Enhanced ASCII Distro Art: High-contrast white outer framing with brand-colored inner emblems across all 26+ distributions - WSL2 Storage Resolution: Normalized 9p/drvfs virtualization filesystem mappings to native NTFS for Windows drive mounts * Sun Aug 16 2026 Kushagra Kumar (kk376) - 0.1.0-1 - Initial RPM release for version 0.1.0 - Added modular system metric collectors - Added multi-distro ANSI 256-color ASCII art - Added Bash, Zsh, and Fish shell completions