14
0
forked from pool/python-misaka
Files
python-misaka/python-misaka.spec

70 lines
1.4 KiB
RPMSpec

#
# 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