forked from pool/lua-ldbus
- Lua 5.4 is now supported - src/message_iter: Bind dbus_mesage_iter_get_element_count() - Added support for DESTDIR - src/message_iter: Maintain reference to underlying DBusMessage Remove obsolete conditionals for openSUSE/Leap 42.3 Remove upstreamed patch: - lua54.patch Update to a version 0.0+git20250404.5cc933b: * src/message_iter: Maintain reference to underlying DBusMessage * Added support for DESTDIR * src/message_iter: Bind dbus_mesage_iter_get_element_count() * Lua 5.4 is now supported * Squashed 'vendor/compat-5.3/' changes from daebe77..e245d3a
59 lines
1.6 KiB
RPMSpec
59 lines
1.6 KiB
RPMSpec
#
|
|
# spec file for package lua-ldbus
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define flavor @BUILD_FLAVOR@
|
|
%define mod_name ldbus
|
|
Version: 0.0+git20250404.5cc933b
|
|
Release: 0
|
|
Summary: Lua bindings to dbus
|
|
License: MIT
|
|
Group: Development/Libraries/Other
|
|
URL: https://github.com/daurnimator/ldbus
|
|
Source: lua-ldbus-%{version}.tar.xz
|
|
BuildRequires: %{flavor}-devel
|
|
BuildRequires: lua-macros
|
|
Requires: %{flavor}
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
%lua_provides
|
|
%if "%{flavor}" == ""
|
|
Name: lua-%{mod_name}
|
|
ExclusiveArch: do_not_build
|
|
%else
|
|
Name: %{flavor}-%{mod_name}
|
|
%endif
|
|
|
|
%description
|
|
ldbus is a C binding to dbus for Lua.
|
|
|
|
%prep
|
|
%autosetup -n lua-ldbus-%{version} -p1
|
|
|
|
%build
|
|
cd src
|
|
make %{?_make_output_sync} %{?_smp_mflags} LUA_PKGNAME="lua" LUA_LIBDIR="%{lua_archdir}"
|
|
|
|
%install
|
|
cd src
|
|
%make_install LUA_LIBDIR='%{lua_archdir}'
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{lua_archdir}/ldbus.so
|
|
|
|
%changelog
|