466e440
%global sum docutils-compatibility bridge to CommonMark
466e440
%global desc A docutils-compatibility bridge to CommonMark.\
466e440
\
466e440
This allows you to write CommonMark inside of Docutils & Sphinx projects.\
466e440
\
466e440
Documentation is available on Read the Docs: http://recommonmark.readthedocs.org
466e440
203cc07
Name:           python-recommonmark
203cc07
Version:        0.7.1
327600e
Release:        8.git%{?dist}
466e440
Summary:        %{sum}
466e440
466e440
License:        MIT
203cc07
URL:            https://github.com/readthedocs/recommonmark
203cc07
Source0:        https://github.com/readthedocs/recommonmark/archive/%{version}/recommonmark-%{version}.tar.gz
466e440
BuildArch:      noarch
466e440
466e440
%description
466e440
%{desc}
466e440
466e440
203cc07
%package -n     python%{python3_pkgversion}-recommonmark
466e440
Summary:        %{sum}
466e440
BuildArch:      noarch
cce77b9
BuildRequires:  python%{python3_pkgversion}-devel
ed89350
BuildRequires:  python%{python3_pkgversion}-setuptools
cce77b9
BuildRequires:  python%{python3_pkgversion}-docutils
cce77b9
BuildRequires:  python%{python3_pkgversion}-CommonMark
cce77b9
BuildRequires:  python%{python3_pkgversion}-pytest
cce77b9
BuildRequires:  python%{python3_pkgversion}-sphinx
203cc07
%{?python_provide:%python_provide python%{python3_pkgversion}-recommonmark}
cce77b9
203cc07
%description -n python%{python3_pkgversion}-recommonmark
466e440
%{desc}
466e440
466e440
466e440
%prep
203cc07
%setup -qn recommonmark-%{version}
466e440
# Remove upstream's egg-info
203cc07
rm -rf recommonmark.egg-info
466e440
466e440
sed -i '1{\@^#!/usr/bin/env python@d}' recommonmark/scripts.py
466e440
466e440
466e440
%build
466e440
%py3_build
466e440
466e440
466e440
%install
5189d93
#  install python3 first to have unversioned binaries for python 3
466e440
%py3_install
466e440
pushd %{buildroot}%{_bindir}  # Enter buildroot bindir to ease symlink creation
466e440
for cm2bin in cm2*; do
466e440
    mv "${cm2bin}" "${cm2bin}-%{python3_version}"
466e440
    ln -s "${cm2bin}-%{python3_version}" "${cm2bin}-3"
