![](https://seccdn.libravatar.org/avatar/e9a5886faaeb0d92b6c4aa2683be8216.jpg?s=120&d=mm&r=g)
Hello, how do I force a specific Lua version as build requirement independently of the used openSUSE version? In Tumbleweed, 13.2, etc. the Lua package contains version 5.2. In Factory the Lua package provides version 5.3. However, the programm I want to package needs version 5.2. Using ------ BuildRequires: lua BuildRequires: lua-devel ------ works for Tumbleweed, 13.2, etc. but not for Factory. In contrast ------ BuildRequires: lua52 BuildRequires: lua52-devel ------ works only with Factory because these package are not available in the other openSUSE versions. I first tried to distinguish between Factory and Tumbleweed but that seems to be impossible. Is that correct? I also tried to query the Lua version but since subshell expansions don't work in OBS for BuildRequires (see https://en.opensuse.org/openSUSE:Specfile_guidelines#OBS_Caveat) I was not successful. My solution is now to use lua52 and lua52-devel as build requirements and to include the repository devel:languages:lua to Tumbleweed, 13.2, etc. to have packages with that name. This seems to work (see https://build.opensuse.org/package/show/home:greenbasilisk:branches:graphics...) but I don't know if that is an appropriate solution. Heinz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org