[packages/python-mistune/DEVEL-2] - prepared 2.0.2 for possible future use, but incompatible with existing m2r and docwriter packages
qboosh
qboosh at pld-linux.org
Wed Apr 27 18:31:27 CEST 2022
commit 8f33b6a49e3a5ff983a5d259c83e66a3b32d9b29
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Apr 27 18:28:39 2022 +0200
- prepared 2.0.2 for possible future use, but incompatible with existing m2r and docwriter packages
python-mistune.spec | 46 ++++++++++++++++++++++++++++++++++------------
1 file changed, 34 insertions(+), 12 deletions(-)
---
diff --git a/python-mistune.spec b/python-mistune.spec
index 8e2a733..e46c2ca 100644
--- a/python-mistune.spec
+++ b/python-mistune.spec
@@ -7,27 +7,30 @@
Summary: Fast markdown parser in pure Python
Summary(pl.UTF-8): Szybki parser markdown napisany w czystym Pythonie
Name: python-mistune
-Version: 0.8.4
-Release: 7
+Version: 2.0.2
+Release: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/mistune/
Source0: https://files.pythonhosted.org/packages/source/m/mistune/mistune-%{version}.tar.gz
-# Source0-md5: fb6ab174ece938dea09f8b2adad771e4
+# Source0-md5: cde384cabc49477549ef78f946670e7d
URL: https://github.com/lepture/mistune
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
-%{?with_tests:BuildRequires: python-nose}
+%{?with_tests:BuildRequires: python-pytest}
%endif
%if %{with python3}
BuildRequires: python3-modules >= 1:3.5
BuildRequires: python3-setuptools
-%{?with_tests:BuildRequires: python3-nose}
+%{?with_tests:BuildRequires: python3-pytest}
%endif
Requires: python-modules >= 1:2.7
+# no compatible versions so far
+Conflicts: python-docwriter
+Conflicts: python-m2r
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -44,6 +47,9 @@ Summary: Fast markdown parser in pure Python
Summary(pl.UTF-8): Szybki parser markdown napisany w czystym Pythonie
Group: Libraries/Python
Requires: python3-modules >= 1:3.5
+# no compatible versions so far
+Conflicts: python3-docwriter
+Conflicts: python3-m2r
%description -n python3-mistune
The fastest markdown parser in pure Python with renderer features,
@@ -56,13 +62,30 @@ zainspirowany modułem marked.
%prep
%setup -q -n mistune-%{version}
+# stub for setuptools
+cat >setup.py <<EOF
+from setuptools import setup
+
+setup()
+EOF
+
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest tests
+%endif
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
%endif
%install
@@ -84,16 +107,15 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE README.rst
-%{py_sitescriptdir}/mistune.py[co]
+%doc LICENSE README.rst
+%{py_sitescriptdir}/mistune
%{py_sitescriptdir}/mistune-%{version}-py*.egg-info
%endif
%if %{with python3}
%files -n python3-mistune
%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE README.rst
-%{py3_sitescriptdir}/mistune.py
-%{py3_sitescriptdir}/__pycache__/mistune.cpython-*.py[co]
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/mistune
%{py3_sitescriptdir}/mistune-%{version}-py*.egg-info
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-mistune.git/commitdiff/8f33b6a49e3a5ff983a5d259c83e66a3b32d9b29
More information about the pld-cvs-commit
mailing list