sudo dnf install 'rpm-build'
wine-3.4-1.fc27
wget -O ~/'Downloads/wine-fc27.src.rpm' 'https://kojipkgs.fedoraproject.org//packages/wine/3.4/1.fc27/src/wine-3.4-1.fc27.src.rpm'
rm -Rf ~/'rpmbuild' && rpm -ivh ~/'Downloads/wine'*'.src.rpm' && rm -fv ~/'Downloads/wine'*'.src.rpm' && sync
gio open ~/'rpmbuild/SPECS/wine.spec'
0
to 1
specifically on the following line%global compholio 0
%global compholio 1
Version
should always be master
Version: master
1%{?dist}
1
for future package buildsmaster
and no newer Version
is expected, this number should continue increasing foreverRelease: 7%{?dist}
Source10
, there is no signing key for master
archives; I'm pretty sure this doesn't matter that much so to make life easier, just hard-code this to whatever the SRPM includes alreadySource0: https://github.com/wine-mirror/wine/archive/master.tar.gz#/wine-%{version}.tar.gz Source10: http://downloads.sourceforge.net/wine/wine-3.3.tar.xz.sign
Source900: https://github.com/wine-staging/wine-staging/archive/master.tar.gz#/wine-staging-%{version}.tar.gz
%build
O1
to Ofast
export TEMP_CFLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/-O2/-O1/'`"
export TEMP_CFLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/-O2/-Ofast/'`"
spec
file 3)%if 0%{?compholio} %{_libdir}/wine/vulkan-1.dll.so %{_libdir}/wine/vulkan.dll.so %endif
%{_libdir}/wine/strmdll.dll.so
%if 0%{?compholio} %{_libdir}/wine/api-ms-win-appmodel-runtime-l1-1-1.dll.so %endif
rm -fv ~/'rpmbuild/SOURCES/wine-'*'.tar.xz'
wget -O ~/'rpmbuild/SOURCES/wine-master.tar.gz' 'https://github.com/wine-mirror/wine/archive/master.tar.gz'
wget -O ~/'rpmbuild/SOURCES/wine-staging-master.tar.gz' 'https://github.com/wine-staging/wine-staging/archive/master.tar.gz'
rpmbuild -bs ~/'rpmbuild/SPECS/wine.spec' && sync
~/rpmbuild/SRPMS
sudo dnf builddep ~/'Downloads/wine'*'.src.rpm' && sync
rpmbuild -ba ~/'rpmbuild/SPECS/wine.spec' && sync
sudo dnf remove 'rpm-build'
rm -Rf ~/'rpmbuild' ~/'Downloads/wine'*'.src.rpm'