2020-04-15 14:44:04 +00:00
|
|
|
Name: python-mistune
|
|
|
|
Version: 0.8.3
|
|
|
|
Release: 11%{?dist}
|
|
|
|
Summary: Markdown parser for Python
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/lepture/mistune
|
|
|
|
Source0: %{url}/archive/v%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
2023-06-01 07:26:42 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
2020-04-15 14:44:04 +00:00
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
|
|
|
# optional dependency, listed explicitly to have the extension module:
|
2023-06-01 07:26:42 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-Cython
|
2020-04-15 14:44:04 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains an extension module. Does not contain pyproject.toml.
|
|
|
|
Has a script (.py) and extension (.so) with identical name.
|
|
|
|
Building this tests:
|
|
|
|
- installing both a script and an extension with the same name
|
|
|
|
- default build backend without pyproject.toml
|
2021-10-27 09:28:45 +00:00
|
|
|
Check %%pyproject_check_import basic functionality.
|
2020-04-15 14:44:04 +00:00
|
|
|
|
2023-06-01 07:26:42 +00:00
|
|
|
This package also uses %%{python3_pkgversion} in name and has a very limited
|
|
|
|
set of dependencies -- allows to set a different value for it in the CI.
|
2020-04-15 14:44:04 +00:00
|
|
|
|
2023-06-01 07:26:42 +00:00
|
|
|
%package -n python%{python3_pkgversion}-mistune
|
2020-04-15 14:44:04 +00:00
|
|
|
Summary: %summary
|
|
|
|
|
2023-06-01 07:26:42 +00:00
|
|
|
%description -n python%{python3_pkgversion}-mistune
|
2020-04-15 14:44:04 +00:00
|
|
|
%{summary}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n mistune-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
2023-09-27 12:37:15 +00:00
|
|
|
%pyproject_save_files -l mistune
|
2020-04-15 14:44:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2021-10-27 09:28:45 +00:00
|
|
|
%pyproject_check_import
|
|
|
|
|
2020-04-15 14:44:04 +00:00
|
|
|
# Internal check for our macros
|
|
|
|
# making sure that pyproject_install outputs these files so that we can test behaviour of %%pyproject_save_files
|
|
|
|
# when a package has multiple files with the same name (here script and extension)
|
|
|
|
test -f %{buildroot}%{python3_sitearch}/mistune.py
|
|
|
|
test -f %{buildroot}%{python3_sitearch}/mistune.cpython-*.so
|
|
|
|
|
|
|
|
|
2023-06-01 07:26:42 +00:00
|
|
|
%files -n python%{python3_pkgversion}-mistune -f %{pyproject_files}
|
2020-04-15 14:44:04 +00:00
|
|
|
%doc README.rst
|