Red Hat RPM - specifying files that are dynamically generated at %pre time

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat RPM > January 2007 > specifying files that are dynamically generated at %pre time





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author specifying files that are dynamically generated at %pre time
Yakov

2006-12-27, 1:16 pm

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

2007-01-06, 7:59 pm

In linux.redhat.rpm Yakov <iler.ml@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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com