<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>I believe tb requires the spec file to be at some specific location in the tarball<br><br>Sent from my iPhone</div><div><br>On May 11, 2014, at 14:40, Nick Howitt <<a href="mailto:nick@howitts.co.uk">nick@howitts.co.uk</a>> wrote:<br><br></div><blockquote type="cite"><div>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
Any idea why I can't get it to compile with rpmbuild -tb but can
with -bb? I can compile other packages such as kmod driver packages
with -tb.<br>
<br>
Nick<br>
<br>
<div class="moz-cite-prefix">On 11/05/2014 19:18, Paul wrote:<br>
</div>
<blockquote cite="mid:4C33C882-B05B-451B-8075-A6CE31B9D3A7@nohats.ca" type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>We have been neglecting those because we have libreswan in
epel now. I'll bring them up to date later today<br>
<br>
Sent from my iPhone</div>
<div><br>
On May 11, 2014, at 12:18, Nick Howitt <<a moz-do-not-send="true" href="mailto:nick@howitts.co.uk">nick@howitts.co.uk</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<br>
<div class="moz-cite-prefix">On 11/05/2014 16:25, Paul Wouters
wrote:<br>
</div>
<blockquote cite="mid:alpine.LFD.2.10.1405111121590.31230@bofh.nohats.ca" type="cite"> <br>
On Sun, 11 May 2014, Ahmed Shabana wrote: <br>
<br>
<blockquote type="cite">I did what you suggest below and get
the below error , <br>
</blockquote>
<br>
You know we offer precompiled packages for RHEL6 at <br>
<a moz-do-not-send="true" href="http://download.libreswan.org">download.libreswan.org</a>
? <br>
</blockquote>
except you have not yet compiled the security release 3.8 <span class="moz-smiley-s2"><span> :-( <br>
<br>
<br>
</span></span><br>
<br>
I've compiled it myself but cannot do it with rpmbuild -tb as
it fails with a spec file issue:<br>
<blockquote><small><font face="Courier New">[build@server
SOURCES]$ rpmbuild -tb --target=x64_64 --clean --quiet
libreswan-3.8.tar.gz</font></small><br>
<small><font face="Courier New">Building target platforms:
x64_64</font></small><br>
<small><font face="Courier New">Building for target x64_64</font></small><br>
<small><font face="Courier New">error: line 291: second
%prep</font></small><br>
</blockquote>
<br>
but I can do it by extracting the rhel spec file and building
with:<br>
<blockquote><small><font face="Courier New">rpmbuild -bb
--target=x86_64 --clean --quiet
libreswan-3.8/packaging/rhel/6/libreswan.spec</font></small><br>
</blockquote>
This is on ClearOS, a rhel look alike and generally binary
compatible.<br>
<br>
Regards,<br>
<br>
Nick<br>
</div>
</blockquote>
</blockquote>
<br>
</div></blockquote></body></html>