<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">I need to set the epoch when I package a build2 project as an RPM.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Assume the manifest file contains “version: 1.2.3”.<o:p></o:p></p>
<p class="MsoNormal">When I use the “bpkg bindist –keep-output <project>” command to build the RPM files,<o:p></o:p></p>
<p class="MsoNormal">the resulting spec file contains the expected “Version: 1.2.3” line.<o:p></o:p></p>
<p class="MsoNormal">It does not have an “Epoch:” line. (Which is what I expect.)<br>
<br>
To set the epoch, I added the “fedora-version” to the project manifest file (“fedora-version: 1:1.2.3”)<o:p></o:p></p>
<p class="MsoNormal">Regenerate the RPM files using the “bpkg bindist –wipe-output –keep-output <project>” command.<br>
I expected this to result in the “Epoch:” line being added to the generated spec file, but no such luck.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also, can the “fedora-version” attribute in the package manifest file use the bpkg “version”?<br>
Since all I want to do is set the epoch of the RPM, is it possible to specify the “fedora-version” attribute in a DRY fashion so that it uses the bpkg “version” ?<br>
Something like: “fedora-version: 1:$version” or “fedora-version: 1:”<br>
<br>
Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">----<o:p></o:p></p>
<p class="MsoNormal">Paul Stath<o:p></o:p></p>
<p class="MsoNormal">Principal Systems Engineer<o:p></o:p></p>
<p class="MsoNormal">JMA Wireless<o:p></o:p></p>
<p class="MsoNormal">pstats@jmawireless.com<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>