%global debug_package %{nil} Name: bottles-soda-experimental Version: 11.0.32 Release: 100.2.1%{?dist} Summary: Soda 11 experimental Wine runner for Bottles (11.0-32) License: LGPL-2.1-or-later URL: https://github.com/bottlesdevs/wine %global runner soda-11.0-32-experimental ExclusiveArch: x86_64 aarch64 # Include both tarballs so an SRPM created on x86_64 also builds on aarch64. Source0: https://github.com/bottlesdevs/wine/releases/download/%{runner}/%{runner}-x86_64.tar.xz Source1: https://github.com/bottlesdevs/wine/releases/download/%{runner}/%{runner}-aarch64.tar.xz Source2: bottles-soda-import %description Precompiled experimental Soda 11 Wine runner used by Bottles. Use bottles-soda-import as the regular user to copy the runner into native Bottles' runner directory. This package does not install Bottles itself. %prep %setup -q -T -c -n %{name}-%{version} %ifarch x86_64 printf '%%s %%s\n' 'b5f85741615e6a0551fa6506c569d0da' '%{SOURCE0}' | md5sum -c - tar -xf %{SOURCE0} %else printf '%%s %%s\n' 'a1cc6d19c0df631166d8a484873b7363' '%{SOURCE1}' | md5sum -c - tar -xf %{SOURCE1} %endif %build %install # Archive layout may use an architecture suffix or a nested files directory. runner_source="" for candidate in \ "%{runner}-%{_arch}" \ "%{runner}" \ "%{runner}-%{_arch}/files" \ "%{runner}/files"; do if [ -x "$candidate/bin/wine" ]; then runner_source="$candidate" break fi done if [ -z "$runner_source" ]; then echo "Wine executable not found in Soda release archive" >&2 find . -maxdepth 5 -path '*/bin/wine' -print >&2 exit 1 fi install -dm755 %{buildroot}%{_prefix}/libexec/bottles-soda-experimental cp -a -- "$runner_source" %{buildroot}%{_prefix}/libexec/bottles-soda-experimental/%{runner} install -Dm755 %{SOURCE2} %{buildroot}%{_bindir}/bottles-soda-import %files %{_bindir}/bottles-soda-import %{_prefix}/libexec/bottles-soda-experimental/%{runner}/ %changelog * Fri Oct 23 2026 Sl - 11.0.32-1 - Bundle both runner architectures into the SRPM for cross-architecture COPR builds. - Accept architecture-suffixed and nested release archive layouts.