File lua51-stdlib.spec of Package lua51-stdlib

#
# spec file for package lua51-stdlib
#
# 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
# 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 mod_name std

Name:           lua51-stdlib
Version:        41.2.1
Release:        0
Summary:        General Lua libraries
License:        MIT
Group:          Development/Languages/Other
Url:            https://lua-stdlib.github.io/lua-stdlib
Source:         https://github.com/lua-stdlib/lua-stdlib/archive/release-v${version}.tar.gz#/lua51-stdlib-release-v%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  lua51-devel
Requires:       lua51
Provides:       lua-%{mod_name} = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
stdlib is a library of modules for common programming tasks, including list, table and functional operations, objects, pickling, pretty-printing and command-line option parsing.

%package doc
Summary:       General Lua libraries - documentation
Group:         Documentation/Other

%description doc
stdlib is a library of modules for common programming tasks, including list, table and functional operations, objects, pickling, pretty-printing and command-line option parsing.

%prep
%setup -qn lua-stdlib-release-v%{version}

%build
%configure
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 COPYING README NEWS
%{lua_noarchdir}/%{mod_name}.lua
%{lua_noarchdir}/%{mod_name}/

%files doc
/usr/share/doc/stdlib
/usr/share/doc/stdlib/*

%changelog

openSUSE Build Service is sponsored by