User Tools

Site Tools


infrastructure:distfiles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
infrastructure:distfiles [2014-04-08 21:35] – describe sources file gleninfrastructure:distfiles [2014-04-08 21:38] (current) – [Using sources file] glen
Line 17: Line 17:
 </code> </code>
  
 +As you can see, there's no url in that file, to indicate where to fetch, You should have ''SourceX'' with same basename in your ''.spec'':
 +<code rpmspec>
 +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
 +</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>
 ===== Manually forcing distfiles fetch ===== ===== Manually forcing distfiles fetch =====
  
infrastructure/distfiles.1396985704.txt.gz · Last modified: 2014-04-08 21:35 by glen

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS PLD Linux Driven by DokuWiki