SHA256
10
0
forked from pool/lua-lgi
Files
lua-lgi/lua-lgi.spec
Tomáš Chvátal 3fca04f6f3 - Switch to mutlibuild in order to compile all flavors as needed
- Update to version 0.9.1:
  * Marshal NULL strings as nil instead of empty strings.
    This allows use of e.g. DataInputStream:read_line() APIs.
  * Add support for arrays with lengths as struct fields.
  * Allow GLib.Variant construction for lightuserdata.
  * Fix gtop binding (certain structs could not be imported).
  * Adapt to new set of annotations in newer GLib.
  * Assorted Lua5.3 fixes, lgi is now fully Lua5.3 compatible.
  * Fix binding of Gdk.Rectangle from newer Gdk.

- Only depend on Lua(API) in Tumbleweed: openSUSE 13.2, Leap and
  SLE12 do not yet provide this symbol.

- Depend on Lua(API) = %{%lua_version}. Note: lua_version is only
  major.minor of lua (e.g 5.2, 5.3[...]). This is needed as the
  files are installed in /usr/share/lua/5.2 when built against
  lua 5.2.

- Update to 0.9.0:
  * Allow defining new properties on custom GObject subclasses
    implemented using lgi.
  * Improve compatibility with locales (turkish).
  * Fix GPtrArray handling.
  * Improve behavior when running in assorted multiple-embedded and
    concurrent scenarios.

- new upstream package; version 0.8.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lgi?expand=0&rev=12
2017-07-13 16:08:39 +00:00

80 lines
2.3 KiB
RPMSpec

#
# spec file for package lua-lgi
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Adam Mizerski <adam@mizerski.pl>
#
# 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 http://bugs.opensuse.org/
#
%define flavor @BUILD_FLAVOR@
%if "%flavor" == ""
ExclusiveArch: do_not_build
%endif
%define _name lgi
Name: %{flavor}-%{_name}
Version: 0.9.1
Release: 0
Summary: Lua bindings to GObject libraries
License: MIT
Group: System/Libraries
Url: https://github.com/pavouk/lgi
Source0: https://github.com/pavouk/%{_name}/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.gz
BuildRequires: pkg-config
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.8
BuildRequires: pkgconfig(libffi)
BuildRequires: %{flavor}-devel
Requires: %{flavor}
%description
Dynamic Lua binding to any library which is introspectable
using gobject-introspection. Allows using GObject-based libraries
directly from Lua.
%package doc
Summary: Lua bindings to GObject libraries - documentation and samples
Group: Development/Libraries/Other
%description doc
Dynamic Lua binding to any library which is introspectable
using gobject-introspection. Allows using GObject-based libraries
directly from Lua.
%prep
%setup -q -n %{_name}-%{version}
%build
make %{?_smp_mflags} \
LUA_CFLAGS=" -I%{lua_incdir}" \
COPTFLAGS="%{optflags}" \
%install
%make_install \
PREFIX=%{_prefix} \
LUA_LIBDIR=%{lua_archdir} \
LUA_SHAREDIR=%{lua_noarchdir}
%files
%defattr(-,root,root)
%doc LICENSE README.md
%{lua_archdir}/%{_name}/
%{lua_noarchdir}/%{_name}.lua
%{lua_noarchdir}/%{_name}/
%files doc
%defattr(-,root,root)
%doc docs samples tools
%changelog