summaryrefslogtreecommitdiffstats
path: root/python/python-mistune.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python/python-mistune.spec')
-rw-r--r--python/python-mistune.spec61
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