d827611
%global srcname Markdown
d827611
%global pkgname markdown
b94a1ab
d827611
Name:           python-%{pkgname}
adf7f5b
Version:        3.5.1
8baea70
Release:        3%{?dist}
b94a1ab
Summary:        Markdown implementation in Python
ef8d7a9
License:        BSD
bea5080
URL:            https://python-markdown.github.io/
8dd2a6e
Source0:        %{pypi_source}
b94a1ab
BuildArch:      noarch
b23b7d5
BuildRequires:  python3-devel
b23b7d5
BuildRequires:  python3-PyYAML
b23b7d5
%if ( 0%{?rhel} && 0%{?rhel} <= 9 )
b23b7d5
BuildRequires:  python3-importlib-metadata >= 4.4
b23b7d5
Requires:       python3-importlib-metadata >= 4.4
b23b7d5
%endif
b94a1ab
b23b7d5
%global _description %{expand:
494567a
This is a Python implementation of John Gruber’s Markdown. It is
b94a1ab
almost completely compliant with the reference implementation, though
b23b7d5
there are a few very minor differences.}
b94a1ab
b23b7d5
%description %_description
b94a1ab
61bf07c
b23b7d5
%package -n python3-%{pkgname}
b23b7d5
Summary:        %{summary}
96acba7
b23b7d5
%description -n python3-%{pkgname} %_description
2ff5e4a
2ff5e4a
b94a1ab
%prep
494567a
%autosetup -p1 -n %{srcname}-%{version}
b94a1ab
b23b7d5
%generate_buildrequires
b23b7d5
%pyproject_buildrequires
b23b7d5
b23b7d5
b94a1ab
%build
92abd69
%pyproject_wheel
2ff5e4a
b94a1ab
b94a1ab
%install
92abd69
%pyproject_install
92abd69
%pyproject_save_files %{pkgname}
2ff5e4a
bae5218
# process license file
bae5218
PYTHONPATH=%{buildroot}%{python3_sitelib} \
0a7322d
  %{buildroot}%{_bindir}/markdown_py \
bae5218
  LICENSE.md > LICENSE.html
2ff5e4a
2ff5e4a
2ff5e4a
%check
7b49a44
%python3 -m unittest discover tests
2ff5e4a
b94a1ab
b23b7d5
%files -n python3-%{pkgname} -f %{pyproject_files}
bea5080
# temporarily skip packaging docs - see also
bea5080
# https://github.com/Python-Markdown/markdown/issues/621
bea5080
#doc python3/build/docs/*
92abd69
%license LICENSE.html LICENSE.md
848afd5
%{_bindir}/markdown_py
b94a1ab
b94a1ab
b94a1ab
%changelog
8baea70
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.1-3
8baea70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
8baea70
3608308
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.1-2
3608308
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3608308
adf7f5b
* Sat Nov  4 2023 Thomas Moschny <thomas.moschny@gmx.de> - 3.5.1-1
adf7f5b
- Update to 3.5.1.
adf7f5b
0e40a85
* Sun Oct 22 2023 Thomas Moschny <thomas.moschny@gmx.de> - 3.5-1
0e40a85
- Update to 3.5.
0e40a85
92abd69
* Sun Jul 30 2023 Thomas Moschny <thomas.moschny@gmx.de> - 3.4.4-1
92abd69
- Update to 3.4.4.
b23b7d5
- Update packaging.
92abd69
0ced014
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-4
0ced014
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
0ced014
d516c1a
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.4.1-3
d516c1a
- Rebuilt for Python 3.12
d516c1a
f9576e2
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-2
f9576e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f9576e2
090941f
* Fri Jul 29 2022 Sandro Mani <manisandro@gmail.com> - 3.4.1-1
090941f
- Update to 3.4.1
090941f
96aaf5e
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.7-3
96aaf5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
96aaf5e
d4858b0
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.3.7-2
d4858b0
- Rebuilt for Python 3.11
d4858b0
03baf9e
* Sat May 28 2022 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.7-1
03baf9e
- Update to 3.3.7.
03baf9e
507b460
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-3
507b460
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
507b460
25e6c96
* Sun Dec  5 2021 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.6-2
25e6c96
- Update requirements for Python < 3.10.
25e6c96
8db9683
* Sat Nov 27 2021 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.6-1
8db9683
- Update to 3.3.6.
8db9683
40188b8
* Sat Nov 27 2021 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.5-1
40188b8
- Update to 3.3.5.
40188b8
48d1f1b
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-4
48d1f1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
48d1f1b
b1bc134
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 3.3.4-3
b1bc134
- Rebuilt for Python 3.10
b1bc134
7b49a44
* Sat Feb 27 2021 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.4-2
7b49a44
- Apply PR6 by Igor Raits <ignatenkobrain@fedoraproject.org>: Support
7b49a44
  for building on EPEL8 + upstream tests invocation.
