<div>Actually,what I want to ask is how to build from SCM? the commend or the configs.</div>
<div>I searched SCM on the internet , but no answer.</div>
<div>Any help?</div>
<div>thanks!!!<br><br></div>
<div class="gmail_quote">2010/11/19 <span dir="ltr">&lt;<a href="mailto:buildsys-request@lists.fedoraproject.org">buildsys-request@lists.fedoraproject.org</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Send buildsys mailing list submissions to<br>       <a href="mailto:buildsys@lists.fedoraproject.org">buildsys@lists.fedoraproject.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br>       <a href="https://admin.fedoraproject.org/mailman/listinfo/buildsys" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/buildsys</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>       <a href="mailto:buildsys-request@lists.fedoraproject.org">buildsys-request@lists.fedoraproject.org</a><br><br>You can reach the person managing the list at<br>
       <a href="mailto:buildsys-owner@lists.fedoraproject.org">buildsys-owner@lists.fedoraproject.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than &quot;Re: Contents of buildsys digest...&quot;<br>
<br><br>Today&#39;s Topics:<br><br>  1. koji (Jinze Xue)<br>  2. Re: koji (Alan Franzoni)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 18 Nov 2010 20:55:42 +0800<br>
From: Jinze Xue &lt;<a href="mailto:xuejinze@gmail.com">xuejinze@gmail.com</a>&gt;<br>Subject: koji<br>To: <a href="mailto:buildsys@lists.fedoraproject.org">buildsys@lists.fedoraproject.org</a><br>Message-ID:<br>       &lt;AANLkTi=nsebhqDTsiXmOVDCKXt5nLEU=<a href="mailto:d-JQsUisG9BV@mail.gmail.com">d-JQsUisG9BV@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br><br>A question ,<br> How to build from SCM?<br>thanks!<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.fedoraproject.org/pipermail/buildsys/attachments/20101118/9b392b48/attachment-0001.html" target="_blank">http://lists.fedoraproject.org/pipermail/buildsys/attachments/20101118/9b392b48/attachment-0001.html</a><br>
<br>------------------------------<br><br>Message: 2<br>Date: Fri, 19 Nov 2010 11:09:15 +0100<br>From: Alan Franzoni &lt;<a href="mailto:mailing@franzoni.eu">mailing@franzoni.eu</a>&gt;<br>Subject: Re: koji<br>To: Discussion of Fedora build system<br>
       &lt;<a href="mailto:buildsys@lists.fedoraproject.org">buildsys@lists.fedoraproject.org</a>&gt;<br>Message-ID:<br>       &lt;<a href="mailto:AANLkTikFPQnTnHcBYz_rGndBDj1cAbSfo60mskth1P8q@mail.gmail.com">AANLkTikFPQnTnHcBYz_rGndBDj1cAbSfo60mskth1P8q@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br><br>On Thu, Nov 18, 2010 at 1:55 PM, Jinze Xue &lt;<a href="mailto:xuejinze@gmail.com">xuejinze@gmail.com</a>&gt; wrote:<br>&gt; A question ,<br>&gt; ?How to build from SCM?<br><br>
I think there&#39;s no single answer to this question. I&#39;ll give you some<br>hints on what we do where I work.<br><br>Currently the RPM system is designed to build from a source rpm,<br>period. Hence, you need to build a source RPM and feed it into mock or<br>
koji.<br><br>We&#39;ve usually got a .spectemplate file on our SCM. This file contains<br>some tags, for example you can have something like ${SVN_REV} which is<br>then inserted in the .spectemplate as this:<br><br>Release: svn${SVN_REV}<br>
<br><br>Once the CI system has tested an SCM revision and it&#39;s good, it packs<br>the contents of such revision, takes the spectemplate, substitues<br>variable and creates a .spec file, which is then feeded to mock/koji<br>
for srpm building. That .src.rpm then gets built again by mock/koji.<br><br>What&#39;s strange is that we actually need two build phases; the first is<br>done by the CI server, then there&#39;s a rebuild by mock or koji. It may<br>
not be the fastest way to do it but it currently works.<br><br><br>--<br>Alan Franzoni<br>--<br>contact me at public@[mysurname].eu<br><br><br>------------------------------<br><font color="#888888"><br>--<br>buildsys mailing list<br>
<a href="mailto:buildsys@lists.fedoraproject.org">buildsys@lists.fedoraproject.org</a><br><a href="https://admin.fedoraproject.org/mailman/listinfo/buildsys" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/buildsys</a><br>
<br>End of buildsys Digest, Vol 69, Issue 14<br>****************************************<br></font></blockquote></div><br>