Files listed twice question

Adrián Márques <[email protected]> Wed, 24 Sep 2008 15:28:08 -0300
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Hi there,

I'm an absolute newbie trying to package an application with RPM for the=20
first time and would like to mark some files as config files.
The top directory of this aplication has several files and directories,=20
only two of which hold config files. Thus, I'm doing something like this=20
in my spec file:

%files
/usr/local/myAppTopDir/
%config /usr/local/myAppTopDir/configDir1/*
%config /usr/local/myAppTopDir/configDir2/*

Obviously, this generates several 'file listed twice' warnings. However,=20
I queried the generated rpm and didn't find anything wrong with it. All=20
config files where included and correctly marked as config files.

So my questions are: can I safely ignore these warnings or listing files=20
twice like I have causes a problem I'm not seeing now? is there a better=20
way to do what I want?

I have been looking through the list archives so I know many of you=20
would advice me to explicitly list all files. I know this would take=20
care of this particular problem, but I don't want to do that unless I=20
really have to, since I find globbing significantly more practical in=20
this case.

I thank you already for taking the time to read this.

Regards.

Adri=E1n.