2013-11-07 15:32:53 +00:00
|
|
|
#
|
|
|
|
# spec file for package lua-lgi
|
|
|
|
#
|
|
|
|
# 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 _lua lua
|
|
|
|
%define _name lgi
|
|
|
|
|
|
|
|
Name: %{_lua}-%{_name}
|
2014-08-16 05:35:37 +00:00
|
|
|
Version: 0.8.0
|
2013-11-07 15:32:53 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Lua bindings to GObject libraries
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
License: MIT
|
|
|
|
Url: https://github.com/pavouk/lgi
|
|
|
|
Source0: %{_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: %{_lua}-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.8
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
|
|
|
BuildRequires: pkgconfig(libffi)
|
|
|
|
Requires: %{_lua}
|
|
|
|
|
|
|
|
%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
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%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 \
|
|
|
|
COPTFLAGS="%{optflags}" \
|
|
|
|
%{?_smp_mflags}
|
|
|
|
|
|
|
|
%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
|