Name: vmware-manager Version: 1.0.1 Release: 1%{?dist} Summary: Secure Boot manager for VMware host modules on Fedora License: GPL-3.0-only URL: https://github.com/hhlp/vmware Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch Requires: bash Requires: gcc Requires: make Requires: kernel-devel Requires: openssl Requires: mokutil Requires: kmod Requires: systemd Requires: sudo Requires: /usr/bin/dnf %description vmware-manager is a Fedora management utility for building, signing, installing, rebuilding, and maintaining VMware Workstation host kernel modules. It supports Secure Boot using Machine Owner Keys (MOK) and can create an optional systemd service that checks VMware host modules for the currently running kernel. The VMware proprietary application itself is not distributed by this package. %prep %autosetup -n vmware-%{version} %build # Nothing to build. # vmwmanager is a Bash script. %install install -Dpm0755 vmwmanager.sh \ %{buildroot}%{_bindir}/vmwmanager # $1 == 0 means final package removal. # Interactive cleanup is intentionally not performed from RPM scriptlets. # The recommended complete-removal path is `vmwmanager purge`, which # performs cleanup before asking DNF to remove this package. %preun if [ "$1" -eq 0 ]; then if [ -e /etc/systemd/system/vmware-rebuild.service ] || [ -e /var/lib/shim-signed/mok/vmware.key ] || [ -e /var/lib/shim-signed/mok/vmware.der ]; then echo echo "vmware-manager integration may still be configured." echo echo "For complete cleanup before RPM removal, cancel this transaction" echo "and run:" echo echo " sudo vmwmanager purge" echo echo "The purge command processes vmwmanager integration resources" echo "and then starts the DNF removal transaction itself." echo fi fi %files %license LICENSE %doc README.md %doc FAQ.md %doc TEST.md %doc CONTRIBUTING.md %doc SECURITY.md %doc CHANGELOG.md %{_bindir}/vmwmanager %changelog * Fri Sep 11 2026 hhlp <2659606+hhlp@users.noreply.github.com> - 1.0.1-1 - Added `purge` command to process vmwmanager integration cleanup and then remove the `vmware-manager` RPM through DNF. - `purge` leaves VMware Workstation and its host modules outside the vmware-manager RPM lifecycle. - Kept the existing `uninstall` command behavior unchanged: it cleans vmwmanager integration but does not remove the RPM.