Update to 2.2.0.

- Update url.
- Add patch from upstream git for failing test.
This commit is contained in:
Thomas Moschny 2012-07-14 18:25:58 +02:00
parent 9fc82b50fb
commit 802610802b
3 changed files with 15 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
Markdown-2.0.3.tar.gz Markdown-2.0.3.tar.gz
/Markdown-2.1.0.tar.gz /Markdown-2.1.0.tar.gz
/Markdown-2.1.1.tar.gz /Markdown-2.1.1.tar.gz
/Markdown-2.2.0.tar.gz

View File

@ -8,13 +8,15 @@
%define srcname Markdown %define srcname Markdown
Name: python-markdown Name: python-markdown
Version: 2.1.1 Version: 2.2.0
Release: 1%{?dist} Release: 1%{?dist}
Summary: Markdown implementation in Python Summary: Markdown implementation in Python
Group: Development/Languages Group: Development/Languages
License: BSD License: BSD
URL: http://www.freewisdom.org/projects/python-markdown/ URL: http://packages.python.org/Markdown/
Source0: http://pypi.python.org/packages/source/M/%{srcname}/%{srcname}-%{version}.tar.gz Source0: http://pypi.python.org/packages/source/M/%{srcname}/%{srcname}-%{version}.tar.gz
# commit 5b3e724f
Patch0: Markdown-2.2.0-extension-api.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: python-devel BuildRequires: python-devel
@ -52,11 +54,15 @@ there are a few known issues.
%prep %prep
%setup -q -n %{srcname}-%{version} %setup -q -n %{srcname}-%{version}
%patch0 -p1
# remove shebangs # remove shebangs
find markdown -type f -name '*.py' \ find markdown -type f -name '*.py' \
-exec sed -i -e '/^#!/{1D}' {} \; -exec sed -i -e '/^#!/{1D}' {} \;
# fix line-ending
sed -i 's/\r//' docs/release-2.2.0.txt
%if 0%{?with_python3} %if 0%{?with_python3}
cp -a . %{py3dir} cp -a . %{py3dir}
%endif # with_python3 %endif # with_python3
@ -125,6 +131,11 @@ rm -rf %{buildroot}
%changelog %changelog
* Sat Jul 14 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.0-1
- Update to 2.2.0.
- Update url.
- Add patch from upstream git for failing test.
* Wed Feb 8 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.1-1 * Wed Feb 8 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.1-1
- Update to 2.1.1. - Update to 2.1.1.

View File

@ -1 +1 @@
3f82d30c488e4b88b8f86eb1c9ad0da7 Markdown-2.1.1.tar.gz 28dd4f54894b3af2615b08f50d2ce4bf Markdown-2.2.0.tar.gz