Re: single RPM for all distros?

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

 



if find-requires provides the correct libs, you might use 'Autoreq: yes' and it would work.
See http://www.rpm.org/max-rpm-snapshot/s1-rpm-depend-auto-depend.html

On rhel, find-requires path is at
/usr/lib/rpm/find-requires


Otherwise, you can write conditional anything, e.g.,

%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
%ifarch %{arm}
Requires: glibc >= 2.16
%endif
%endif



On 04/29/2016 05:00 PM, Heyman, Jerrold wrote:

I’m pretty sure I know the answer, but is there a way to have a single product RPM that can be installed on multiple distros?

Specifically, I need to ‘Require’ the libraries for FUSE, but on RHEL the name is ‘fuse-libs’, on SuSE the name is libfuse, on Mageia it is lib64fuse.

Is there a way to write conditional ‘Requires’??

 

Jerry Heyman                           |

Principal Software Engineer            |    Software is the difference

EMC Data Domain                        |    between hardware and reality

Jerrold.Heyman@xxxxxxx / 919.597.7812  |

 



_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/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