From bca48ba5e0c69e53a96cb730565e1c10965c8e405bd39a19b34b42f5aac85d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 16 Jan 2020 08:22:33 +0000 Subject: [PATCH] osc copypac from project:home:jfita:sr.ht package:python-misaka revision:7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-misaka?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + misaka-2.1.1.tar.gz | 3 ++ python-misaka.changes | 5 ++++ python-misaka.spec | 70 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 misaka-2.1.1.tar.gz create mode 100644 python-misaka.changes create mode 100644 python-misaka.spec 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/misaka-2.1.1.tar.gz b/misaka-2.1.1.tar.gz new file mode 100644 index 0000000..9025e3a --- /dev/null +++ b/misaka-2.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62f35254550095d899fc2ab8b33e156fc5e674176f074959cbca43cf7912ecd7 +size 125187 diff --git a/python-misaka.changes b/python-misaka.changes new file mode 100644 index 0000000..8f5daae --- /dev/null +++ b/python-misaka.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Jan 9 15:59:27 UTC 2019 - Jordi Fita + +- Version 2.1.1 + diff --git a/python-misaka.spec b/python-misaka.spec new file mode 100644 index 0000000..1efd9fd --- /dev/null +++ b/python-misaka.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-misaka +# + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-misaka +Version: 2.1.1 +Release: 0 +License: MIT +Summary: A CFFI binding for Hoedown, a markdown parsing library +Url: https://github.com/FSX/misaka +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/m/misaka/misaka-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module cffi >= 1.0.0} +BuildRequires: fdupes +Requires: python-cffi >= 1.0.0 + +%python_subpackages + +%description +Misaka +====== + +A CFFI binding for Hoedown_ (version 3), a markdown parsing library. + +Documentation can be found at: http://misaka.61924.nl/ + + +Example +------- + +Very simple example: + +.. code:: python + + import misaka as m + print m.html('some other text') + +Or: + +.. code:: python + + from misaka import Markdown, HtmlRenderer + + rndr = HtmlRenderer() + md = Markdown(rndr) + + print(md('some text')) + +%prep +%setup -q -n misaka-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + + +%files %{python_files} +%doc LICENSE.txt README.rst +%python3_only %{_bindir}/misaka +%{python_sitearch}/* + +%changelog \ No newline at end of file