4e3dbb
%global srcname markdown2
d11da9
d11da9
Name:           python-%{srcname}
6ecbb6
Version:        2.3.8
31a2fd
Release:        4%{?dist}
d11da9
Summary:        A fast and complete Python implementation of Markdown
d11da9
License:        MIT
4e3dbb
URL:            https://github.com/trentm/python-%{srcname}/
802946
Source0:        https://pypi.io/packages/source/m/%{srcname}/%{srcname}-%{version}.tar.gz
d11da9
BuildArch:      noarch
b248d0
BuildRequires:  python3-devel
b248d0
BuildRequires:  python3-pygments
b248d0
d11da9
d11da9
%description
d11da9
Markdown is a text-to-HTML filter; it translates an easy-to-read /
d11da9
easy-to-write structured text format into HTML. Markdown's text format
d11da9
is most similar to that of plain text email, and supports features
d11da9
such as headers, emphasis, code blocks, blockquotes, and links.
d11da9
d11da9
This is a fast and complete Python implementation of the Markdown
d11da9
spec.
d11da9
d11da9
For information about markdown itself, see
d11da9
http://daringfireball.net/projects/markdown/
d11da9
d11da9
039003
%package -n python3-%{srcname}
039003
Summary:        A fast and complete Python implementation of Markdown
039003
%{?python_provide:%python_provide python3-%{srcname}}
039003
039003
%description -n python3-%{srcname}
b248d0
Markdown is a text-to-HTML filter; it translates an easy-to-read /
b248d0
easy-to-write structured text format into HTML. Markdown's text format
b248d0
is most similar to that of plain text email, and supports features
b248d0
such as headers, emphasis, code blocks, blockquotes, and links.
b248d0
b248d0
This is a fast and complete Python implementation of the Markdown
b248d0
spec.
b248d0
b248d0
For information about markdown itself, see
b248d0
http://daringfireball.net/projects/markdown/
b248d0
b248d0
d11da9
%prep
802946
%autosetup -n %{srcname}-%{version} -p1
b248d0
d11da9
d11da9
%build
039003
%py3_build
b248d0
d11da9
d11da9
%install
039003
%py3_install
b248d0
802946
# remove shebangs and fix permissions
1ca47e
find %{buildroot}%{python3_sitelib} \
802946
  \( -name '*.py' -o -name 'py.*' \) \
802946
  -exec sed -i '1{/^#!/d}' {} \; \
802946
  -exec chmod u=rw,go=r {} \;
