##trace # force single job compilation #%%define _smp_mflags -j1 %global gitdate 20260827 %global commit f3890f670867b5ffbc3938726db45c0f7d16c8ba %global shortcommit %(c=%{commit}; echo ${c:0:7}) # lastest release of winetricks # https://github.com/Winetricks/winetricks/releases %global version 20260125 %global release 6 # set this to "1" if building a git/beta/rc release %global snapshot 1 Name: winetricks %if %{snapshot} Version: %{version}^%{gitdate}git%{shortcommit} %else Version: %{version} %endif Release: %{release}%{?dist} Summary: Winetricks is an easy way to work around problems in Wine License: LGPLv2+ URL: https://github.com/Winetricks/winetricks %if 0%{?snapshot} Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %endif BuildArch: noarch # need arch-specific wine, not available everywhere: # - adopted from wine.spec ExclusiveArch: %{ix86} x86_64 aarch64 # - explicitly not ppc64* to hopefully not confuse koschei ExcludeArch: ppc64 ppc64le BuildRequires: make BuildRequires: desktop-file-utils # comment below to make winetricks independent from wine #Requires: wine-common Requires: cabextract gzip unzip wget which Requires: hicolor-icon-theme Requires: zenity %description Winetricks is an easy way to work around problems in Wine. It has a menu of supported games/apps for which it can do all the workarounds automatically. It also allows the installation of missing DLLs and tweaking of various Wine settings. %prep %if 0%{?snapshot} %autosetup -p1 -n %{name}-%{commit} %else %autosetup -p1 -n %{name}-%{version} %endif sed -i -e s:steam:: -e s:flash:: tests/* %build # nothing to build %install %make_install %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files %defattr(-,root,root) %license COPYING debian/copyright %doc README.md %attr(0755,root,root) %{_bindir}/%{name} %attr(0644,root,root) %{_mandir}/man1/%{name}.1* %attr(0644,root,root) %{_datadir}/applications/%{name}.desktop %attr(0644,root,root) %{_datadir}/bash-completion/completions/%{name} %attr(0644,root,root) %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %attr(0644,root,root) %{_datadir}/metainfo/io.github.winetricks.Winetricks.metainfo.xml %changelog