diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-10 13:23:19 -0800 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-10 13:23:19 -0800 |
| commit | e53765bdf642638205e8d8cc16fcc5a6049e89f2 (patch) | |
| tree | 67e6c8c4c598b5a4d4af69cdf45b952e804eca94 /python | |
| parent | f8eb38375435755d228e1004865ab7abda8439e2 (diff) | |
| download | specs-e53765bdf642638205e8d8cc16fcc5a6049e89f2.tar.gz specs-e53765bdf642638205e8d8cc16fcc5a6049e89f2.tar.xz specs-e53765bdf642638205e8d8cc16fcc5a6049e89f2.zip | |
+ mistune
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/python-mistune.spec | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/python/python-mistune.spec b/python/python-mistune.spec new file mode 100644 index 0000000..c5fa029 --- /dev/null +++ b/python/python-mistune.spec @@ -0,0 +1,61 @@ +%global srcname mistune + +Name: python-%{srcname} +Version: 2.0.0 +Release: %autorelease +Summary: A sane Markdown parser with useful plugins and renderers +License: BSD +URL: https://github.com/lepture/mistune +Source0: %{pypi_source %{srcname}} + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +# since upstream's pyproject.toml is too incomplete for auto BRs +BuildRequires: python3dist(pip) +BuildRequires: python3dist(wheel) +# Test dependencies: +BuildRequires: python3dist(pytest) + +%global _description %{expand: +A fast yet powerful Python Markdown parser with renderers and plugins.} + +%description %{_description} + + +%package -n python%{python3_pkgversion}-%{srcname} +Summary: %{summary} + +%description -n python%{python3_pkgversion}-%{srcname} %{_description} + + +%prep +%autosetup -p1 -n %{srcname}-%{version} + + +%generate_buildrequires +# project's pyproject.toml caused our script to choke +# %%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %%{srcname} + + +%check +%pytest + + +%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} +%license LICENSE +%doc README.rst + + +%changelog +%autochangelog |
