forked from pool/lua-penlight
osc copypac from project:devel:languages:lua package:len-penlight revision:1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-penlight?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
BIN
Penlight-1.6.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
Penlight-1.6.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
4
_multibuild
Normal file
4
_multibuild
Normal file
@@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua53</package>
|
||||
</multibuild>
|
4
lua-penlight.changes
Normal file
4
lua-penlight.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 30 23:12:04 CET 2018 - mcepl@suse.com
|
||||
|
||||
- Initial packaging
|
92
lua-penlight.spec
Normal file
92
lua-penlight.spec
Normal file
@@ -0,0 +1,92 @@
|
||||
#
|
||||
# spec file for package lua-penlight
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name Penlight
|
||||
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
||||
%define with_docs 1
|
||||
|
||||
Version: 1.6.0
|
||||
Release: 0
|
||||
Summary: Generally useful modules inspired by the Python standard libraries
|
||||
License: MIT
|
||||
Group: Development/Languages/Other
|
||||
URL: http://stevedonovan.github.com/Penlight
|
||||
Source: https://github.com/stevedonovan/%{mod_name}/archive/%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: %{flavor}-luafilesystem
|
||||
BuildRequires: %{flavor}-markdown
|
||||
BuildRequires: %{flavor}-ldoc
|
||||
Requires: %{flavor}
|
||||
BuildArch: noarch
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-%{mod_name}
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%description
|
||||
A set of pure Lua libraries focusing on input data handling (such as
|
||||
reading configuration files), functional programming (such as map,
|
||||
reduce, placeholder expressions,etc), and OS path management. Much of
|
||||
the functionality is inspired by the Python standard libraries.
|
||||
|
||||
%if 0%{?with_docs}
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
Documentation for the package %{name}
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{lua_noarchdir}
|
||||
cp -av lua/pl %{buildroot}%{lua_noarchdir}
|
||||
|
||||
# fix scripts
|
||||
chmod -x %{buildroot}%{lua_noarchdir}/pl/dir.lua
|
||||
|
||||
# build and install README etc.
|
||||
lua%{lua_version} %{lua_noarchdir}/markdown.lua *.md
|
||||
|
||||
|
||||
%check
|
||||
LUA_PATH="%{buildroot}%{lua_noarchdir}/?/init.lua;%{buildroot}%{lua_noarchdir}/?.lua;;" \
|
||||
lua run.lua tests
|
||||
|
||||
%files
|
||||
%license LICENSE.md
|
||||
%doc README.md *.html
|
||||
%{lua_noarchdir}/pl
|
||||
# Add bash/zsh-completion files
|
||||
# from completions/bash/penlight.bash penlight
|
||||
|
||||
%files doc
|
||||
%doc docs
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user