[strongSwan] about RPM build

Amish Mishra amish1989mishra at yahoo.in
Tue Apr 8 08:32:59 CEST 2014

Dear @All,
   i have completed all steps but when run the command got the error 

some steps 
1-install rpm-build rpmdevtools
 2- and create directory structure with {BUILD,RPMS,SOURCES,SPECS,SRPMS}
3-after this create .rpmmacros file using(echo %_topdir /home/ami/rpmbuild > .rpmmacros)
4- and create SPEC file as api.spec

Name:           apIP-Sec
Version:        1
Release:        1%{?dist}
Summary:        simple IP-Sec rpm package

Group:          Development
License:        GPL+
URL:             http://download.strongswan.org/
Source0:         http://download.strongswan.org/strongswan-5.1.2.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

simple ip-sec Packaged 

%setup -q

make %{?_smp_mflags}

mkdir -p %{RPM_BUILD_ROOT}

# in builddir
rm -rf %{RPM_BUILD_ROOT}


%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf

* Thu Apr 1 2014
- First Build

after all we run command 
rpmbuild -ba api.spec

when we run this command then i have got error 

error: failed to stat /home/ami/rpmbuild/api.spec: No such file or directory

         Please help how we make successful rpm build  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20140408/d63193ed/attachment-0001.html>

More information about the Users mailing list