466e440
done
466e440
popd  # Leave buildroot bindir
466e440
466e440
466e440
466e440
%check
69c7003
# Skip some tests because of https://github.com/readthedocs/recommonmark/issues/164
51fd886
%pytest --ignore tests/test_sphinx.py
466e440
466e440
203cc07
%files -n python%{python3_pkgversion}-recommonmark
466e440
%doc README.md
466e440
%license license.md
203cc07
%{python3_sitelib}/recommonmark-%{version}*-py%{python3_version}.egg-info/
203cc07
%{python3_sitelib}/recommonmark/
466e440
%{_bindir}/cm2*-3
466e440
%{_bindir}/cm2*-%{python3_version}
466e440
466e440
466e440
%changelog
327600e
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-8.git
327600e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
327600e
654abf4
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-7.git
654abf4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
654abf4
51fd886
* Thu Sep 21 2023 Miro Hrončok <mhroncok@redhat.com> - 0.7.1-6.git
51fd886
- Run at least some tests during the build
e58ab9d
- Remove duplicate manual runtime Requires
51fd886
661a88d
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-5.git
661a88d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
661a88d
c2ae482
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 0.7.1-4.git
c2ae482
- Rebuilt for Python 3.12
c2ae482
81c4f33
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-3.git
81c4f33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
81c4f33
5ace10c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2.git
5ace10c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
5ace10c
203cc07
* Wed Jun 29 2022 Julien Enselme <jujens@jujens.eu> - 0.7.1-1
203cc07
- Update to 0.7.1
203cc07
6bcbc8c
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.6.0-7.git
6bcbc8c
- Rebuilt for Python 3.11
6bcbc8c
b01137e
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-6.git
b01137e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b01137e
3d4b3d1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5.git
3d4b3d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3d4b3d1
62228e6
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.0-4.git
62228e6
- Rebuilt for Python 3.10
62228e6
b4d32ff
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3.git
b4d32ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b4d32ff
baa9da4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2.git
baa9da4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
baa9da4
33ec33b
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 0.6.0-1
33ec33b
- Update to 0.6.0
33ec33b
fab1ee8
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-6.git
fab1ee8
- Rebuilt for Python 3.9
fab1ee8
2b9f8e1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-5.git
2b9f8e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2b9f8e1
527a5f3
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-4.git
527a5f3
- Rebuilt for Python 3.8.0rc1 (#1748018)
527a5f3
c673f84
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-3.git
c673f84
- Rebuilt for Python 3.8
c673f84
9223cae
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2.git
9223cae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9223cae
69c7003
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 0.5.0-1
69c7003
- Update to 0.5.0
69c7003
- Skip some broken tests.
69c7003
69a3eaa
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-19.gitdbed1c4
69a3eaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
69a3eaa
382cba7
* Sat Oct 20 2018 Julien Enselme <jujens@jujens.eu> - 0.4.0-18.gitdbed1c4
382cba7
- Bump version
382cba7
c615a94
* Sat Oct 20 2018 Julien Enselme <jujens@jujens.eu> - 0.4.0-17.gitdbed1c4
c615a94
- Fix import of commonmark
c615a94
- Remove Python 2 subpackage
c615a94
520ae76
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-16.gitdbed1c4
520ae76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
520ae76
350166c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-15.gitdbed1c4
350166c
- Rebuilt for Python 3.7
350166c
86c5204
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-14.gitdbed1c4
86c5204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
86c5204
c55928f
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.0-13.gitdbed1c4
c55928f
- Update Python 2 dependency declarations to new packaging standards
c55928f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c55928f
7e5cd7b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-12.gitdbed1c4
7e5cd7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7e5cd7b
ea87fce
* Wed Feb 22 2017 Julien Enselme <jujens@jujens.eu> - 0.4.0-11.gitdbed1c4
ea87fce
- Fix requires
ea87fce
a5d45f5
* Wed Feb 22 2017 Julien Enselme <jujens@jujens.eu> - 0.4.0-10.gitdbed1c4
a5d45f5
- Add support for CommonMark 0.7.0
a5d45f5
73d474b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-9.git7ca5247
73d474b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
73d474b
131b699
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-8.git7ca5247
131b699
- Rebuild for Python 3.6
131b699
ac37257
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-7.git7ca5247
ac37257
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ac37257
5189d93
* Mon Jul 11 2016 Julien Enselme - 0.4.0-6.git7ca5247
5189d93
- Fix typo in comment
5189d93
64289c8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-5.git7ca5247
64289c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
64289c8
466e440
* Mon Jan 18 2016 Julien Enselme <jujens@jujens.eu> - 0.4.0-4.git7ca5247
466e440
- Move unversionned binaries to python2 subpackage
466e440
466e440
* Sun Jan 17 2016 Julien Enselme <jujens@jujens.eu> - 0.4.0-3.git7ca5247
466e440
- Use tarball from github to have tests and LICENSE
466e440
- Add %%check section
466e440
466e440
* Sat Jan 16 2016 Julien Enselme <jujens@jujens.eu> - 0.4.0-2
466e440
- Remove separate source tag for license
466e440
- Add binary to python2 subpackage
466e440
466e440
* Sun Jan 10 2016 Julien Enselme <jujens@jujens.eu> - 0.4.0-1
466e440
- Update to 0.4.0
466e440
466e440
* Thu Dec 31 2015 Julien Enselme <jujens@jujens.eu> - 0.2.0-2
466e440
- Add missing dist tag
466e440
466e440
* Fri Dec 4 2015 Julien Enselme <jujens@jujens.eu> - 0.2.0-1
466e440
- Inital package