From Mageia wiki
Please remove this {{Draft}}template, when you're sure the page is complete and correct.
|
Assume you have one source tarball:
someprogram-1.2.3.tar.gz
first install patcher:
urpmi patcher
ctrl + d (no need to stay root)
then do:
tar xvf someprogram-1.2.3.tar.gz
cd someprogram-1.2.3/
ptr start
Now make the needed changes to the source files.
When you are done, do:
ptr diff >../someprogram-1.2.3-mga-what-this-patch-fixes.patch
then add in your .spec file:
Patch0 someprogram-1.2.3-mga-what-this-patch-fixes.patch
and also (under %setup) add:
%patch0 -p0