Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

specifying files that are dynamically generated at %pre time

2 views
Skip to first unread message

Yakov

unread,
Dec 27, 2006, 1:40:21 PM12/27/06
to
In .spec, how do I specify a filename that does not exist at the time
of installation, (it is created during %pre), but I want rpm to know
about this file. How do I tell rpm about such filenames ?
(They do not exist at the rpm build time but they exist after rpm is
installed. I want rpm to report them rpm -q -f, rpm -q -l, and by rpm
-q -p --list)

Thanks
Yakov

Michal Jaegermann

unread,
Dec 28, 2006, 12:43:46 PM12/28/06
to
In linux.redhat.rpm Yakov <ile...@gmail.com> wrote:
> In .spec, how do I specify a filename that does not exist at the time
> of installation, (it is created during %pre), but I want rpm to know
> about this file. How do I tell rpm about such filenames ?

Try to mark those as '%ghost'. Possibly you may need to "touch"
such files in the build process; or you may simply just "touch"
and you will overwrite them later in %pre and let 'rpm -V' to
complain when asked.

It is possible to find such markings in spec files from time time
(IIRC somewhere in xorg-x11* specs, for example, and for sure in specs
for lcms-1.15-1.2.2 from FC) but I have no idea if this is really
explicitely documented anywhere save rpmbuild sources.

Michal

0 new messages