summaryrefslogtreecommitdiffstats
path: root/rpm/generic/zfs.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/generic/zfs.spec.in')
-rw-r--r--rpm/generic/zfs.spec.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
index 0e7efbf3e..cd167202a 100644
--- a/rpm/generic/zfs.spec.in
+++ b/rpm/generic/zfs.spec.in
@@ -2,7 +2,7 @@
%global _libdir /%{_lib}
# Set the default udev directory based on distribution.
-%if 0%{!?_udevdir}
+%if %{undefined _udevdir}
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 || 0%{?centos} >= 7
%global _udevdir %{_prefix}/lib/udev
%else
@@ -11,16 +11,16 @@
%endif
# Set the default udevrule directory based on distribution.
-%if 0%{!?_udevruledir}
+%if %{undefined _udevruledir}
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 || 0%{?centos} >= 7
-%global _udevruledir %{_prefix}/lib/udevrule/rules.d
+%global _udevruledir %{_prefix}/lib/udev/rules.d
%else
-%global _udevruledir /lib/udevrule/rules.d
+%global _udevruledir /lib/udev/rules.d
%endif
%endif
# Set the default dracut directory based on distribution.
-%if 0%{!?_dracutdir}
+%if %{undefined _dracutdir}
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 || 0%{?centos} >= 7
%global _dracutdir %{_prefix}/lib/dracut
%else