Re: [Rpm-maint] [rpm-software-management/rpm] Use file path in %patch macro (#629)

2019-02-06 Thread Petr Menšík
Hi. This is my test approach to allow redefinition of patch application in old plain spec files. All references with ``` %patch1 -p1 %patch2 -p1 ``` etc. cannot be redefined. There is quite nice %apply_patch macro and %autopatch, which allows applying all patches in automated way.

[Rpm-maint] [rpm-software-management/rpm] Use file path in %patch macro (#629)

2019-02-06 Thread Petr Menšík
Moves single %patchX from RPM code to macros. This can be then redefined. Similar to apply_patch, but allows all custom flags that can be passed to %__patch utility. Forwards also name and number of a patch. Rename to __apply_patchx_{common,plain,uncompress} Use single macro in two variants,