The line install -D name dir/newname in a spec file is executed as install -D name dir/name That is, name is copied to dir as name and not as newname. BTW, rpm -tb foo-1.0.tar.gz should first look for foo.spec or foo-1.0.spec and not take the first spec file it finds.
I do not understand what you are describing. Can you reply to this message with your specfile? Thanks. ------- Email Received From Gerald Teschl <gerald.ac.at> 06/08/99 15:31 -------
There are two problems here. The 1st problem is that install -D SOURCE /A/B/C/DEST should create /A/B/C/DEST but it actually creates /A/B/C/SOURCE. This is a bug in fileutils (I'll change the component). If you *really* want to include *.spec in a tarball and build by doing "rpm -tb foo.tar.gz" then call the main spec file Specfile. rpm looks for that file before it tries to untar (possibly multiple) *.spec files. The problem there, of course, is the name space collision that can occur if you have more than one package with a main spec file called Specfile. Off to fileutils ------- Email Received From Gerald Teschl <gerald.ac.at> 06/09/99 03:33 -------
If you think the command is working on the command line, try cd /tmp touch SOURCE install -D SOURCE /var/tmp/A/B/DEST ls -al /var/tmp/A/B/DEST where I get ls: /var/tmp/A/B/DEST: No such file or directory The man page for install sez' -D create all leading components of DEST except the last, then copy SOURCE to DEST; useful in the 1st format which AFAICT means that DEST (not SOURCE!) should be the name of the created file. ------- Email Received From Gerald Teschl <gerald.ac.at> 06/09/99 08:49 -------
Fixed in fileutils-4.0-4.