2016-10-30 06:53:59 +00:00
|
|
|
#
|
2017-07-15 07:33:44 +00:00
|
|
|
# spec file for package lua-luaposix
|
2016-10-30 06:53:59 +00:00
|
|
|
#
|
2017-07-13 17:38:46 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-10-30 06:53:59 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2017-07-13 17:38:46 +00:00
|
|
|
|
|
|
|
%define flavor @BUILD_FLAVOR@
|
|
|
|
%define mod_name luaposix
|
2017-07-13 18:36:11 +00:00
|
|
|
Version: 33.3.1
|
2016-10-30 06:53:59 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: POSIX library for Lua
|
|
|
|
License: MIT
|
2017-07-13 17:38:46 +00:00
|
|
|
Group: Development/Libraries/Other
|
2016-10-30 06:53:59 +00:00
|
|
|
Url: https://github.com/luaposix/luaposix
|
2017-07-13 17:38:46 +00:00
|
|
|
Source0: https://github.com/luaposix/luaposix/archive/release-v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: %{flavor}-devel
|
2017-07-13 18:36:11 +00:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: perl
|
2017-07-13 17:38:46 +00:00
|
|
|
Requires: %{flavor}
|
|
|
|
%if "%{flavor}" == "lua53"
|
|
|
|
Provides: lua-%{_name} = %{version}
|
|
|
|
Obsoletes: lua-%{_name} < %{version}
|
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == ""
|
2017-07-15 07:33:44 +00:00
|
|
|
Name: lua-%{mod_name}
|
2017-07-13 17:38:46 +00:00
|
|
|
ExclusiveArch: do_not_build
|
2017-07-15 07:33:44 +00:00
|
|
|
%else
|
|
|
|
Name: %{flavor}-%{mod_name}
|
2017-07-13 17:38:46 +00:00
|
|
|
%endif
|
2016-10-30 06:53:59 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a POSIX library for Lua which provides access to many POSIX features
|
|
|
|
to Lua programs.
|
|
|
|
|
2017-07-13 18:53:31 +00:00
|
|
|
%package -n %{mod_name}-doc
|
2017-07-13 17:38:46 +00:00
|
|
|
Summary: Documentation on luaposix
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
2016-10-30 06:53:59 +00:00
|
|
|
|
2017-07-13 18:53:31 +00:00
|
|
|
%description -n %{mod_name}-doc
|
2017-07-13 17:49:46 +00:00
|
|
|
This package contains the documentation for %{_flavor}-luaposix.
|
2016-10-30 06:53:59 +00:00
|
|
|
|
|
|
|
%prep
|
2017-07-13 17:38:46 +00:00
|
|
|
%setup -q -n luaposix-release-v%{version}
|
2016-10-30 06:53:59 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-13 17:57:01 +00:00
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--libexecdir=%{lua_archdir} \
|
|
|
|
--libdir=%{lua_archdir} \
|
|
|
|
--datadir=%{lua_noarchdir} \
|
2017-07-13 18:53:31 +00:00
|
|
|
--docdir=%{_docdir}/%{mod_name}
|
2016-10-30 06:53:59 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2017-01-04 18:52:43 +00:00
|
|
|
%make_install
|
2016-10-30 06:53:59 +00:00
|
|
|
rm -f %{buildroot}%{lua_archdir}/*.la
|
|
|
|
|
|
|
|
%check
|
2017-07-13 17:38:46 +00:00
|
|
|
make %{?_smp_mflags} check
|
2016-10-30 06:53:59 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README ChangeLog NEWS
|
|
|
|
%dir %{lua_noarchdir}/posix
|
|
|
|
%{lua_archdir}/*.so
|
|
|
|
%{lua_noarchdir}/*.lua
|
|
|
|
%{lua_noarchdir}/posix/*.lua
|
|
|
|
|
2017-07-13 18:53:31 +00:00
|
|
|
%files -n %{mod_name}-doc
|
2017-07-13 18:56:38 +00:00
|
|
|
%dir %{_docdir}/%{mod_name}
|
2017-07-13 18:53:31 +00:00
|
|
|
%dir %{_docdir}/%{mod_name}/examples
|
|
|
|
%dir %{_docdir}/%{mod_name}/modules
|
|
|
|
%dir %{_docdir}/%{mod_name}/classes
|
|
|
|
%doc %{_docdir}/%{mod_name}/classes/posix.curses.*.html
|
|
|
|
%doc %{_docdir}/%{mod_name}/examples/*.lua.html
|
|
|
|
%doc %{_docdir}/%{mod_name}/modules/posix.*.html
|
|
|
|
%doc %{_docdir}/%{mod_name}/modules/posix.html
|
|
|
|
%doc %{_docdir}/%{mod_name}/index.html
|
|
|
|
%doc %{_docdir}/%{mod_name}/ldoc.css
|
2016-10-30 06:53:59 +00:00
|
|
|
|
|
|
|
%changelog
|