Create two different rpms in the same spec file

Doron Shoham <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Hi,

I want to create two different rpms (one for redhat and the other for suse) in the same spec file.
I have a file that is needed be in the same path (/etc/init) for both distros,
The file's name is the same but its content is not the same for the two distros.
How can I do it?
Can %install can get "-n" as a parameter?

Thanks,
Doron Shoham
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.