|
|
8cc6b8 |
%global pypi_name CommonMark
|
|
|
8cc6b8 |
%global desc Pure Python port of jgm’s stmd.js, a Markdown parser and renderer for the\
|
|
|
8cc6b8 |
CommonMark specification, using only native modules. Once both this project and\
|
|
|
8cc6b8 |
the CommonMark specification are stable we will release the first 1.0 version\
|
|
|
8cc6b8 |
and attempt to keep up to date with changes in stmd.js.\
|
|
|
8cc6b8 |
\
|
|
|
8cc6b8 |
We are currently at the same development stage (actually a bit ahead because we\
|
|
|
8cc6b8 |
have implemented HTML entity conversion and href URL escaping) as stmd.js. Since\
|
|
|
8cc6b8 |
Python versions pre-3.4 use outdated (i.e. not HTML5 spec) entity conversion,\
|
|
|
8cc6b8 |
I’ve converted the 3.4 implementation into a single file, entitytrans.py which\
|
|
|
8cc6b8 |
so far seems to work (all tests pass on 2.7, 3.3, and 3.4).
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
Name: python-%{pypi_name}
|
|
|
8cc6b8 |
Version: 0.9.1
|
|
|
8cc6b8 |
Release: 6%{?dist}
|
|
|
8cc6b8 |
Summary: Python parser for the CommonMark Markdown spec
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
License: BSD
|
|
|
8cc6b8 |
URL: https://pypi.python.org/pypi/%{pypi_name}
|
|
|
8cc6b8 |
Source0: https://files.pythonhosted.org/packages/60/48/a60f593447e8f0894ebb7f6e6c1f25dafc5e89c5879fdc9360ae93ff83f0/commonmark-0.9.1.tar.gz
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
BuildArch: noarch
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%description
|
|
|
8cc6b8 |
%{desc}
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%package doc
|
|
|
8cc6b8 |
Summary: Documentation for python-%{pypi_name}
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%description doc
|
|
|
8cc6b8 |
%{desc}
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
Documentation package.
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
8cc6b8 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
8cc6b8 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
8cc6b8 |
BuildRequires: python%{python3_pkgversion}-future
|
|
|
8cc6b8 |
#BuildRequires: python%{python3_pkgversion}-hypothesis
|
|
|
8cc6b8 |
Requires: python%{python3_pkgversion}-future
|
|
|
8cc6b8 |
Summary: %{summary}
|
|
|
8cc6b8 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
8cc6b8 |
%{desc}
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%prep
|
|
|
8cc6b8 |
%setup -qn commonmark-%{version}
|
|
|
8cc6b8 |
# Fix non executable scripts
|
|
|
8cc6b8 |
sed -i '1{\@^#!/usr/bin/env python@d}' commonmark/tests/run_spec_tests.py
|
|
|
8cc6b8 |
sed -i '1{\@^#!/usr/bin/env python@d}' commonmark/cmark.py
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%build
|
|
|
8cc6b8 |
%py3_build
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%install
|
|
|
8cc6b8 |
%py3_install
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%check
|
|
|
8cc6b8 |
export PYTHONIOENCODING=UTF-8
|
|
|
8cc6b8 |
PYTHONPATH=$(pwd) %{__python3} setup.py test
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
8cc6b8 |
%license LICENSE
|
|
|
8cc6b8 |
%{_bindir}/cmark
|
|
|
8cc6b8 |
%{python3_sitelib}/commonmark-%{version}-py%{python3_version}.egg-info
|
|
|
8cc6b8 |
%{python3_sitelib}/commonmark/
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%files doc
|
|
|
8cc6b8 |
%license LICENSE
|
|
|
8cc6b8 |
%doc README.rst spec.txt
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
%changelog
|
|
|
8cc6b8 |
* Thu Sep 16 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 0.9.1-6
|
|
|
8cc6b8 |
- rebuild with git+lookaside
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-5
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9.1-4
|
|
|
8cc6b8 |
- Rebuilt for Python 3.10
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 0.9.1-1
|
|
|
8cc6b8 |
- Update to 0.9.1
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-6
|
|
|
8cc6b8 |
- Rebuilt for Python 3.9
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-4
|
|
|
8cc6b8 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-3
|
|
|
8cc6b8 |
- Rebuilt for Python 3.8
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 0.9.0-1
|
|
|
8cc6b8 |
- Update to 0.9.0
|
|
|
8cc6b8 |
- Fix build on Python 3.8
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-3
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8.1-2
|
|
|
8cc6b8 |
- Drop explicit locale setting
|
|
|
8cc6b8 |
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Tue Oct 02 2018 Julien Enselme <jujens@jujens.eu> - 0.8.1-1
|
|
|
8cc6b8 |
- Update to 0.8.1
|
|
|
8cc6b8 |
- Remove Python 2 subpackage
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-3
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.5-2
|
|
|
8cc6b8 |
- Rebuilt for Python 3.7
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Wed Mar 14 2018 Julien Enselme <jujens@jujens.eu> - 0.7.5-1
|
|
|
8cc6b8 |
- Update to 0.7.5
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-6
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-5
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-4
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.2-3
|
|
|
8cc6b8 |
- Rebuild for Python 3.6
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 0.7.2-2
|
|
|
8cc6b8 |
- Correct encodings in tests
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 0.7.2-1
|
|
|
8cc6b8 |
- Update to 0.7.2
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-5
|
|
|
8cc6b8 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-4
|
|
|
8cc6b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Sat Dec 5 2015 Julien Enselme <jujens@jujens.eu> - 0.5.4-3
|
|
|
8cc6b8 |
- Use only one doc package.
|
|
|
8cc6b8 |
- Use %%summary to avoid summary repetition.
|
|
|
8cc6b8 |
- Use %%__python3 macro to fix shebang.
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Fri Dec 4 2015 Julien Enselme <jujens@jujens.eu> - 0.5.4-2
|
|
|
8cc6b8 |
- Correct shebang of cmark.py (/usr/bin/python2 -> /usr/bin/python3)
|
|
|
8cc6b8 |
- Add doc packages.
|
|
|
8cc6b8 |
|
|
|
8cc6b8 |
* Fri Dec 4 2015 Julien Enselme <jujens@jujens.eu> - 0.5.4-1
|
|
|
8cc6b8 |
- Inital package
|