From Mageia wiki
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

View all other pages to improve and maintain.

Assume you have one source tarball:


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