rpm: Use libtirpc-devel and /usr/lib on SUSE
SUSE Linux distributions require libtirpc-devel. The dracut and udev directories are /usr/lib/dracut and /usr/lib/udev. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Signed-off-by: Andreas Vögele <andreas@andreasvoegele.com> Closes #14467 Closes #14468
This commit is contained in:
parent
ac7648179c
commit
7883ea2234
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
# Set the default udev directory based on distribution.
|
# Set the default udev directory based on distribution.
|
||||||
%if %{undefined _udevdir}
|
%if %{undefined _udevdir}
|
||||||
%if 0%{?fedora}%{?rhel}%{?centos}%{?openEuler}
|
%if 0%{?rhel}%{?fedora}%{?centos}%{?suse_version}%{?openEuler}
|
||||||
%global _udevdir %{_prefix}/lib/udev
|
%global _udevdir %{_prefix}/lib/udev
|
||||||
%else
|
%else
|
||||||
%global _udevdir /lib/udev
|
%global _udevdir /lib/udev
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
# Set the default udevrule directory based on distribution.
|
# Set the default udevrule directory based on distribution.
|
||||||
%if %{undefined _udevruledir}
|
%if %{undefined _udevruledir}
|
||||||
%if 0%{?fedora}%{?rhel}%{?centos}%{?openEuler}
|
%if 0%{?rhel}%{?fedora}%{?centos}%{?suse_version}%{?openEuler}
|
||||||
%global _udevruledir %{_prefix}/lib/udev/rules.d
|
%global _udevruledir %{_prefix}/lib/udev/rules.d
|
||||||
%else
|
%else
|
||||||
%global _udevruledir /lib/udev/rules.d
|
%global _udevruledir /lib/udev/rules.d
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
# Set the default dracut directory based on distribution.
|
# Set the default dracut directory based on distribution.
|
||||||
%if %{undefined _dracutdir}
|
%if %{undefined _dracutdir}
|
||||||
%if 0%{?fedora}%{?rhel}%{?centos}%{?openEuler}
|
%if 0%{?rhel}%{?fedora}%{?centos}%{?suse_version}%{?openEuler}
|
||||||
%global _dracutdir %{_prefix}/lib/dracut
|
%global _dracutdir %{_prefix}/lib/dracut
|
||||||
%else
|
%else
|
||||||
%global _dracutdir %{_prefix}/share/dracut
|
%global _dracutdir %{_prefix}/share/dracut
|
||||||
|
@ -110,7 +110,7 @@ BuildRequires: libblkid-devel
|
||||||
BuildRequires: libudev-devel
|
BuildRequires: libudev-devel
|
||||||
BuildRequires: libattr-devel
|
BuildRequires: libattr-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
%if 0%{?fedora}%{?openEuler} || 0%{?rhel} >= 8 || 0%{?centos} >= 8
|
%if 0%{?fedora}%{?suse_version}%{?openEuler} || 0%{?rhel} >= 8 || 0%{?centos} >= 8
|
||||||
BuildRequires: libtirpc-devel
|
BuildRequires: libtirpc-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue