File perl-Inline-Lua.spec of Package perl-Inline-Lua

#
# spec file for package perl-Inline-Lua
#
# Copyright (c) 2020 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/
#


Name:           perl-Inline-Lua
Version:        0.17
Release:        0
%define cpan_name Inline-Lua
Summary:        Perl extension for embedding Lua scripts into Perl code
License:        Artistic-1.0 OR GPL-1.0-or-later
Group:          Development/Libraries/Perl
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/R/RH/RHOELZ/%{cpan_name}-%{version}.tar.gz
Patch0:         fix_Makefile_args.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  lua54-devel
BuildRequires:  perl-macros
BuildRequires:  perl(Inline)
BuildRequires:  perl(Test::Exception)
Requires:       perl(Inline)
Requires:       perl(Test::Exception)
%{perl_requires}

%description
Inline::Lua allows you to write functions in Lua. Those of you who are not
yet familiar with Lua should have a cursory glance at http://www.lua.org/
to get a taste of this language. In short:

Lua was designed to be embedded into other applications and not so much as
a language on its own. However, despite its small set of language features,
it is an extremely powerful and expressive language. Its strong areas are
an elegant and yet concise syntax, good overall performance and a beautiful
implementation of some concepts from the world of functional programming.

%prep
%setup -q -n %{cpan_name}-%{version}
%autopatch -p1

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" INC=-I/usr/include/lua5.4 LIBS=-llua5.4
make %{?_smp_mflags}

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README TODO
%license LICENSE

%changelog
openSUSE Build Service is sponsored by