forked from pool/python-misaka
- Format with spec-cleaner
- Execute tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-misaka?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
bca48ba5e0
commit
5aee76ee8f
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 16 08:24:20 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Format with spec-cleaner
|
||||
- Execute tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 9 15:59:27 UTC 2019 - Jordi Fita <jfita@infoblitz.com>
|
||||
|
||||
|
||||
@@ -1,69 +1,60 @@
|
||||
#
|
||||
# spec file for package python-misaka
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!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
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/FSX/misaka
|
||||
Source: https://files.pythonhosted.org/packages/source/m/misaka/misaka-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module cffi >= 1.12.0}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module cffi >= 1.0.0}
|
||||
BuildRequires: fdupes
|
||||
Requires: python-cffi >= 1.0.0
|
||||
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: tidy
|
||||
Requires: python-cffi >= 1.12.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}
|
||||
|
||||
%check
|
||||
%{python_expand $python setup.py build_ext --inplace
|
||||
$python tests/run_tests.py
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%doc LICENSE.txt README.rst
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%python3_only %{_bindir}/misaka
|
||||
%{python_sitearch}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user