Re: how to use Source1 to add an additional file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Qianqian Fang wrote, at 12/12/2007 03:39 AM +9:00:
hi

I want to add a separate configuration file (61-wqy-bitmapsong.conf)
to package wqy-bitmap-fonts, after reading some examples, I used
the following syntax to make this change

....
Source0: http://url of the upstream package
Source1: 61-wqy-bitmapsong.conf  # the additional file
....

%setup -q -n %{wqyroot}
...
%install
...
install -p -m644 %{SOURCE1} %{buildroot}%{fontconfigdir}/
...

then I copied 61-wqy-bitmapsong.conf  to "devel" directory,
and "cvs add 61-wqy-bitmapsong.conf". However, it failed when
I test the build with "make i386", the error message is

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


did I miss anything? where should I put the 61-wqy-bitmapsong.conf
when commit to cvs?

Well, the problem is not there. Actually the build log says
/etc/fonts/conf.d/61-wqy-bitmapsong.conf is found but your spec
file reads:

----------------------------------------------
%files
....................
%config(noreplace) %{fontconfdir}/%{SOURCE1}
----------------------------------------------
Here SOURCE1 is expanded to %_sourcedir/`basename %SOURCE1`.
As the result %{fontconfdir}/%{SOURCE1} is not found but
/etc/fonts/conf.d/61-wqy-bitmapsong.conf is left installed
but not registered.

Regards,
Mamoru Tasaka <mtasaka@xxxxxxxxxxxxxxxxxxx>

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux