SHA256
10
0
forked from pool/lua-lgi

osc copypac from project:devel:languages:lua package:lgi revision:4

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lgi?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal
2017-07-13 16:05:03 +00:00
committed by Git OBS Bridge
parent 46866d7eda
commit 5cf169007a
3 changed files with 20 additions and 12 deletions

5
_multibuild Normal file
View File

@@ -0,0 +1,5 @@
<multibuild>
<package>lua51</package>
<package>lua52</package>
<package>lua53</package>
</multibuild>

View File

@@ -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

View File

@@ -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