<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span></span></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Thursday, 3 April 2014 12:21 PM, Amish Mishra <amish1989mishra@yahoo.in> wrote:<br> </font> </div> <div class="y_msg_container"><div id="yiv1358115866"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div id="yiv1358115866"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div
id="yiv1358115866yui_3_13_0_1_1396505678030_4140">Dear friends,</div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140"> i have completed all steps but when run the command got the error </div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140"><br id="yiv1358115866yui_3_13_0_6_1396505678030_19"></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">some steps </div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">1-install rpm-build rpmdevtools</div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="color:rgb(0, 0, 0);font-size:16px;font-family:'times
new roman', 'new york', times, serif;background-color:transparent;font-style:normal;"> 2- and create <span style="color: rgb(85, 85, 85); font-family: 'Roboto Slab', arial, sans-serif; font-size: 15px; line-height: 24px;" id="yiv1358115866yui_3_13_0_6_1396505678030_30">directory structure with {BUILD,RPMS,SOURCES,SPECS,SRPMS}</span></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="color: rgb(85, 85, 85); font-size: 15px; font-family: 'Roboto Slab', arial, sans-serif; background-color: transparent; font-style: normal;"><span style="color: rgb(85, 85, 85); font-family: 'Roboto Slab', arial, sans-serif; font-size: 15px; line-height: 24px;" id="yiv1358115866yui_3_13_0_6_1396505678030_35">3-after this create .rpmmacros file using(echo %_topdir /home/ami/rpmbuild > .rpmmacros)</span></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="color: rgb(85, 85, 85); font-size: 15px; font-family: 'Roboto Slab', arial,
sans-serif; background-color: transparent; font-style: normal;"><span style="color: rgb(85, 85, 85); font-family: 'Roboto Slab', arial, sans-serif; font-size: 15px; line-height: 24px;" id="yiv1358115866yui_3_13_0_6_1396505678030_39">4- and create SPEC file as api.spec</span></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="color: rgb(85, 85, 85); font-size: 15px; font-family: 'Roboto Slab', arial, sans-serif; background-color: transparent; font-style: normal;"><span style="color: rgb(85, 85, 85); font-family: 'Roboto Slab', arial, sans-serif; font-size: 15px; line-height: 24px;" id="yiv1358115866yui_3_13_0_6_1396505678030_64"><br id="yiv1358115866yui_3_13_0_6_1396505678030_70"></span></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="color: rgb(85, 85, 85); font-size: 15px; font-family: 'Roboto Slab', arial, sans-serif; background-color: transparent; font-style: normal;"><span style="color: rgb(85, 85, 85);
font-family: 'Roboto Slab', arial, sans-serif; font-size: 15px; line-height: 24px;" id="yiv1358115866yui_3_13_0_6_1396505678030_67"><br></span></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_8212"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8211">Name: apIP-Sec</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_9324"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_9323">Version: 1</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140"
style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_8776"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8775">Release: 1%{?dist}</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_8774"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8773">Summary: simple IP-Sec rpm package</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div
id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_8772"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8771">Group:
Development</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_8770"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8769">License: GPL+</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_8759"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8758">URL: http://download.strongswan.org/</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"
id="yiv1358115866yui_3_13_0_1_1396505678030_7186"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_7185">Source0: http://download.strongswan.org/strongswan-5.1.2.tar.gz</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_7190"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_7189">BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font
color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;">%description</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_8779"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_6_1396505678030_80">simple ip-sec Packaged </span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div
id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;">%prep</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;">%setup -q</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140"
style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span id="yiv1358115866yui_3_13_0_6_1396505678030_42" style="font-size:15px;line-height:24px;"></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_6_1396505678030_55"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_6_1396505678030_48">%build</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;">%configure</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"
id="yiv1358115866yui_3_13_0_1_1396505678030_8210"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8209">make %{?_smp_mflags}</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;">%install</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font
color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_7651"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_7650">rm -rf $RPM_BUILD_ROOT</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_7649"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_7648">mkdir -p %{RPM_BUILD_ROOT}</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial,
sans-serif"><span style="font-size:15px;line-height:24px;"># in builddir</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_8208"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8207">rm -rf %{RPM_BUILD_ROOT}</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial,
sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;">%clean</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_7646"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_8206">rm -rf $RPM_BUILD_ROOT</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140"
style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial,
sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;"><br></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;">%files</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_7645"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_7644">%defattr(-,root,root,-)</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140"
style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif" id="yiv1358115866yui_3_13_0_1_1396505678030_7653"><span style="font-size:15px;line-height:24px;" id="yiv1358115866yui_3_13_0_1_1396505678030_7652">%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf</span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font id="yiv1358115866yui_3_13_0_6_1396505678030_54" color="#555555" face="Roboto Slab, arial, sans-serif"><span id="yiv1358115866yui_3_13_0_6_1396505678030_51" style="font-size:15px;line-height:24px;"></span></font></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_4140" style="background-color:transparent;"><font color="#555555" face="Roboto Slab, arial, sans-serif"><span style="font-size:15px;line-height:24px;">%{_bindir}/*</span></font></div><div id="yiv1358115866yui_3_13_0_6_1396505678030_57"><div
id="yiv1358115866yui_3_13_0_6_1396505678030_57"><div id="yiv1358115866yui_3_13_0_6_1396505678030_57"><br></div></div></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638">%changelog</div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638">* Thu Apr 1 2014</div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638">- First Build</div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638">after all we run command </div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638">rpmbuild -ba api.spec</div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div
id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638">when we run this command then i have got error </div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638">error: failed to stat /home/ami/rpmbuild/api.spec: No such file or directory</div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"><br></div><div id="yiv1358115866yui_3_13_0_1_1396505678030_7638"> Please help how we make successful rpm build </div><div id="yiv1358115866yui_3_13_0_6_1396505678030_96"><br></div></div></div></div></div></div></div></div></div><br><br></div> </div> </div> </div> </div></body></html>