7b49a44
- Remove unused BR on python3-tidy (we'd need pytidylib instead, which
7b49a44
  doesn't seem to be packaged).
7b49a44
8dd2a6e
* Sat Feb 27 2021 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.4-1
8dd2a6e
- Update to 3.3.4.
8dd2a6e
0186843
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-2
0186843
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0186843
58228c4
* Sun Oct 25 2020 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.3-1
58228c4
- Update to 3.3.3.
58228c4
1407918
* Sun Oct 25 2020 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.2-1
1407918
- Update to 3.3.2.
1407918
63d79a7
* Tue Oct 13 2020 Thomas Moschny <thomas.moschny@gmx.de> - 3.3.1-1
63d79a7
- Update to 3.3.1.
63d79a7
937cef1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-4
937cef1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
937cef1
de7b5aa
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 3.2.2-3
de7b5aa
- Rebuilt for Python 3.9
de7b5aa
61bf07c
* Sat May 16 2020 Thomas Moschny <thomas.moschny@gmx.de> - 3.2.2-2
61bf07c
- Update BRs.
61bf07c
c0be999
* Sat May 16 2020 Thomas Moschny <thomas.moschny@gmx.de> - 3.2.2-1
c0be999
- Update to 3.2.2.
c0be999
91c69ba
* Sat Feb 22 2020 Thomas Moschny <thomas.moschny@gmx.de> - 3.2.1-1
91c69ba
- Update to 3.2.1.
91c69ba
22cafc5
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-7
22cafc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
22cafc5
74d73e6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-6
74d73e6
- Rebuilt for Python 3.8.0rc1 (#1748018)
74d73e6
72b2388
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-5
72b2388
- Rebuilt for Python 3.8
72b2388
0a7322d
* Tue Aug 13 2019 Thomas Moschny <thomas.moschny@gmx.de> - 3.1.1-4
0a7322d
- Drop versioned binaries.
0a7322d
046a7c2
* Tue Aug 13 2019 Gwyn Ciesla <gwync@protonmail.com> - 3.1.1-3
046a7c2
- Drop Python 2.
046a7c2
1ba31d4
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
1ba31d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1ba31d4
588deed
* Sat May 25 2019 Thomas Moschny <thomas.moschny@gmx.de> - 3.1.1-1
588deed
- Update to 3.1.1.
588deed
848afd5
* Fri May 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1-2
848afd5
- Move /usr/bin/markdown_py to python3-markdown (#1705777)
848afd5
bd396c0
* Tue Mar 26 2019 Thomas Moschny <thomas.moschny@gmx.de> - 3.1-1
bd396c0
- Update to 3.1.
bd396c0
494567a
* Mon Mar 25 2019 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.1-1
494567a
- Update to 3.0.1.
494567a
- Simplify spec file.
494567a
- CLI tool uses Python3 now.
494567a
- Update BRs.
494567a
9dff5b6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.11-5
9dff5b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9dff5b6
dff59b8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.11-4
dff59b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dff59b8
5727ae7
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.11-3
5727ae7
- Rebuilt for Python 3.7
5727ae7
93312f7
* Sun Jun  3 2018 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.11-2
93312f7
- Try to fix a FTBFS with Python 3.7 (rhbz#1583678).
93312f7
bea5080
* Sun Feb 11 2018 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.11-1
bea5080
- Update to 2.6.11.
bea5080
c9d3d67
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.9-3
c9d3d67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c9d3d67
68e18cd
* Wed Aug 30 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.9-2
68e18cd
- Fix BRs.
68e18cd
714392a
* Wed Aug 30 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.9-1
714392a
- Update to 2.6.9.
714392a
- Allow building a python3 subpackage on EPEL7+.
714392a
a27e05e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.8-3
a27e05e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a27e05e
f843a11
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.8-2
f843a11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f843a11
715d9d7
* Sun Jan 29 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.8-1
715d9d7
- Update to 2.6.8.
715d9d7
598633f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.6.7-2
598633f
- Rebuild for Python 3.6
598633f
fc2127f
* Sat Sep 24 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.7-1
fc2127f
- Update to 2.6.7.
fc2127f
- Update Source0 URL.
fc2127f
ac18dba
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.6-2
ac18dba
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ac18dba
c236ddd
* Tue Apr  5 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.6-1
c236ddd
- Update to 2.6.6.
c236ddd
becd808
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.5-2
becd808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
becd808
cfe963d
* Sun Nov 29 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.5-1
cfe963d
- Update to 2.6.5.
cfe963d
96acba7
* Sat Nov 21 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.4-1
96acba7
- Update to 2.6.4.
96acba7
- Follow updated Python packaging guidelines.
96acba7
f0e6ddf
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-3
f0e6ddf
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f0e6ddf
2510f8a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-2
2510f8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2510f8a
7ab0800
* Wed Apr 22 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.2-1
7ab0800
- Update to 2.6.2.
7ab0800
bae5218
* Sat Mar 14 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.1-2
bae5218
- Add license file.
bae5218
aa6be0c
* Sat Mar 14 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.1-1
aa6be0c
- Update to 2.6.1.
aa6be0c
- Apply updated Python packaging guidelines.
aa6be0c
fd25aa9
* Sun Feb 22 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6-1
fd25aa9
- Update to 2.6.
fd25aa9
- Update the upstream URL.
fd25aa9
40275fd
* Sun Nov 23 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.5.2-1
40275fd
- Update to 2.5.2.
40275fd
e6c41a6
* Thu Oct  2 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.5.1-1
e6c41a6
- Update to 2.5.1.
e6c41a6
1370f75
* Thu Sep 25 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.5-1
1370f75
- Update to 2.5.
1370f75
- Add BR on PyYAML.
1370f75
d2e0649
* Wed Jun  4 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.1-1
d2e0649
- Update to 2.4.1.
d2e0649
f638281
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.4-2
f638281
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
f638281
5532805
* Tue Apr 15 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.4-1
5532805
- Update to 2.4.
5532805
- Update Python3 conditional.
5532805
- Fix wrong line endings.
5532805
0e72468
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-3
0e72468
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0e72468
29d40cd
* Fri Jul 19 2013 Thomas Moschny <thomas.moschny@gmx.dee> - 2.3.1-2
29d40cd
- Move python3 runtime dependency to python3 subpackage (rhbz#986376).
29d40cd
f69e123
* Mon Apr  8 2013 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.1-1
f69e123
- Update to 2.3.1.
f69e123
c869440
* Mon Mar 18 2013 Thomas Moschny <thomas.moschny@gmx.de> - 2.3-1
c869440
- Update to 2.3.
c869440
- Spec file cleanups.
c869440
8c9ed1a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
8c9ed1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8c9ed1a
d400db7
* Fri Nov 23 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.1-1
d400db7
- Update to 2.2.1.
d400db7
278de90
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.0-3
278de90
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
278de90
a3d6529
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
a3d6529
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a3d6529
8026108
* Sat Jul 14 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.0-1
8026108
- Update to 2.2.0.
8026108
- Update url.
8026108
- Add patch from upstream git for failing test.
8026108
9fc82b5
* Wed Feb  8 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.1-1
9fc82b5
- Update to 2.1.1.
9fc82b5
551b1ce
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
551b1ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
551b1ce
2ff5e4a
* Sat Dec 17 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.0-1
2ff5e4a
- Update to 2.1.0.
2ff5e4a
- Fix rhel conditional.
2ff5e4a
- Binary has been renamed.
2ff5e4a
- Build python3 subpackage.
2ff5e4a
- Include documentation in HTML instead of Markdown format.
2ff5e4a
- Run tests.
2ff5e4a
Jesse Keating ca8b502
* Wed Sep 07 2011 Jesse Keating <jkeating@redhat.com> - 2.0.3-4
Jesse Keating ca8b502
- Set a version in the rhel macro
Jesse Keating ca8b502
557fe7a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-3
557fe7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
557fe7a
f90a820
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.0.3-2
f90a820
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
f90a820
e5609d6
* Thu Oct  8 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.3-1
e5609d6
- Update to 2.0.3.
e5609d6
f337e15
* Thu Aug 27 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.1-3
f337e15
- Add requirement on python-elementtree, which was a separate package
f337e15
  before Python 2.5.
f337e15
- Re-add changelog entries accidentally removed earlier.
f337e15
b121ccf
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
b121ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b121ccf
47dc1b5
* Sat Jul 11 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.1-1
47dc1b5
- Update to 2.0.1.
47dc1b5
- Upstream stripped .py of the cmdline script.
47dc1b5
ef8d7a9
* Sat Apr 25 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-1
ef8d7a9
- Update to 2.0.
ef8d7a9
- Adjusted source URL.
47dc1b5
- License changed to BSD only.
ef8d7a9
- Upstream now provides a script to run markdown from the cmdline.
69659dc
f337e15
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-3
f337e15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f337e15
f337e15
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.7-2
f337e15
- Rebuild for Python 2.6
f337e15
b94a1ab
* Mon Aug  4 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.7-1
b94a1ab
- New package.