forked from pool/lua-ldbus
Accepting request 645807 from devel:languages:lua
- Make package building even on SLE-12/Leap 42 OBS-URL: https://build.opensuse.org/request/show/645807 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-ldbus?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 31 21:08:41 CET 2018 - mcepl@suse.com
|
||||
|
||||
- Make package building even on SLE-12/Leap 42
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 30 14:45:32 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package lua-ldbus
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -23,11 +23,15 @@ Release: 0
|
||||
Summary: Lua bindings to dbus
|
||||
License: MIT
|
||||
Group: Development/Libraries/Other
|
||||
Url: https://github.com/daurnimator/ldbus/
|
||||
URL: https://github.com/daurnimator/ldbus/
|
||||
Source: lua-ldbus-%{version}.tar.xz
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: pkgconfig(dbus-1)
|
||||
Requires: %{flavor}
|
||||
%if 0%{?suse_version} < 1330
|
||||
BuildRequires: dbus-1-devel
|
||||
%else
|
||||
BuildRequires: pkgconfig(dbus-1)
|
||||
%endif
|
||||
%if "%{flavor}" == "lua53"
|
||||
Provides: lua-%{mod_name} = %{version}
|
||||
Obsoletes: lua-%{mod_name} < %{version}
|
||||
@@ -44,23 +48,26 @@ ldbus is a C binding to dbus for Lua.
|
||||
|
||||
%prep
|
||||
%setup -q -n lua-ldbus-%{version}
|
||||
%if "%{flavor}" == "lua52"
|
||||
sed -i -e "s/lua5.3/lua5.2/" src/Makefile
|
||||
%endif
|
||||
%if "%{flavor}" == "lua51"
|
||||
sed -i -e "s/lua5.3/lua5.1/" src/Makefile
|
||||
%if "%{flavor}" != "lua53"
|
||||
sed -i -e "s/lua5.3/lua%{lua_version}/" src/Makefile
|
||||
%endif
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} < 1330
|
||||
export CFLAGS="-I/usr/include/lua%{lua_version} -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include"
|
||||
%if "%{flavor}" != "lua53"
|
||||
export CFLAGS="$CFLAGS -Ivendor/compat-5.3"
|
||||
%endif
|
||||
%endif
|
||||
cd src
|
||||
make
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
cd src
|
||||
%make_install LUA_LIBDIR='$(DESTDIR)%{lua_archdir}'
|
||||
|
||||
%files
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%{lua_archdir}/ldbus.so
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user