Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alveus:main:wine
mingw64-cross-wine
mingw64-cross-wine.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw64-cross-wine.spec of Package mingw64-cross-wine
# # spec file for package mingw64-cross-wine # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define _with_dns 0 %define _rpm_macros_dir %{_rpmconfigdir}/macros.d Name: mingw64-cross-wine Version: 1.3.2 Release: 1.5 Summary: Wine cross runtime License: GPL-2.0-or-later Group: Development/Libraries/C and C++ URL: http://www.winehq.org/ Source1: macros Source2: wine.sh %if %{?_with_dns} # nslookup Requires: bind-utils # dns server Requires: dnsmasq BuildRequires: NetworkManager # netupdate for regenerating /etc/resolv.conf Requires: sysconfig %endif # i686-w64-mingw64-objdump BuildRequires: mingw64-cross-binutils BuildRequires: mingw64-filesystem Requires: mingw64-filesystem Requires: wget Requires: wine-binfmt-standalone Requires: winetricks # Xvfb for x display Requires: xorg-x11-server Requires: xvfb-run %_mingw64_package_header BuildArch: noarch #!BuildIgnore: post-build-checks %description This package contains a ready to use wine prefix for running cross compiled applications while building packages, for example cross compiled test %prep %setup -c -T %build %install mkdir -p %{buildroot}%{_rpm_macros_dir} cp %{_sourcedir}/macros %{buildroot}%{_rpm_macros_dir}/macros.mingw64-cross-wine cp %{_sourcedir}/wine.sh %{buildroot}%{_rpmconfigdir}/mingw64-cross-wine-wine.sh mkdir -p %{buildroot}%{_bindir} ln -s %{_libexecdir}/mingw64-scripts %{buildroot}%{_bindir}/mingw64-cross-wine-init ln -s %{_libexecdir}/mingw64-scripts %{buildroot}%{_bindir}/mingw64-cross-wine-run ln -s %{_libexecdir}/mingw64-scripts %{buildroot}%{_bindir}/mingw64-cross-wine-start-session %if %{?_with_dns} %post # setup dns config set -x # add dnsmasq as local dns server sed -i '/^NETCONFIG_DNS_FORWARDER=/ s,"resolver","dnsmasq",g' /etc/sysconfig/network/config sed -i '/^NETCONFIG_DNS_STATIC_SERVERS=/ s,"","127.0.0.1",g' /etc/sysconfig/network/config sed -i '/^DEBUG=/ s,"no","yes",g' /etc/sysconfig/network/config sed -i '/^NETCONFIG_VERBOSE=/ s,"no","yes",g' /etc/sysconfig/network/config cat /etc/sysconfig/network/config # update /etc/resolv.conf netconfig update -f cat /etc/resolv.conf cat /var/run/dnsmasq-forwarders.conf # setup dns server cat << EOF >> /etc/dnsmasq.conf listen-address=127.0.0.1 port=53 domain-needed bogus-priv resolv-file=/var/run/dnsmasq-forwarders.conf EOF # start local dns server /usr/sbin/dnsmasq -u root & sleep 2 netstat -alnp # check dns dig 127.0.0.1 %endif %if %{?_with_dns} %preun killall -9 dnsmasq %endif %files %defattr(-,root,root) %dir %{_rpmconfigdir} %dir %{_rpm_macros_dir} %{_rpm_macros_dir}/macros.mingw64-cross-wine %{_rpmconfigdir}/mingw64-cross-wine-wine.sh %{_bindir}/mingw64-* %changelog * Wed Jul 12 2023 Imnotgivingmy nametoamachine <milanfix@protonmail.com> - Update to version 1.3.2 * Fixed mingw64-cross-wine-init, mingw64-cross-wine-run and mingw64-cross-wine-start-session links being broken in tumbleweed due to this distro using a different path for the libexec folder. (see https://bugzilla.opensuse.org/show_bug.cgi?id=1213235) * Sun Apr 16 2023 Ralf Habacker <ralf.habacker@freenet.de> - Drop tag BuildRoot: (boo#1207289) - Cleanup spec file * Thu Jul 21 2022 Ralf Habacker <ralf.habacker@freenet.de> - Only create wine prefix when running on x86_64 cpu host as wine support on other architectures is currently not working (boo#1199176, boo#1199175) * Fri Apr 1 2022 Ralf Habacker <ralf.habacker@freenet.de> - updated to 1.3.2 * fix bug using different wine prefixes * move all wine related processing into wine.sh to have a clean separation * Mon Mar 28 2022 Ralf Habacker <ralf.habacker@freenet.de> - updated to 1.3.1 * Use 'winetricks set_userpath' to set wine paths * Fix winetricks warnings by adding wget and env vars * Sun Jan 9 2022 Ralf Habacker <ralf.habacker@freenet.de> - Add winetricks and use to disable crash dialog and winedbg * Sat Oct 17 2020 Ralf Habacker <ralf.habacker@freenet.de> - 1.3.0 * Add shell wrapper mingw64-cross-wine-init, mingw64-cross-wine-run and mingw64-cross-wine-start-session * Use a custom wine prefix to preserve existing ones * Remove generated temporary file - ------------------------------------------------------------------ * Thu Aug 27 2020 Ralf Habacker <ralf.habacker@freenet.de> - 1.2.0: * Add rpm macro _mingw64_cross_wine_start_session * Remove obsolete file mingw64-cross-wine.rpmlintrc as mingw64-filesystem already provides the same filter * Sun Jun 21 2020 Ralf Habacker <ralf.habacker@freenet.de> - 1.1.0: * Add wine.sh and user-path.reg.in * Mon Feb 16 2015 ralf.habacker@freenet.de - place cross wine setup into rpm macro
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor