[strongSwan] Question about RPM build

Amish Mishra amish1989mishra at yahoo.in
Thu Apr 3 08:51:34 CEST 2014


Dear friends,
   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

%description
simple ip-sec Packaged 

%prep
%setup -q


%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{RPM_BUILD_ROOT}

# in builddir
rm -rf %{RPM_BUILD_ROOT}


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_bindir}/*

%changelog
* 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/20140403/0399499e/attachment.html>


More information about the Users mailing list