Name: linuxtoys Version: 5.1.7 Release: 1 Summary: A set of tools for Linux presented in a user-friendly way BuildArch: x86_64 License: GPL3 Requires: git curl wget zenity python3 python3-gobject gtk3 jq python3-requests python3-urllib3 python3-certifi BuildRequires: desktop-file-utils %description A menu with various handy tools for Linux gaming, optimization and other tweaks. %global debug_package %{nil} %prep # No setup needed - we'll copy files directly from SOURCES %install mkdir -p %{buildroot}/usr/bin/ mkdir -p %{buildroot}/usr/share/linuxtoys/ mkdir -p %{buildroot}/usr/share/icons/hicolor/scalable/apps/ mkdir -p %{buildroot}/usr/share/applications/ # Install files directly from SOURCES # Install the main executable script install -m 755 %{_sourcedir}/linuxtoys-%{version}/usr/bin/linuxtoys %{buildroot}/usr/bin/ # Install the Python application directory with all subdirectories cp -rf %{_sourcedir}/linuxtoys-%{version}/usr/share/linuxtoys/* %{buildroot}/usr/share/linuxtoys/ # Set proper permissions for executable files chmod +x %{buildroot}/usr/share/linuxtoys/run.py find %{buildroot}/usr/share/linuxtoys/scripts/ -name "*.sh" -exec chmod +x {} \; find %{buildroot}/usr/share/linuxtoys/helpers/ -name "*.sh" -exec chmod +x {} \; # Install icon and desktop file install -m 644 %{_sourcedir}/linuxtoys-%{version}/usr/share/icons/hicolor/scalable/apps/linuxtoys.png %{buildroot}/usr/share/icons/hicolor/scalable/apps/ desktop-file-install --dir=%{buildroot}/usr/share/applications %{_sourcedir}/linuxtoys-%{version}/usr/share/applications/LinuxToys.desktop %post alias_name="linuxtoys" alias_command="/usr/bin/linuxtoys" target_file="/etc/bash.bashrc" if ! grep -q "alias $alias_name=" "$target_file"; then echo "alias $alias_name='$alias_command'" >> "$target_file" echo "Alias '$alias_name' created." else echo "Alias '$alias_name' already exists." fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, -) /usr/bin/linuxtoys /usr/share/linuxtoys /usr/share/icons/hicolor/scalable/apps/linuxtoys.png /usr/share/applications/LinuxToys.desktop %changelog * Wed Aug 27 2025 Victor Gregory - 5.1.7 - Updated to current app structure with full Python application - Added proper file permissions for all scripts - Updated dependencies for current requirements