|
|
4e3dbbd |
%global srcname markdown2
|
|
|
d11da99 |
|
|
|
d11da99 |
Name: python-%{srcname}
|
|
|
817bf0b |
Version: 2.3.5
|
|
|
817bf0b |
Release: 1%{?dist}
|
|
|
d11da99 |
Summary: A fast and complete Python implementation of Markdown
|
|
|
d11da99 |
License: MIT
|
|
|
4e3dbbd |
URL: https://github.com/trentm/python-%{srcname}/
|
|
|
b34e257 |
Source0: https://pypi.io/packages/source/m/%{srcname}/%{srcname}-%{version}.zip
|
|
|
d11da99 |
BuildArch: noarch
|
|
|
0390036 |
BuildRequires: python2-devel
|
|
|
b34e257 |
%if 0%{?fedora} >= 25
|
|
|
b34e257 |
BuildRequires: python2-pygments
|
|
|
b34e257 |
%else
|
|
|
d11da99 |
BuildRequires: python-pygments
|
|
|
b34e257 |
%endif
|
|
|
b248d0f |
BuildRequires: python3-devel
|
|
|
b248d0f |
BuildRequires: python3-pygments
|
|
|
b248d0f |
|
|
|
d11da99 |
|
|
|
d11da99 |
%description
|
|
|
d11da99 |
Markdown is a text-to-HTML filter; it translates an easy-to-read /
|
|
|
d11da99 |
easy-to-write structured text format into HTML. Markdown's text format
|
|
|
d11da99 |
is most similar to that of plain text email, and supports features
|
|
|
d11da99 |
such as headers, emphasis, code blocks, blockquotes, and links.
|
|
|
d11da99 |
|
|
|
d11da99 |
This is a fast and complete Python implementation of the Markdown
|
|
|
d11da99 |
spec.
|
|
|
d11da99 |
|
|
|
d11da99 |
For information about markdown itself, see
|
|
|
d11da99 |
http://daringfireball.net/projects/markdown/
|
|
|
d11da99 |
|
|
|
d11da99 |
|
|
|
0390036 |
%package -n python2-%{srcname}
|
|
|
b248d0f |
Summary: A fast and complete Python implementation of Markdown
|
|
|
0390036 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
b248d0f |
|
|
|
0390036 |
%description -n python2-%{srcname}
|
|
|
0390036 |
Markdown is a text-to-HTML filter; it translates an easy-to-read /
|
|
|
0390036 |
easy-to-write structured text format into HTML. Markdown's text format
|
|
|
0390036 |
is most similar to that of plain text email, and supports features
|
|
|
0390036 |
such as headers, emphasis, code blocks, blockquotes, and links.
|
|
|
b248d0f |
|
|
|
0390036 |
This is a fast and complete Python implementation of the Markdown
|
|
|
0390036 |
spec.
|
|
|
0390036 |
|
|
|
0390036 |
For information about markdown itself, see
|
|
|
0390036 |
http://daringfireball.net/projects/markdown/
|
|
|
0390036 |
|
|
|
0390036 |
|
|
|
0390036 |
%package -n python3-%{srcname}
|
|
|
0390036 |
Summary: A fast and complete Python implementation of Markdown
|
|
|
0390036 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
0390036 |
|
|
|
0390036 |
%description -n python3-%{srcname}
|
|
|
b248d0f |
Markdown is a text-to-HTML filter; it translates an easy-to-read /
|
|
|
b248d0f |
easy-to-write structured text format into HTML. Markdown's text format
|
|
|
b248d0f |
is most similar to that of plain text email, and supports features
|
|
|
b248d0f |
such as headers, emphasis, code blocks, blockquotes, and links.
|
|
|
b248d0f |
|
|
|
b248d0f |
This is a fast and complete Python implementation of the Markdown
|
|
|
b248d0f |
spec.
|
|
|
b248d0f |
|
|
|
b248d0f |
For information about markdown itself, see
|
|
|
b248d0f |
http://daringfireball.net/projects/markdown/
|
|
|
b248d0f |
|
|
|
b248d0f |
|
|
|
d11da99 |
%prep
|
|
|
0390036 |
%setup0 -qc -n %{srcname}-%{version}
|
|
|
0390036 |
mv %{srcname}-%{version} python2
|
|
|
0390036 |
cp -a python2 python3
|
|
|
b248d0f |
|
|
|
d11da99 |
|
|
|
d11da99 |
%build
|
|
|
0390036 |
pushd python2
|
|
|
0390036 |
%py2_build
|
|
|
0390036 |
popd
|
|
|
d11da99 |
|
|
|
0390036 |
pushd python3
|
|
|
0390036 |
%py3_build
|
|
|
b248d0f |
popd
|
|
|
b248d0f |
|
|
|
d11da99 |
|
|
|
d11da99 |
%install
|
|
|
0390036 |
pushd python2
|
|
|
0390036 |
%py2_install
|
|
|
d11da99 |
|
|
|
d11da99 |
# remove shebangs and fix permissions
|
|
|
0390036 |
find %{buildroot}%{python2_sitelib} \( -name '*.py' -o -name 'py.*' \) \
|
|
|
d11da99 |
-exec sed -i '1{/^#!/d}' {} \; \
|
|
|
d11da99 |
-exec chmod u=rw,go=r {} \;
|
|
|
d11da99 |
|
|
|
b248d0f |
# rename binary
|
|
|
0390036 |
mv %{buildroot}%{_bindir}/%{srcname}{,-%{python2_version}}
|
|
|
0390036 |
ln -s %{srcname}-%{python2_version} %{buildroot}%{_bindir}/%{srcname}-2
|
|
|
0390036 |
popd
|
|
|
b248d0f |
|
|
|
0390036 |
pushd python3
|
|
|
0390036 |
%py3_install
|
|
|
b248d0f |
|
|
|
b248d0f |
# remove shebangs and fix permissions
|
|
|
b248d0f |
find %{buildroot}%{python3_sitelib} \( -name '*.py' -o -name 'py.*' \) \
|
|
|
b248d0f |
-exec sed -i '1{/^#!/d}' {} \; \
|
|
|
b248d0f |
-exec chmod u=rw,go=r {} \;
|
|
|
b248d0f |
|
|
|
b248d0f |
# rename binary
|
|
|
0390036 |
mv %{buildroot}%{_bindir}/%{srcname}{,-%{python3_version}}
|
|
|
0390036 |
ln -s %{srcname}-%{python3_version} %{buildroot}%{_bindir}/%{srcname}-3
|
|
|
b248d0f |
popd
|
|
|
b248d0f |
|
|
|
b248d0f |
# 2.X binary is called by default for now
|
|
|
0390036 |
ln -s %{srcname}-%{python2_version} %{buildroot}%{_bindir}/%{srcname}
|
|
|
b248d0f |
|
|
|
d11da99 |
|
|
|
d11da99 |
%check
|
|
|
0390036 |
pushd python2/test
|
|
|
7e6f59e |
%{__python2} test.py -- -knownfailure %{?skip_tests} || :
|
|
|
0390036 |
popd
|
|
|
d11da99 |
|
|
|
0390036 |
pushd python3/test
|
|
|
7e6f59e |
%{__python3} test.py -- -knownfailure %{?skip_tests} || :
|
|
|
b248d0f |
popd
|
|
|
b248d0f |
|
|
|
d11da99 |
|
|
|
0390036 |
%files -n python2-%{srcname}
|
|
|
0390036 |
%doc python2/CHANGES.md
|
|
|
0390036 |
%doc python2/CONTRIBUTORS.txt
|
|
|
0390036 |
%doc python2/TODO.txt
|
|
|
0390036 |
%license python2/LICENSE.txt
|
|
|
0390036 |
%{python2_sitelib}/*
|
|
|
0390036 |
%{_bindir}/%{srcname}
|
|
|
0390036 |
%{_bindir}/%{srcname}-2
|
|
|
0390036 |
%{_bindir}/%{srcname}-%{python2_version}
|
|
|
b248d0f |
|
|
|
b248d0f |
|
|
|
0390036 |
%files -n python3-%{srcname}
|
|
|
0390036 |
%doc python3/CHANGES.md
|
|
|
0390036 |
%doc python3/CONTRIBUTORS.txt
|
|
|
0390036 |
%doc python3/TODO.txt
|
|
|
0390036 |
%license python3/LICENSE.txt
|
|
|
b248d0f |
%{python3_sitelib}/*
|
|
|
7e6f59e |
%exclude %dir %{python3_sitelib}/__pycache__
|
|
|
0390036 |
%{_bindir}/%{srcname}-3
|
|
|
0390036 |
%{_bindir}/%{srcname}-%{python3_version}
|
|
|
d11da99 |
|
|
|
d11da99 |
|
|
|
d11da99 |
%changelog
|
|
|
817bf0b |
* Thu Nov 16 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.5-1
|
|
|
817bf0b |
- Update to 2.3.5.
|
|
|
817bf0b |
|
|
|
74f0bbe |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-2
|
|
|
74f0bbe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
74f0bbe |
|
|
|
b34e257 |
* Mon May 1 2017 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.4-1
|
|
|
b34e257 |
- Update to 2.3.4.
|
|
|
b34e257 |
- Update source URL.
|
|
|
b34e257 |
|
|
|
31c70ce |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-3
|
|
|
31c70ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
31c70ce |
|
|
|
47b6aaf |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 2.3.1-2
|
|
|
47b6aaf |
- Rebuild for Python 3.6
|
|
|
47b6aaf |
|
|
|
7e6f59e |
* Tue Nov 15 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.1-1
|
|
|
7e6f59e |
- Update to 2.3.1.
|
|
|
7e6f59e |
- Do not own top-level __pycache__ dir.
|
|
|
7e6f59e |
- Do not fail build on failed tests.
|
|
|
7e6f59e |
|
|
|
001834f |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-6
|
|
|
001834f |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
001834f |
|
|
|
55004fa |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-5
|
|
|
55004fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
55004fa |
|
|
|
0390036 |
* Mon Jan 4 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.0-4
|
|
|
0390036 |
- Follow updated Python packaging guidelines.
|
|
|
0390036 |
- Mark license file as %%license.
|
|
|
0390036 |
|
|
|
519b771 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-3
|
|
|
519b771 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
519b771 |
|
|
|
a51f0a9 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
|
|
|
a51f0a9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a51f0a9 |
|
|
|
326fe69 |
* Thu Sep 25 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.0-1
|
|
|
326fe69 |
- Update to 2.3.0.
|
|
|
326fe69 |
|
|
|
e57bd5b |
* Fri Sep 5 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.3-1
|
|
|
e57bd5b |
- Update to 2.2.3.
|
|
|
e57bd5b |
|
|
|
120b1b6 |
* Fri Aug 22 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.2-1
|
|
|
120b1b6 |
- Update to 2.2.2.
|
|
|
120b1b6 |
|
|
|
10155ec |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
|
|
|
10155ec |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
10155ec |
|
|
|
c7d5b20 |
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.2.1-2
|
|
|
c7d5b20 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
c7d5b20 |
|
|
|
bd1d0a6 |
* Sat Mar 8 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.1-1
|
|
|
bd1d0a6 |
- Update to 2.2.1.
|
|
|
bd1d0a6 |
|
|
|
dff6e4d |
* Wed Feb 5 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.0-1
|
|
|
dff6e4d |
- Update to 2.2.0.
|
|
|
dff6e4d |
- Modernize spec file.
|
|
|
dff6e4d |
|
|
|
bc521a9 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
|
|
|
bc521a9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
bc521a9 |
|
|
|
8cb5f52 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
|
|
|
8cb5f52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
8cb5f52 |
|
|
|
e01b86c |
* Thu Oct 4 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.0-1
|
|
|
e01b86c |
- Update to 2.1.0.
|
|
|
e01b86c |
|
|
|
d50e965 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.0.1-2
|
|
|
d50e965 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
d50e965 |
|
|
|
498ac42 |
* Fri Jul 27 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.1-1
|
|
|
498ac42 |
- Update to 2.0.1.
|
|
|
498ac42 |
|
|
|
8f362b2 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
|
|
|
8f362b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
8f362b2 |
|
|
|
3531043 |
* Tue Jun 26 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.0-1
|
|
|
3531043 |
- Update to 2.0.0.
|
|
|
3531043 |
|
|
|
7404ff2 |
* Sat May 19 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.2-2
|
|
|
7404ff2 |
- Skip pygments test on rhel6.
|
|
|
7404ff2 |
|
|
|
b248d0f |
* Sat May 19 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.2-1
|
|
|
b248d0f |
- Update to 1.4.2.
|
|
|
b248d0f |
- Build python3 subpackage.
|
|
|
b248d0f |
|
|
|
2a0c9f6 |
* Fri Mar 16 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.1.1-1
|
|
|
2a0c9f6 |
- Update to 1.1.1.
|
|
|
2a0c9f6 |
|
|
|
04b882c |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.19-2
|
|
|
04b882c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
04b882c |
|
|
|
4e3dbbd |
* Thu Jul 21 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.19-1
|
|
|
4e3dbbd |
- Update to 1.0.1.19.
|
|
|
4e3dbbd |
- Drop patch applied upstream.
|
|
|
4e3dbbd |
- Update project URL.
|
|
|
4e3dbbd |
- Update macros, use %%global.
|
|
|
4e3dbbd |
- Update %%doc.
|
|
|
4e3dbbd |
- Do not run tests known to fail.
|
|
|
4e3dbbd |
|
|
|
ef06d72 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.17-3
|
|
|
ef06d72 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
ef06d72 |
|
|
|
10d786a |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.1.17-2
|
|
|
10d786a |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
10d786a |
|
|
|
37d4ff9 |
* Thu Jun 3 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.17-1
|
|
|
37d4ff9 |
- Update to 1.0.17.
|
|
|
37d4ff9 |
- Add patch for failing test.
|
|
|
37d4ff9 |
|
|
|
37d4ff9 |
* Tue Dec 29 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.16-2
|
|
|
37d4ff9 |
- Patch for older pygments on rhel no longer needed, pygments has been
|
|
|
37d4ff9 |
updated in EPEL.
|
|
|
37d4ff9 |
|
|
|
ef8fb43 |
* Fri Dec 18 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.16-1
|
|
|
ef8fb43 |
- Update to 1.0.1.16.
|
|
|
ef8fb43 |
|
|
|
682bd89 |
* Thu Oct 8 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.15-1
|
|
|
682bd89 |
- Update to 1.0.1.15. Fixes three issues, two of them being
|
|
|
682bd89 |
security-related.
|
|
|
682bd89 |
|
|
|
23fba25 |
* Wed Sep 2 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.13-3
|
|
|
23fba25 |
- Patch syntax_color test case for older pygments version on rhel.
|
|
|
23fba25 |
|
|
|
093b115 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.13-2
|
|
|
093b115 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
093b115 |
|
|
|
d14c302 |
* Sat Jul 11 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.13-1
|
|
|
d14c302 |
- Update to 1.0.1.13.
|
|
|
d14c302 |
|
|
|
20a28ea |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.11-3
|
|
|
20a28ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
20a28ea |
|
|
|
957fc6a |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.1.11-2
|
|
|
957fc6a |
- Rebuild for Python 2.6
|
|
|
957fc6a |
|
|
|
4a70432 |
* Wed Oct 1 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.11-1
|
|
|
4a70432 |
- Update to 1.0.11, also fixes the syntax_color test for the latest
|
|
|
4a70432 |
Pygments (should fix FTBFS bug 465049).
|
|
|
4a70432 |
|
|
|
4a70432 |
* Fri Sep 26 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.10-1
|
|
|
4a70432 |
- Update to 1.0.1.10.
|
|
|
4a70432 |
|
|
|
949bb82 |
* Fri Sep 12 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.9-1
|
|
|
949bb82 |
- Update to 1.0.1.9.
|
|
|
949bb82 |
|
|
|
4ffeb90 |
* Thu Sep 11 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.8-1
|
|
|
4ffeb90 |
- Update to 1.0.1.8.
|
|
|
4ffeb90 |
- Simplify the cmdline wrapper.
|
|
|
4ffeb90 |
|
|
|
d11da99 |
* Tue Sep 9 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1.7-1
|
|
|
d11da99 |
- New package.
|