i am new to building RPM packages. i am tyring to package a set of binary files in a tar ball. i donot want to include the sources in the RPM. the tar ball includes some binaries and some scripts. two of the binaries in the tarball are named mb and mpe. for the start i am only trying to install these two
here is my spec
I think the problem is that i am unable to copy from the build directory to the buildoot directory in the install process
Name: npm
Version: 2.7.0.100
Release: 1%{?dist}
Summary: The "NPM-MPS System"
Group: Applications/Text
License: GPLv3+
Source0: npm_2.7.0-100.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires: gettext
#Requires:
#Requires(post):info
#Requires(preun):info
%description
this is only to test for mb and mpe
%prep
%setup -q -n npm_2.7.0-100
%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
#rm -rf $RPM_BUILD_ROOT
#mkdir $RPM_BUILD_ROOT/%{_bindir}/
#install -m 777 $RPM_BUILD_ROOT/%{_bindir}/%{name}/
cp -p %{_build_dir}/npm_2.7.0-100/bin/mb $RPM_BUILD_ROOT/%{_bindir}/%{name}/
#%post
#%preun
%clean
rm -rf $RPM_BUILD_ROOT
i know the problem is in the %install area in the cp or install section whichever is use . this is the error that rpmbuild gives me
1)if u use cp -p
mkdir -p /home/Talha/rpmbuild/BUILDROOT/npm-2.7.0.100-1.fc13.i386//usr/bin
+ cp -p '%{_build_dir}/npm_2.7.0-100/bin/mb' /home/Talha/rpmbuild/BUILDROOT/npm-2.7.0.100-1.fc13.i386//usr/bin/npm/
cp: cannot stat `%{_build_dir}/npm_2.7.0-100/bin/mb': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Bo2Qp5 (%install)
2)if i use install -m
+ mkdir -p /home/Talha/rpmbuild/BUILDROOT/npm-2.7.0.100-1.fc13.i386//usr/bin
+ install -m 777 -d /home/Talha/rpmbuild/BUILDROOT/npm-2.7.0.100-1.fc13.i386//usr/bin/npm/
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: npm-2.7.0.100-1.fc13.i686
error: File not found: /home/Talha/rpmbuild/BUILDROOT/npm-2.7.0.100-1.fc13.i386/usr/bin/mb
error: File not found: /home/Talha/rpmbuild/BUILDROOT/npm-2.7.0.100-1.fc13.i386/usr/bin/mpe
RPM build errors:
File not found: /home/Talha/rpmbuild/BUILDROOT/npm-2.7.0.100-1.fc13.i386/usr/bin/mb
File not found: /home/Talha/rpmbuild/BUILDROOT/npm-2.7.0.100-1.fc13.i386/usr/bin/mpe