Description of problem:
When using a filename list for %files in a SPEC file, backslash escaping is not applied. The documentation in "/usr/share/doc/rpm-4.8.1/spec" gives the following example to generate a file list, inserting escapes for special characters:
This does not work. The correct approach for a file list seems to be to just quote all filenames. I did not check the behavior of filenames listed directly in the %files section. It is probably best just to update the documentation.
Version-Release number of selected component (if applicable):
4.8.1
Description of problem: doc/rpm- 4.8.1/spec" gives the following example to generate a file list, inserting escapes for special characters:
When using a filename list for %files in a SPEC file, backslash escaping is not applied. The documentation in "/usr/share/
\verbatim DIR/filelist. rpm -,root, root)' >> $RPM_BUILD_ DIR/filelist. rpm ROOT/%{ _prefix} -type f -print | \ BUILD_ROOT! !" | perl -pe 's/([?| *.\'"]) /\\$1/g' \ DIR/filelist. rpm
rm -f $RPM_BUILD_
echo '%defattr(
find $RPM_BUILD_
sed "s!$RPM_
>> $RPM_BUILD_
%files -f filelist.rpm
\endverbatim
This does not work. The correct approach for a file list seems to be to just quote all filenames. I did not check the behavior of filenames listed directly in the %files section. It is probably best just to update the documentation.
Version-Release number of selected component (if applicable):
4.8.1