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

Re: %config in a spec file



On Sat, 08 Jul 2006 17:48:13 +0100, Paul wrote:

> Hi,
> 
> While running rpmlint over anjuta-2.0.2-3, it has come back with
> 
> W: anjuta non-conffile-in-etc /etc/gconf/schemas/anjuta-valgrind.schemas
> 
> The spec file handles the schemas as per the instructions on the wiki
> and according to the rpmlint, I should mark the file as %config.
> Accordingly, in the spec, I have
> 
> files -f %{name}.lang
> %defattr(-,root,root)
> %config %{_sysconfdir}/gconf/schemas/%{name}-valgrind.schemas
> 
> However, rpmbuild fails with a file not found
> (/var/tmp/anjuta-2.0.2-3-root-build/etc/gconf/schemas/anjuta-valgrind.schemas)
> 
> I'm obviously doing something wrong, but I'm not sure what.

When you list the contents of your %{buildroot}, i.e.
/var/tmp/anjuta-2.0.2-3-root-build, what do you see?

If the file is really available, I'd like to see the unmodified .spec file. ;)

> Should the %
> config line be at the top with BR, R et al

No. It is a marker for the %files section.


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