b248d0
d11da9
d11da9
%check
802946
pushd test
7e6f59
%{__python3} test.py -- -knownfailure %{?skip_tests} || :
b248d0
popd
b248d0
d11da9
039003
%files -n python3-%{srcname}
802946
%doc CHANGES.md
802946
%doc CONTRIBUTORS.txt
802946
%doc TODO.txt
802946
%license LICENSE.txt
b248d0
%{python3_sitelib}/*
7e6f59
%exclude %dir %{python3_sitelib}/__pycache__
1ca47e
%{_bindir}/%{srcname}
d11da9
d11da9
d11da9
%changelog
31a2fd
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.3.8-4
31a2fd
- Rebuilt for Python 3.8
31a2fd
1ca47e
* Tue Aug 13 2019 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.8-3
1ca47e
- Drop Python2 subpackage.
1ca47e
ede1d8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.8-2
ede1d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ede1d8
6ecbb6
* Sun Jul  7 2019 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.8-1
6ecbb6
- Update to 2.3.8.
6ecbb6
802946
* Sat Feb  9 2019 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.7-1
802946
- Update to 2.3.7.
802946
- Simplify spec file.
802946
14eddb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-2
14eddb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
14eddb
c41d31
* Sat Sep 29 2018 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.6-1
c41d31
- Update to 2.3.6.
c41d31
63fe1b
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-5
63fe1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
63fe1b
c4e7ac
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 2.3.5-4
c4e7ac
- Rebuilt for Python 3.7
c4e7ac
11fb81
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 2.3.5-3
11fb81
- Rebuilt for Python 3.7
11fb81
d468cd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-2
d468cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d468cd
817bf0
* Thu Nov 16 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.5-1
817bf0
- Update to 2.3.5.
817bf0
74f0bb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-2
74f0bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
74f0bb
b34e25
* Mon May  1 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.4-1
b34e25
- Update to 2.3.4.
b34e25
- Update source URL.
b34e25
31c70c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-3
31c70c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
31c70c
47b6aa
* Mon Dec 19 2016 Miro Hron훾ok <mhroncok@redhat.com> - 2.3.1-2
47b6aa
- Rebuild for Python 3.6
47b6aa
7e6f59
* Tue Nov 15 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.1-1
7e6f59
- Update to 2.3.1.
7e6f59
- Do not own top-level __pycache__ dir.
7e6f59
- Do not fail build on failed tests.
7e6f59
001834
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-6
001834
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
001834
55004f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-5
55004f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
55004f
039003
* Mon Jan  4 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.0-4
039003
- Follow updated Python packaging guidelines.
039003
- Mark license file as %%license.
039003
519b77
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-3
519b77
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
519b77
a51f0a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
a51f0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a51f0a
326fe6
* Thu Sep 25 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.0-1
326fe6
- Update to 2.3.0.
326fe6
e57bd5
* Fri Sep  5 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.3-1
e57bd5
- Update to 2.2.3.
e57bd5
120b1b
* Fri Aug 22 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.2-1
120b1b
- Update to 2.2.2.
120b1b
10155e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
10155e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
10155e
c7d5b2
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.2.1-2
c7d5b2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
c7d5b2
bd1d0a
* Sat Mar  8 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.1-1
bd1d0a
- Update to 2.2.1.
bd1d0a
dff6e4
* Wed Feb  5 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.0-1
dff6e4
- Update to 2.2.0.
dff6e4
- Modernize spec file.
dff6e4
bc521a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
bc521a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bc521a
8cb5f5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
8cb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8cb5f5
e01b86
* Thu Oct  4 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.0-1
e01b86
- Update to 2.1.0.
e01b86
d50e96
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.0.1-2
d50e96
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
d50e96
498ac4
* Fri Jul 27 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.1-1
498ac4
- Update to 2.0.1.
498ac4
8f362b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
8f362b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8f362b
353104
* Tue Jun 26 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.0-1
353104
- Update to 2.0.0.
353104
7404ff
* Sat May 19 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.2-2
7404ff
- Skip pygments test on rhel6.
7404ff
b248d0
* Sat May 19 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.2-1
b248d0
- Update to 1.4.2.
b248d0
- Build python3 subpackage.
b248d0
2a0c9f
* Fri Mar 16 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.1.1-1
2a0c9f
- Update to 1.1.1.
2a0c9f
04b882
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.19-2
04b882
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
04b882
4e3dbb
* Thu Jul 21 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.19-1
4e3dbb
- Update to 1.0.1.19.
4e3dbb
  - Drop patch applied upstream.
4e3dbb
  - Update project URL.
4e3dbb
- Update macros, use %%global.
4e3dbb
- Update %%doc.
4e3dbb
- Do not run tests known to fail.
4e3dbb
ef06d7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.17-3
ef06d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ef06d7
10d786
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.1.17-2
10d786
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
10d786
37d4ff
* Thu Jun  3 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.17-1
37d4ff
- Update to 1.0.17.
37d4ff
- Add patch for failing test.
37d4ff
37d4ff
* Tue Dec 29 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.16-2
37d4ff
- Patch for older pygments on rhel no longer needed, pygments has been
37d4ff
  updated in EPEL.
37d4ff
ef8fb4
* Fri Dec 18 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.16-1
ef8fb4
- Update to 1.0.1.16.
ef8fb4
682bd8
* Thu Oct  8 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.15-1
682bd8
- Update to 1.0.1.15. Fixes three issues, two of them being
682bd8
  security-related.
682bd8
23fba2
* Wed Sep  2 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.13-3
23fba2
- Patch syntax_color test case for older pygments version on rhel.
23fba2
093b11
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.13-2
093b11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
093b11
d14c30
* Sat Jul 11 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.13-1
d14c30
- Update to 1.0.1.13.
d14c30
20a28e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.11-3
20a28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
20a28e
957fc6
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.1.11-2
957fc6
- Rebuild for Python 2.6
957fc6
4a7043
* Wed Oct  1 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.11-1
4a7043
- Update to 1.0.11, also fixes the syntax_color test for the latest
4a7043
  Pygments (should fix FTBFS bug 465049).
4a7043
4a7043
* Fri Sep 26 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.10-1
4a7043
- Update to 1.0.1.10.
4a7043
949bb8
* Fri Sep 12 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.9-1
949bb8
- Update to 1.0.1.9.
949bb8
4ffeb9
* Thu Sep 11 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.8-1
4ffeb9
- Update to 1.0.1.8.
4ffeb9
- Simplify the cmdline wrapper.
4ffeb9
d11da9
* Tue Sep  9 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.7-1
d11da9
- New package.