diff --git a/python-misaka.changes b/python-misaka.changes index 8f5daae..cc9a912 100644 --- a/python-misaka.changes +++ b/python-misaka.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 16 08:24:20 UTC 2020 - Tomáš Chvátal + +- Format with spec-cleaner +- Execute tests + ------------------------------------------------------------------- Wed Jan 9 15:59:27 UTC 2019 - Jordi Fita diff --git a/python-misaka.spec b/python-misaka.spec index 1efd9fd..f043a8b 100644 --- a/python-misaka.spec +++ b/python-misaka.spec @@ -1,70 +1,61 @@ # # 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}/* -%changelog \ No newline at end of file +%changelog