blob: c5fa029f6cc2b98829c94b2d8191b9bb97928dc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
|