Name: linuwux-runtime Version: 26.09.28.4 Release: 0 Summary: Standalone Linux preload runtime library for Wine and Proton License: LGPL-2.1-or-later Group: System/Libraries URL: https://github.com/brcly/linuwux-runtime Source0: https://github.com/brcly/linuwux-runtime/releases/latest/download/LinUwUx.so Source1: linuwux ExclusiveArch: x86_64 %global debug_package %{nil} %description A preloadable runtime library (LinUwUx.so) providing CPUID spoofing, syscall redirection, and time interposition for Wine and Proton environments. %install install -d -m 0755 %{buildroot}%{_libdir} install -m 0755 %{SOURCE0} %{buildroot}%{_libdir}/LinUwUx.so install -d -m 0755 %{buildroot}%{_bindir} install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/linuwux %post if [ -n "$SUDO_USER" ]; then USER_HOME=$(getent passwd "$SUDO_USER" | cut -d: -f6) USER_GROUP=$(id -gn "$SUDO_USER") if [ -d "$USER_HOME" ]; then mkdir -p "$USER_HOME/.local/lib" cp --reflink=auto -f %{_libdir}/LinUwUx.so "$USER_HOME/.local/lib/LinUwUx.so" chown -h "$SUDO_USER:$USER_GROUP" "$USER_HOME/.local/lib/LinUwUx.so" chown -R "$SUDO_USER:$USER_GROUP" "$USER_HOME/.local/lib" chmod 0755 "$USER_HOME/.local/lib" chmod 0755 "$USER_HOME/.local/lib/LinUwUx.so" fi fi %postun if [ -n "$SUDO_USER" ]; then USER_HOME=$(getent passwd "$SUDO_USER" | cut -d: -f6) TARGET_LINK="$USER_HOME/.local/lib/LinUwUx.so" if [ -f "$TARGET_LINK" ] || [ -L "$TARGET_LINK" ]; then rm -f "$TARGET_LINK" fi rmdir --ignore-fail-on-non-empty "$USER_HOME/.local/lib" 2>/dev/null || true fi %files %{_libdir}/LinUwUx.so %{_bindir}/linuwux