<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] rpm build fails</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>You must run the scripts in order...<BR>
<BR>
Quick and dirty script to do everything<BR>
<BR>
#!/bin/bash<BR>
cd /usr/src<BR>
git clone git://git.freeswitch.org/freeswitch.git<BR>
cd freeswitch<BR>
git checkout v1.2.13<BR>
./scripts/ci/src_tarball.sh 1.2.13<BR>
./scripts/ci/get_extra_sources.sh<BR>
./scripts/ci/rpmbuilder.sh 1.2.13 1<BR>
<BR>
##END OF SCRIPT<BR>
<BR>
You’ll notice the version number on the src tarball and the rpm builder scripts... These are required... You’ll also notice the “1” arg in the example, this is the rpm roll number... So this would output PACKAGE-1.2.13-1.rpm type output... <BR>
<BR>
Run them in order on a system that has all the dev deps already installed and you are good togo... I highly suggest doing this on a box (virtual) that you only use for building the RPMs<BR>
<BR>
<BR>
<BR>
<BR>
On 9/19/13 12:32 AM, "Babak Yakhchali" <<a href="babak.freeswitch@gmail.com">babak.freeswitch@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>I tried to use scripts/ci/rpmbuilder.sh but it failed with these mssags:<BR>
<BR>
[babak@localhost freeswitch-stable]$ ./scripts/ci/rpmbuilder.sh stable<BR>
cp: cannot stat `src_dist/*': No such file or directory<BR>
error: Macro %BUILD_NUMBER has empty body<BR>
error: Macro %BUILD_NUMBER has empty body<BR>
error: File /home/babak/src/freeswitch-stable/rpmbuild/SOURCES/freeswitch-stable.0.0.tar.bz2: No such file or directory<BR>
mkdir: cannot create directory `/home/babak/src/freeswitch-stable/RPMS': File exists<BR>
mv: cannot stat `/home/babak/src/freeswitch-stable/rpmbuild/*/*.rpm': No such file or directory<BR>
----------------------------------------------------------------------<BR>
The vstable.0.0- RPMs have been rolled, now we<BR>
just need to push them to the YUM Repo<BR>
----------------------------------------------------------------------<BR>
<BR>
<BR>
<BR>
On Wed, Sep 18, 2013 at 11:29 PM, Babak Yakhchali <<a href="babak.freeswitch@gmail.com">babak.freeswitch@gmail.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Hi<BR>
I was trying to create freeswitch rpm from stable git branch but I get this error in the last line:<BR>
<BR>
Processing files: freeswitch-devel-stable-1.el6.x86_64<BR>
error: File not found by glob: /home/babak/rpmbuild/BUILDROOT/freeswitch-stable-1.el6.x86_64/usr/lib64/freeswitch/mod/*.a<BR>
RPM build errors:<BR>
File not found by glob: /home/babak/rpmbuild/BUILDROOT/freeswitch-stable-1.el6.x86_64/usr/lib64/freeswitch/mod/*.a<BR>
<BR>
I attached the full log to this email.<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
</SPAN></FONT>
</BODY>
</HTML>