This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
infrastructure:distfiles [2014-04-08 21:37] glen [Using sources file] |
infrastructure:distfiles [2014-04-08 21:38] (current) glen [Using sources file] |
||
---|---|---|---|
Line 21: | Line 21: | ||
Patch10004: http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-004 | Patch10004: http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-004 | ||
Patch10005: http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-005 | Patch10005: http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-005 | ||
+ | </code> | ||
+ | |||
+ | ==== patchset macro ==== | ||
+ | |||
+ | Listing sources in ''.spec'' and ''sources'' file can be annoying and duplicate work. | ||
+ | |||
+ | Therefore ''%patchset_source'' macro was created. | ||
+ | |||
+ | in Preamble define ''%patchset_source'' to inject to ''.spec'' file extra ''SourceX'' definitions: | ||
+ | <code rpmspec> | ||
+ | %patchset_source -f http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-%03g 1 %{patchlevel} | ||
+ | </code> | ||
+ | |||
+ | this would parse: | ||
+ | <code> | ||
+ | $ rpm -E '%patchset_source -f http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-%03g 1 3' | ||
+ | Patch10001: http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-001 | ||
+ | Patch10002: http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-002 | ||
+ | Patch10003: http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-003 | ||
</code> | </code> | ||
===== Manually forcing distfiles fetch ===== | ===== Manually forcing distfiles fetch ===== |