|
|
d11da99 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
d11da99 |
|
|
|
d11da99 |
%define srcname markdown2
|
|
|
d11da99 |
|
|
|
d11da99 |
Name: python-%{srcname}
|
|
|
682bd89 |
Version: 1.0.1.15
|
|
|
682bd89 |
Release: 1%{?dist}
|
|
|
d11da99 |
Summary: A fast and complete Python implementation of Markdown
|
|
|
d11da99 |
Group: Development/Languages
|
|
|
d11da99 |
License: MIT
|
|
|
d11da99 |
URL: http://code.google.com/p/python-%{srcname}/
|
|
|
d14c302 |
Source0: http://pypi.python.org/packages/source/m/%{srcname}/%{srcname}-%{version}.zip
|
|
|
23fba25 |
# needed on rhel with python-pygments 0.9
|
|
|
23fba25 |
Patch0: markdown2-old-pygments.patch
|
|
|
d11da99 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
d11da99 |
BuildArch: noarch
|
|
|
d11da99 |
BuildRequires: python-devel
|
|
|
d11da99 |
BuildRequires: python-pygments
|
|
|
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 |
|
|
|
d11da99 |
%prep
|
|
|
d11da99 |
%setup0 -q -n %{srcname}-%{version}
|
|
|
23fba25 |
%if 0%{?rhel}
|
|
|
23fba25 |
%patch0 -p1
|
|
|
23fba25 |
%endif
|
|
|
d11da99 |
|
|
|
d11da99 |
|
|
|
d11da99 |
%build
|
|
|
d11da99 |
%{__python} setup.py build
|
|
|
d11da99 |
|
|
|
d11da99 |
|
|
|
d11da99 |
%install
|
|
|
d11da99 |
rm -rf %{buildroot}
|
|
|
d11da99 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
d11da99 |
|
|
|
d11da99 |
# remove shebangs and fix permissions
|
|
|
d11da99 |
find %{buildroot}%{python_sitelib} \( -name '*.py' -o -name 'py.*' \) \
|
|
|
d11da99 |
-exec sed -i '1{/^#!/d}' {} \; \
|
|
|
d11da99 |
-exec chmod u=rw,go=r {} \;
|
|
|
d11da99 |
|
|
|
d11da99 |
|
|
|
d11da99 |
%clean
|
|
|
d11da99 |
rm -rf %{buildroot}
|
|
|
d11da99 |
|
|
|
d11da99 |
|
|
|
d11da99 |
%check
|
|
|
d11da99 |
cd test
|
|
|
d11da99 |
%{__python} test.py
|
|
|
d11da99 |
|
|
|
d11da99 |
|
|
|
d11da99 |
%files
|
|
|
d11da99 |
%defattr(-,root,root,-)
|
|
|
d11da99 |
%doc CHANGES.txt LICENSE.txt README.txt TODO.txt
|
|
|
d11da99 |
%{python_sitelib}/*
|
|
|
d11da99 |
%{_bindir}/markdown2
|
|
|
d11da99 |
|
|
|
d11da99 |
|
|
|
d11da99 |
%changelog
|
|
|
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.
|