I have a spec file to build an rpm package, in my %install section I have this:
%install
install -m 700 foo/bar/filesToCopy/. $RPM_BUILD_ROOT/
The filesToCopy folder is a tree exactly how the package file tree should look like. It has all the sub directories a package has such as etc/..., /usr/bin, /usr/share ..., and subsquent files in those.
When building it gives me
install: omitting directory 'foo/bar/filesToCopy/'
error: Bad exit status from /var/tmp/rpm-tmp.sea6XO (%install)
Is there a way I dont have to copy each file individuallly like this:
install -m 700 foo/bar/filesToCopy/usr/bin/file1.ex $RPM_BUILD_ROOT/usr/bin/
...
As everything in filesToCopy/ is the structure as in $RPM_BUILD_ROOT/
UPDATE
I found a solution, I changed the "install -m 700" to a "cp -a"
make
andmake install
using the RPM macros (e.g.%make_install
), and they handle this all for you. Is your "source" a pre-compiled tarball or something? – Perinephriumgradle
, but this might help. – Perinephrium