Name: linux_logo Version: 5.11 Release: 1%{?dist} Summary: Color ANSI logo with some system information License: GPL-2.0-or-later URL: http://www.deater.net/weave/vmwprod/linux_logo Source0: http://www.deater.net/weave/vmwprod/%{name}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: gettext %description Linux_logo displays a color ANSI logo of a penguin and some system information found in /proc. It is designed for the text-console and is often used in boot scripts to display the login screen. %prep %autosetup %build # Export Fedora's standard compiler flags for security and optimization. export CFLAGS="%{optflags}" export LDFLAGS="%{?__global_ldflags}" # Configure for the actual system paths (/usr). # We do NOT use the %%configure macro because this project uses a custom # script, not standard GNU Autotools. ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --sysconfdir=%{_sysconfdir} %make_build %install # Create the directory structure in the buildroot manually to ensure safety. mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_sysconfdir} # CRITICAL FIX: # We use uppercase 'PREFIX' and 'MANDIR' here. # The upstream Makefile is case-sensitive and hardcodes these variables in uppercase. # If we pass lowercase 'prefix', it gets ignored, causing the installer to try # writing to the actual /usr directory (causing Permission Denied). make install \ PREFIX=%{buildroot}%{_prefix} \ MANDIR=%{buildroot}%{_mandir} \ sysconfdir=%{buildroot}%{_sysconfdir} \ INSTALL="install -p" %files %license COPYING %doc README TODO USAGE %{_bindir}/linux_logo %{_mandir}/man1/linux_logo.1* %config(noreplace) %{_sysconfdir}/linux_logo.conf %changelog * Thu Feb 05 2026 Priscila - 5.11-1 - Initial package for Fedora - Fixed Makefile variable case sensitivity (prefix -> PREFIX) to resolve install permission errors