====== Information ======
* Fedora Wine Staging with additional patches and compile options
* Mostly for Guild Wars 2, but might affect other things
* https://copr.fedorainfracloud.org/coprs/espionage724/wine-patches
===== Resources =====
* http://bradthemad.org/tech/notes/patching_rpms.php
====== Dependencies ======
****
sudo dnf install 'rpm-build'
====== Prepare SRPM ======
* Acquire SRPM from https://koji.fedoraproject.org/koji/packageinfo?packageID=4106
* Use the latest version of Wine available for the latest supported version of Fedora
rm -Rf ~/'rpmbuild' && rpm -ivh ~/'Downloads/wine'*'.src.rpm' && sync
====== Download Patches ======
* Patches go in ''~/rpmbuild/SOURCES/*.patch''
* https://github.com/acomminos/wine-pba/tree/master/patches
===== Depreciated =====
* https://dev.wine-staging.com/patches/210/
* https://dev.wine-staging.com/patches/126/
====== Spec Config ======
****
gio open ~/'rpmbuild/SPECS/wine.spec'
===== Version =====
* Release format is ''1%{?dist}.#''
* Add ''.1'' value to ''Release''
* If new ''Version'' is released, start back at ''.1''
1%{?dist}.1
===== Include Patches =====
* Add under ''Patch511: wine-cjk.patch''
* Replace ''x'' with extra ''.patch'' filenames
Patch600: x
Patch601: x
Patch602: x
Patch603: x
Patch604: x
Patch605: x
===== Apply Patches =====
* Add under ''%prep'' section below the ''make -C patches DESTDIR="`pwd`" install'' line
%patch600 -p1
%patch601 -p1
%patch602 -p1
%patch603 -p1
%patch604 -p1
%patch605 -p1
====== Build SRPM ======
* https://copr.fedorainfracloud.org/coprs/espionage724/wine-patches/add_build_upload
rpmbuild -bs ~/'rpmbuild/SPECS/wine.spec' && sync
====== Compile Locally ======
sudo dnf builddep ~/'Downloads/wine'*'.src.rpm' && sync
rpmbuild -ba ~/'rpmbuild/SPECS/wine.spec' && sync
====== Cleanup ======
sudo dnf remove 'rpm-build'
rm -Rf ~/'rpmbuild' ~/'Downloads/wine'*'.src.rpm'
====== Changelog ======
* 2018/02/24: [[https://github.com/acomminos/wine-pba | wine-pba]]