%global debug_package %{nil} %global _enable_debug_package 0 Name: proxmox-backup-client-static Version: 4.0.16 Release: 1%{?dist} Summary: Proxmox Backup Client - Static Binary License: AGPL-3.0-or-later URL: https://proxmox.com/en/proxmox-backup/ Source0: %{name}-%{version}.tar.gz BuildArch: x86_64 Provides: proxmox-backup-client = %{version} %description Proxmox Backup Client is a client utility for creating backups on Proxmox Backup Server. This package contains a statically linked binary that can run on any Linux distribution. %prep %setup -q -n . %build # Niente da compilare, รจ un binario statico %install mkdir -p %{buildroot} cp -r usr %{buildroot}/ %files %defattr(-,root,root,-) /usr/bin/proxmox-backup-client /usr/bin/pxar %dir /usr/share/bash-completion/completions /usr/share/bash-completion/completions/proxmox-backup-client /usr/share/bash-completion/completions/pxar %dir /usr/share/doc/proxmox-backup-client-static /usr/share/doc/proxmox-backup-client-static/changelog.Debian.gz /usr/share/doc/proxmox-backup-client-static/copyright %dir /usr/share/lintian/overrides /usr/share/lintian/overrides/proxmox-backup-client-static %dir /usr/share/man/man1 /usr/share/man/man1/proxmox-backup-client.1.gz /usr/share/man/man1/pxar.1.gz %dir /usr/share/zsh/vendor-completions /usr/share/zsh/vendor-completions/_proxmox-backup-client /usr/share/zsh/vendor-completions/_pxar %post # Aggiorna il database dei comandi if [ -x /usr/sbin/update-alternatives ]; then /usr/sbin/update-alternatives --install /usr/bin/proxmox-backup-client proxmox-backup-client /usr/bin/proxmox-backup-client 100 fi %postun if [ ! -e /usr/bin/proxmox-backup-client ]; then /usr/sbin/update-alternatives --remove proxmox-backup-client /usr/bin/proxmox-backup-client 2>/dev/null || true fi %changelog * Sun Dec 07 2025 Your Name - 4.0.16-1 - Initial RPM release of Proxmox Backup Client static binary - Converted from Debian package - Includes bash and zsh completions - Includes man pages