commit 13c84597c72fd6e4684097acb71da7e2351a83692bbda45bf1b1e9af0e6d6b88 Author: Matej Cepl Date: Mon Oct 28 13:06:09 2019 +0000 Accepting request 743493 from home:mcepl:branches:devel:languages:lua Markdown text-to-html markup system OBS-URL: https://build.opensuse.org/request/show/743493 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-markdown?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..a01285a --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + +lua51 +lua53 + diff --git a/lua_markdown.changes b/lua_markdown.changes new file mode 100644 index 0000000..8e9743e --- /dev/null +++ b/lua_markdown.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Oct 28 13:40:09 CET 2019 - Matej Cepl + +- Initial import of lua rock Markdown version 0.33 diff --git a/lua_markdown.spec b/lua_markdown.spec new file mode 100644 index 0000000..c460b9c --- /dev/null +++ b/lua_markdown.spec @@ -0,0 +1,63 @@ +# +# spec file for package lua_markdown +# +# Copyright (c) 2019 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 https://bugs.opensuse.org/ +# + + +%define flavor @BUILD_FLAVOR@ +%define mod_name markdown +%define upversion 0.33 +Version: 0.331 +Release: 0 +Summary: Markdown text-to-html markup system +License: MIT +URL: https://github.com/mpeterv/markdown +Source: https://github.com/mpeterv/markdown/archive/%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz +BuildRequires: %{flavor}-devel +Requires: %{flavor} +BuildArch: noarch +%if "%{flavor}" == "lua53" +Provides: lua-markdown = %{version} +Obsoletes: lua-markdown < %{version} +%endif +%if "%{flavor}" == "" +Name: lua-markdown +ExclusiveArch: do_not_build +%else +Name: %{flavor}-markdown +%endif + +%description +A pure-lua implementation of the Markdown text-to-html markup system. + +%prep +%setup -q -n %{mod_name}-%{upversion} +sed -i '\|%{_bindir}/env |d' markdown.lua + +%build +/bin/true + +%install +install -v -D -m 0644 -p -t %{buildroot}%{lua_noarchdir} markdown.lua + +%check +lua%{lua_version} markdown-tests.lua + +%files +%license LICENSE +%doc README.md +%{lua_noarchdir}/markdown* + +%changelog diff --git a/markdown-0.33.tar.gz b/markdown-0.33.tar.gz new file mode 100644 index 0000000..5e9f97b --- /dev/null +++ b/markdown-0.33.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c94fa6669f3b00a1047c50de4ee26e422a3bacb15ca4ed576b2f4d67d16f1f09 +size 35028