User Tools

Site Tools


projects:fedora_wine-patches_copr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:fedora_wine-patches_copr [2017/02/10 13:13] Sean Rhoneprojects:fedora_wine-patches_copr [2018/02/24 21:56] (current) – [Download Patches] Sean Rhone
Line 1: Line 1:
 +====== 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
 +
 +<code>
 +Patch600:       x
 +Patch601:       x
 +Patch602:       x
 +Patch603:       x
 +Patch604:       x
 +Patch605:       x</code>
 +
 +===== Apply Patches =====
 +
 +  * Add under ''%prep'' section below the ''make -C patches DESTDIR="`pwd`" install'' line
 +
 +<code>
 +%patch600 -p1
 +%patch601 -p1
 +%patch602 -p1
 +%patch603 -p1
 +%patch604 -p1
 +%patch605 -p1</code>
 +
 +====== 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]]