|
rdobuilder |
889cc0 |
%global upname mistune
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%bcond_with doc
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%global srcname mistune
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%global common_description %{expand:
|
|
rdobuilder |
889cc0 |
The fastest markdown parser in pure Python, inspired by marked.}
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
Name: python-mistune
|
|
rdobuilder |
889cc0 |
Version: 3.0.2
|
|
rdobuilder |
889cc0 |
Release: 2%{?dist}
|
|
rdobuilder |
889cc0 |
Summary: Markdown parser for Python
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
License: BSD-3-Clause
|
|
rdobuilder |
889cc0 |
URL: https://github.com/lepture/mistune
|
|
rdobuilder |
889cc0 |
Source0: %url/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
BuildArch: noarch
|
|
rdobuilder |
889cc0 |
BuildRequires: python3-devel
|
|
rdobuilder |
889cc0 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
889cc0 |
# Upstream uses tox to call nose. Instead, we'll just call pytest directly.
|
|
rdobuilder |
889cc0 |
BuildRequires: python3dist(pytest)
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%description %{common_description}
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%package -n python3-%{srcname}
|
|
rdobuilder |
889cc0 |
Summary: %{summary}
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
# Allow upgrades from Fedora 37 with python3-mistune08 to Fedora 38 with python3-mistune
|
|
rdobuilder |
889cc0 |
# as python3-nbconvert requires mistune 2 on Fedora 38+.
|
|
rdobuilder |
889cc0 |
# See https://bugzilla.redhat.com/2177923
|
|
rdobuilder |
889cc0 |
# If the Fedora 37 python3-mistune08 package is ever bumped, this needs to be bumped as well!
|
|
rdobuilder |
889cc0 |
Obsoletes: python3-mistune08 < 0.8.4-8
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%description -n python3-%{srcname} %{common_description}
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%if %{with doc}
|
|
rdobuilder |
889cc0 |
%package doc
|
|
rdobuilder |
889cc0 |
Summary: Documentation for %{name}
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%description doc
|
|
rdobuilder |
889cc0 |
%{common_description}
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
This is the documentation package for %{name}.
|
|
rdobuilder |
889cc0 |
%endif
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%prep
|
|
rdobuilder |
889cc0 |
%autosetup -p1 -n %{srcname}-%{version}
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
# replace shibuya theme which is not available in Fedora with sphinx read the docs theme
|
|
rdobuilder |
889cc0 |
sed -i "s/html_theme = 'shibuya'/html_theme = 'sphinx_rtd_theme'/" docs/conf.py
|
|
rdobuilder |
889cc0 |
sed -i "s/shibuya/sphinx-rtd-theme/" docs/requirements.txt
|
|
rdobuilder |
889cc0 |
# unpin versions to allow newer versions available in Fedora
|
|
rdobuilder |
889cc0 |
sed -i "s/sphinx==6.2.1/sphinx>=6.2.1/" docs/requirements.txt
|
|
rdobuilder |
889cc0 |
sed -i "s/sphinx-design==0.4.1/sphinx-design<0.7.0/" docs/requirements.txt
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%generate_buildrequires
|
|
rdobuilder |
889cc0 |
%if %{with doc}
|
|
rdobuilder |
889cc0 |
%pyproject_buildrequires docs/requirements.txt
|
|
rdobuilder |
889cc0 |
%else
|
|
rdobuilder |
889cc0 |
%pyproject_buildrequires
|
|
rdobuilder |
889cc0 |
%endif
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%build
|
|
rdobuilder |
889cc0 |
%pyproject_wheel
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%if %{with doc}
|
|
rdobuilder |
889cc0 |
# generate html docs
|
|
rdobuilder |
889cc0 |
PYTHONPATH=$PWD/build/lib sphinx-build docs html
|
|
rdobuilder |
889cc0 |
# remove the sphinx-build leftovers
|
|
rdobuilder |
889cc0 |
rm -rf html/.{doctrees,buildinfo}
|
|
rdobuilder |
889cc0 |
%endif
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%install
|
|
rdobuilder |
889cc0 |
%pyproject_install
|
|
rdobuilder |
889cc0 |
%pyproject_save_files %{srcname}
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%{_fixperms} %{buildroot}/*
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%check
|
|
rdobuilder |
889cc0 |
%pytest
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
rdobuilder |
889cc0 |
%doc README.rst
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%if %{with doc}
|
|
rdobuilder |
889cc0 |
%files doc
|
|
rdobuilder |
889cc0 |
%doc html
|
|
rdobuilder |
889cc0 |
%license LICENSE
|
|
rdobuilder |
889cc0 |
%endif
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
%changelog
|
|
rdobuilder |
889cc0 |
* Mon Jan 13 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.0.2-2
|
|
rdobuilder |
889cc0 |
- Adjust sed to allow newer versions of sphinx
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Tue Aug 27 2024 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.0.2-1
|
|
rdobuilder |
889cc0 |
- Update to 3.0.2
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-10
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.0.4-9
|
|
rdobuilder |
889cc0 |
- Rebuilt for Python 3.13
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-8
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-7
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Oct 25 2023 Michel Lind <salimma@fedoraproject.org> - 2.0.4-6
|
|
rdobuilder |
889cc0 |
- Disable doc building on EL9
|
|
rdobuilder |
889cc0 |
- Don't use deprecated %%%%pyproject_build_lib
|
|
rdobuilder |
889cc0 |
- Use SPDX license identifier
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-5
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.0.4-4
|
|
rdobuilder |
889cc0 |
- Rebuilt for Python 3.12
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Apr 05 2023 Miro Hrončok <miro@hroncok.cz> - 2.0.4-3
|
|
rdobuilder |
889cc0 |
- Allow upgrades from Fedora 37 with python3-mistune08 to Fedora 38 with
|
|
rdobuilder |
889cc0 |
python3-mistune
|
|
rdobuilder |
889cc0 |
- Fixes: rhbz#2177923
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Oct 12 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.0.4-1
|
|
rdobuilder |
889cc0 |
- Update to 2.0.4
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Oct 12 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.4-7
|
|
rdobuilder |
889cc0 |
- Convert to new Python guidelines
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-5
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.8.4-4
|
|
rdobuilder |
889cc0 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-3
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-2
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jul 09 2021 Tomas Hrnciar <thrnciar@redhat.com> - 0.8.4-1
|
|
rdobuilder |
889cc0 |
- Update to 0.8.4
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.3-16
|
|
rdobuilder |
889cc0 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Mon Feb 08 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.8.3-15
|
|
rdobuilder |
889cc0 |
- Run the tests with pytest instead of nose
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-14
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-13
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-12
|
|
rdobuilder |
889cc0 |
- Rebuilt for Python 3.9
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-11
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Nov 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-10
|
|
rdobuilder |
889cc0 |
- Subpackage python2-mistune has been removed
|
|
rdobuilder |
889cc0 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Sep 12 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-9
|
|
rdobuilder |
889cc0 |
- Modernize packaging, drop build dependency on python2-Cython
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-8
|
|
rdobuilder |
889cc0 |
- Rebuilt for Python 3.8
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-7
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-6
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-4
|
|
rdobuilder |
889cc0 |
- Rebuilt for Python 3.7
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-3
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.3-2
|
|
rdobuilder |
889cc0 |
- Update Python 2 dependency declarations to new packaging standards
|
|
rdobuilder |
889cc0 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Tue Dec 19 2017 Christian Dersch <lupinix@fedoraproject.org> - 0.8.3-1
|
|
rdobuilder |
889cc0 |
- new version (0.8.3)
|
|
rdobuilder |
889cc0 |
- fixes CVE-2017-15612 and CVE-2017-16876
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.3-7
|
|
rdobuilder |
889cc0 |
- Python 2 binary package renamed to python2-mistune
|
|
rdobuilder |
889cc0 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-6
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-5
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-4
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.3-3
|
|
rdobuilder |
889cc0 |
- Rebuild for Python 3.6
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-2
|
|
rdobuilder |
889cc0 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Mon Jul 04 2016 Christian Dersch <lupinix@mailbox.org> - 0.7.3-1
|
|
rdobuilder |
889cc0 |
- new version
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Sat Feb 27 2016 Christian Dersch <lupinix@mailbox.org> - 0.7.2-1
|
|
rdobuilder |
889cc0 |
- new version
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-3
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-2
|
|
rdobuilder |
889cc0 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Sep 23 2015 Christian Dersch <lupinix@fedoraproject.org> - 0.7.1-1
|
|
rdobuilder |
889cc0 |
- new version
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Wed Jun 17 2015 Christian Dersch <lupinix@fedoraproject.org> - 0.6-1
|
|
rdobuilder |
889cc0 |
- new upstream release
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Mon Apr 20 2015 Christian Dersch <lupinix@fedoraproject.org> - 0.5.1-1
|
|
rdobuilder |
889cc0 |
- new upstream release (0.5.1)
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Fri Dec 5 2014 Christian Dersch <lupinix@fedoraproject.org> - 0.5-1
|
|
rdobuilder |
889cc0 |
- new upstream release
|
|
rdobuilder |
889cc0 |
- enabled tests
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Dec 4 2014 Christian Dersch <lupinix@fedoraproject.org> - 0.4.1-2
|
|
rdobuilder |
889cc0 |
- spec fixes
|
|
rdobuilder |
889cc0 |
|
|
rdobuilder |
889cc0 |
* Thu Dec 4 2014 Christian Dersch <lupinix@fedoraproject.org> - 0.4.1-1
|
|
rdobuilder |
889cc0 |
- initial spec
|