how to use Source1 to add an additional file

Laurent Rineau laurent.rineau__fedora at normalesup.org
Wed Dec 12 01:32:03 UTC 2007


On Tuesday 11 December 2007 19:39:26 Qianqian Fang wrote:
> File Not found: ..../wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf
> Installed (but unpackaged) file(s) found
> /etc/fonts/conf.d/61-wqy-bitmapsong.conf

I tried to compile your package, and I got the following error:
RPM build errors:
    File not 
found: /var/tmp/wqy-bitmap-fonts-0.9.9-2.fc9-root-lrineau/etc/fonts/conf.d/home/lrineau/Fedora/wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf


Its your %files section that is incorrect!

Change this:
  %config(noreplace) %{fontconfdir}/%{SOURCE1}
to that:
  %config(noreplace) %{fontconfdir}/61-wqy-bitmapsong.conf
or even:
  %config(noreplace) %{fontconfdir}/*.conf

The explanation of the error is that ${SOURCE1} is expanded to a full path, 
and not just a file name. That is why the error log shows a very long path.

-- 
Laurent Rineau
http://fedoraproject.org/wiki/LaurentRineau




More information about the fedora-devel-list mailing list