]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm/luarocks: simplify conditional and support Leap 15.3 42561/head
authorNathan Cutler <ncutler@suse.com>
Mon, 1 Mar 2021 17:35:11 +0000 (18:35 +0100)
committerNathan Cutler <ncutler@suse.com>
Fri, 30 Jul 2021 10:50:57 +0000 (12:50 +0200)
The luarocks conditional had gotten hard to read, and the openSUSE Leap 15.3
build needs lua53 as well.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit f27484e84ca251be7e91bc026a35b650318fd82a)

Conflicts:
ceph.spec.in
- in current master, the conditional being replaced had gotten more complicated
  than it was back when pacific was split off from master

ceph.spec.in

index abac1ec19d99f5104f6bb0ceeb7055f179af13cf..2bac4044c575edc0a4d98e0fec09b511f952e2ef 100644 (file)
@@ -49,6 +49,8 @@
 %bcond_without lttng
 %bcond_without libradosstriper
 %bcond_without ocf
+%global luarocks_package_name luarocks
+%bcond_without lua_packages
 %global _remote_tarball_prefix https://download.ceph.com/tarballs/
 %endif
 %if 0%{?suse_version}
 %if ! %{defined _fillupdir}
 %global _fillupdir /var/adm/fillup-templates
 %endif
+#luarocks
+%if 0%{?is_opensuse}
+# openSUSE
+%bcond_without lua_packages
+%if 0%{?sle_version}
+# openSUSE Leap
+%global luarocks_package_name lua53-luarocks
+%else
+# openSUSE Tumbleweed
+%global luarocks_package_name lua54-luarocks
+%endif
+%else
+# SLE
+%bcond_with lua_packages
+%endif
 %endif
 %bcond_with seastar
 %bcond_with jaeger
 %endif
 %endif
 
-%if 0%{?suse_version}
-%if !0%{?is_opensuse}
-# SLE does not support luarocks
-%bcond_with lua_packages
-%else
-%global luarocks_package_name lua53-luarocks
-%bcond_without lua_packages
-%endif
-%else
-%global luarocks_package_name luarocks
-%bcond_without lua_packages
-%endif
-
 %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
 %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
 %{!?python3_pkgversion: %global python3_pkgversion 3}