Re: Create two different rpms in the same spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maybe I didn't explain my problem:

I'm writing a spec file that creates 2 packages. Both packages contain a file that has the same name and path:

/etc/init.d/my_file - for package #1
/etc/init.d/my_file - for package #2

During the %install phase, I need to put these 2 different files in the same location (/etc/init.d/), so when I copy the 2nd file, it overwrites the 1st file. What can I do to solve that?

Thanks,
Doron

Doron Shoham wrote:
> 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
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux