File macros of Package mingw64-cross-wine

# Cross wine specific macro definitions.
# TODO: setup DNS

#
# Initialize wine home dir and add optional custom path to Windows PATH environment variable 
#
# syntax:
#   %_mingw64_cross_wine_init [<path-add-to-PATH-env-var>]
#
%_mingw64_cross_wine_init \
    RPM_CONFIG_DIR=/usr/lib/rpm \
    RPM_FILE_PREFIX=mingw64-cross-wine- \
    export WINEPREFIX="$HOME/.mingw64-cross-wine" \
    export WINEARCH=win64 \
    export WINETRICKS_LATEST_VERSION_CHECK=disabled \
    export WINETRICKS_DOWNLOADER=wget \
    test "%{_host_cpu}" == "x86_64" && ci_host=%{_mingw64_target} . $RPM_CONFIG_DIR/${RPM_FILE_PREFIX}wine.sh

#
# Enable dns support on obs (experimental)
#
# syntax:
#   %_mingw64_cross_wine_enable_dns
#
%_mingw64_cross_wine_enable_dns() \
    dnsmasq & \
    %nil

#
# Run windows executables with graphical display
#
# syntax:
#   %_mingw64_cross_wine_run <command-to-run>
#
%_mingw64_cross_wine_run WINEPREFIX="$HOME/.mingw64-cross-wine" xvfb-run -a

#
# Start windows session with graphical display
#
# syntax:
#   %_mingw64_cross_wine_start_session
#
%_mingw64_cross_wine_start_session \
    %_mingw64_cross_wine_run -n 99 /bin/sh  & \
    export DISPLAY=:99 \
    %nil
openSUSE Build Service is sponsored by