From Mageia wiki
Revision as of 21:02, 17 December 2012 by Marja (talk | contribs) (started page (thx ryoshu))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


this page is a draft.
It requires improvements. If you want to improve it, simply log in and click on the Edit tab.

Please remove this {{Draft}}template, when you're sure the page is complete and correct.


View the other draft pages, or other pages to improve and maintain.

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