[Mageia-dev] Spaces in doc filenames

Pascal Terjan pterjan at gmail.com
Tue Dec 25 18:29:55 CET 2012


It seems that with new rpm %doc with spaces in filenames can no longer
be protected with \

For example:

%doc Please\ read\ me.txt Comfortaa\ FONTLOG.txt OFL\ -\ Font\ License.txt

Before:

+ cp -pr 'Please read me.txt' 'Comfortaa FONTLOG.txt' 'OFL - Font
License.txt' /home/pterjan/co/cauldron/aajohan-comfortaa-fonts/BUILDROOT/aajohan-comfortaa-fonts-1.004-1.mga3.x86_64/usr/share/doc/aajohan-comfortaa-fonts

After:

+ cp -pr 'Please
/home/pterjan/rpmbuild/BUILDROOT/aajohan-comfortaa-fonts-1.004-1.mga3.x86_64/usr/share/doc/aajohan-comfortaa-fonts'
cp: missing destination file operand after 'Please
/home/pterjan/rpmbuild/BUILDROOT/aajohan-comfortaa-fonts-1.004-1.mga3.x86_64/usr/share/doc/aajohan-comfortaa-fonts'
Try 'cp --help' for more information.

Using %doc "Please read me.txt" "Comfortaa FONTLOG.txt" "OFL - Font
License.txt" was not enough

+ cp -pr Please read me.txt
/home/pterjan/co/cauldron/aajohan-comfortaa-fonts/BUILDROOT/aajohan-comfortaa-fonts-1.004-1.mga3.x86_64/usr/share/doc/aajohan-comfortaa-fonts
cp: cannot stat 'Please': No such file or directory
cp: cannot stat 'read': No such file or directory
cp: cannot stat 'me.txt': No such file or directory

This worked:

%doc "Please\ read\ me.txt" "Comfortaa\ FONTLOG.txt" "OFL\ -\ Font\ License.txt"

+ /usr/bin/mkdir -p
/home/pterjan/co/cauldron/aajohan-comfortaa-fonts/BUILDROOT/aajohan-comfortaa-fonts-1.004-1.mga3.x86_64/usr/share/doc/aajohan-comfortaa-fonts
+ cp -pr 'Please read me.txt'
/home/pterjan/co/cauldron/aajohan-comfortaa-fonts/BUILDROOT/aajohan-comfortaa-fonts-1.004-1.mga3.x86_64/usr/share/doc/aajohan-comfortaa-fonts
+ cp -pr 'Comfortaa FONTLOG.txt'
/home/pterjan/co/cauldron/aajohan-comfortaa-fonts/BUILDROOT/aajohan-comfortaa-fonts-1.004-1.mga3.x86_64/usr/share/doc/aajohan-comfortaa-fonts
+ cp -pr 'OFL - Font License.txt'
/home/pterjan/co/cauldron/aajohan-comfortaa-fonts/BUILDROOT/aajohan-comfortaa-fonts-1.004-1.mga3.x86_64/usr/share/doc/aajohan-comfortaa-fonts


More information about the Mageia-dev mailing list