diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..b9bdec1 --- /dev/null +++ b/_multibuild @@ -0,0 +1,5 @@ + +lua51 +lua52 +lua53 + diff --git a/lua-lgi.changes b/lgi.changes similarity index 91% rename from lua-lgi.changes rename to lgi.changes index cae5230..9fc60f2 100644 --- a/lua-lgi.changes +++ b/lgi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 13 15:18:14 UTC 2017 - tchvatal@suse.com + +- Switch to mutlibuild in order to compile all flavors as needed + ------------------------------------------------------------------- Sat May 28 15:43:12 UTC 2016 - sor.alexei@meowr.ru diff --git a/lua-lgi.spec b/lgi.spec similarity index 81% rename from lua-lgi.spec rename to lgi.spec index edbf188..36d1778 100644 --- a/lua-lgi.spec +++ b/lgi.spec @@ -17,8 +17,12 @@ # +%define flavor @BUILD_FLAVOR@ +%if "%flavor" == "" +ExclusiveArch: do_not_build +%endif %define _name lgi -Name: lua-lgi +Name: %{flavor}-%{_name} Version: 0.9.1 Release: 0 Summary: Lua bindings to GObject libraries @@ -30,14 +34,8 @@ BuildRequires: pkg-config BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.8 BuildRequires: pkgconfig(libffi) -BuildRequires: pkgconfig(lua) -%if 0%{?suse_version} > 1320 -# Lua in openSUSE 13.2, Leap 42.x and SLE 12 does not yet provide -# Lua(API), and as such we can only depend on it in Tumbleweed, -# we need the 'branch' of lua this package was built against -# (lua_version nicely provides this info). -Requires: Lua(API) = %{lua_version} -%endif +BuildRequires: %{flavor}-devel +Requires: %{flavor} %description Dynamic Lua binding to any library which is introspectable @@ -47,7 +45,6 @@ directly from Lua. %package doc Summary: Lua bindings to GObject libraries - documentation and samples Group: Development/Libraries/Other -Requires: %{name} = %{version} %description doc Dynamic Lua binding to any library which is introspectable @@ -59,12 +56,13 @@ directly from Lua. %build make %{?_smp_mflags} \ + LUA_CFLAGS=" -I%{lua_incdir}" \ COPTFLAGS="%{optflags}" \ %install %make_install \ - PREFIX=%{_prefix} \ - LUA_LIBDIR=%{lua_archdir} \ + PREFIX=%{_prefix} \ + LUA_LIBDIR=%{lua_archdir} \ LUA_SHAREDIR=%{lua_noarchdir} %files