commit lua-ldbus for openSUSE:Factory
Hello community, here is the log from the commit of package lua-ldbus for openSUSE:Factory checked in at 2018-11-01 14:43:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lua-ldbus (Old) and /work/SRC/openSUSE:Factory/.lua-ldbus.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "lua-ldbus" Thu Nov 1 14:43:22 2018 rev:3 rq:645807 version:0.0+git20161023.e277e22 Changes: -------- --- /work/SRC/openSUSE:Factory/lua-ldbus/lua-ldbus.changes 2017-10-31 15:44:01.633714884 +0100 +++ /work/SRC/openSUSE:Factory/.lua-ldbus.new/lua-ldbus.changes 2018-11-01 14:43:30.462882858 +0100 @@ -1,0 +2,5 @@ +Wed Oct 31 21:08:41 CET 2018 - mcepl@suse.com + +- Make package building even on SLE-12/Leap 42 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lua-ldbus.spec ++++++ --- /var/tmp/diff_new_pack.D16gVD/_old 2018-11-01 14:43:30.990882805 +0100 +++ /var/tmp/diff_new_pack.D16gVD/_new 2018-11-01 14:43:30.990882805 +0100 @@ -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 @@ 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 @@ %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
participants (1)
-
root