]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: Replace %usrmerged macro with regular version check 49831/head
authorTim Serong <tserong@suse.com>
Thu, 19 Jan 2023 07:26:52 +0000 (18:26 +1100)
committerTim Serong <tserong@suse.com>
Mon, 23 Jan 2023 03:46:44 +0000 (14:46 +1100)
%usrmerged is deprecated in favour of %if 0%{?suse_version} < 1550
(see https://en.opensuse.org/openSUSE:Usr_merge for details)

Fixes: https://tracker.ceph.com/issues/58501
Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 1f92b0314b9ccb44d1aee3f87126b3c8e3ed5b29)

ceph.spec.in

index 0a0f4ca1198bccb5ba6eb672fa619c6b0f647df2..24f2a793f51568eb7999b72d610ccaaa01d98868 100644 (file)
@@ -1468,7 +1468,7 @@ touch %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
 chmod 0600 %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
 
 # firewall templates and /sbin/mount.ceph symlink
-%if 0%{?suse_version} && !0%{?usrmerged}
+%if 0%{?suse_version} && 0%{?suse_version} < 1550
 mkdir -p %{buildroot}/sbin
 ln -sf %{_sbindir}/mount.ceph %{buildroot}/sbin/mount.ceph
 %endif
@@ -1644,7 +1644,7 @@ exit 0
 %{_bindir}/rbd-replay-many
 %{_bindir}/rbdmap
 %{_sbindir}/mount.ceph
-%if 0%{?suse_version} && !0%{?usrmerged}
+%if 0%{?suse_version} && 0%{?suse_version} < 1550
 /sbin/mount.ceph
 %endif
 %if %{with lttng}