forked from pool/python-mistletoe
- Switch to Github for sources as they include all tests
- Run dos2unix for E: wrong-script-end-of-line-encoding OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistletoe?expand=0&rev=4
This commit is contained in:
@@ -23,17 +23,18 @@ Release: 0
|
||||
Summary: A Markdown parser in pure Python
|
||||
License: MIT
|
||||
URL: https://github.com/miyuchina/mistletoe
|
||||
Source: https://files.pythonhosted.org/packages/source/m/mistletoe/mistletoe-%{version}.tar.gz
|
||||
Source: https://github.com/miyuchina/mistletoe/archive/refs/tags/v%{version}.tar.gz#/mistletoe-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Pygments}
|
||||
BuildRequires: %{python_module parameterized}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Recommends: python-Pygments
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -44,6 +45,7 @@ spec-compliant and fully customizable.
|
||||
%prep
|
||||
%autosetup -p1 -n mistletoe-%{version}
|
||||
sed -i 's,/usr/bin/env python,,' mistletoe/contrib/md2jira.py
|
||||
find . -type f -print0 | xargs -0 dos2unix --
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
Reference in New Issue
Block a user