hi,
Camille Begnis wrote:
>
> geoffrey lee wrote:
> >
> > hi,
> >
> > Pixel wrote:
> > >
> > > Francis GALIEGUE <[EMAIL PROTECTED]> writes:
> > >
> > > > Pablo Saratxaga <[EMAIL PROTECTED]> writes:
> > > >
> > > > >
> > > > > I agree. a %files section automatically fileld is evil; it generates tons
> > > > > of error messages on rpm package updates (of the kind of
> > > > > "/usr/bin directory not empty"), which give a bad image of our work.
> > > > >
> > > > >
> > > >
> > > > The best is: first, no %files section - then, in a shell, cd $RPM_BUILD_ROOT
> > > > and find | less.
> > > > Do your %files section from there.
> > > >
> > > > Clean, never any pb.
> > >
> > > i don't agree never to use a file for %files. It's very helpfull when you split
> > > packages. If you don't use an automated file list, you will miss new files in
> > > newer version.
> >
> > i have to agree with pixel here. how about we add this to the generic
> > spec file, and then we comment the auto file generation out and add an
> > appropriate comment to describe how to use it?
>
> Do not forget that the generic spec file is intended for beginners. If
> we suggest them to use auto file generation, they'll use it all the
> time. When they become more experienced spec coders, they find soon or
> later a spec file coding this, and then they be experienced enough to
> use it without dangers.
>
> Camille.
well, i can see what you mean. i understand that there are dangers with
auto file generation... but still, auto file generation is an extremely
good and useful feature. that's why i suggested putting the code there,
commenting it out, and adding appropriate warning there. e.g. #PLEASE DO
NOT USE THE FOLLOWING CODE UNLESS YOU ABSOLUTELY KNOW WHAT YOU ARE
DOING!! ....something like that. i.e. we don't suggest that beginners
use it. the auot file feature is for lazy bones like me who want to use
auto file generation but do not want to write a spec file from scratch
... :-P
or you cn have two versions of generic spec. one with the autofile
generation, and one without, and tell first time users to download the
one without autofile generation..and download the one with auto file
generation if they know what they are doing..
--
#!/bin/sh
cat <<EOF
Regards,
snail talk (geoff), master linux system administrator ;-)
EOF