forked from pool/python-misaka
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
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
|
||||
3
misaka-2.1.1.tar.gz
Normal file
3
misaka-2.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:62f35254550095d899fc2ab8b33e156fc5e674176f074959cbca43cf7912ecd7
|
||||
size 125187
|
||||
5
python-misaka.changes
Normal file
5
python-misaka.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 9 15:59:27 UTC 2019 - Jordi Fita <jfita@infoblitz.com>
|
||||
|
||||
- Version 2.1.1
|
||||
|
||||
70
python-misaka.spec
Normal file
70
python-misaka.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user