File python-Markdown.spec of Package python-Markdown

#norootforbuild
#
%define real_name Markdown
#
#
Name:           python-%{real_name}
Group:          Development/Libraries/Python
Version:        2.0.3
Release:        0
License:        BSD
Summary:        Python implementation of Markdown
Autoreqprov:    on
Source:         %{real_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
Url:            http://www.freewisdom.org/projects/python-markdown
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif

#TODO if pyver is < 2.5 require elementtree

%description
This is a Python implementation of John Gruber's Markdown. It is almost completely compliant with the reference implementation. See Features for information on what exactly supported and what is not. Additional features are supported by the Available_Extensions.

%prep
%setup -n %{real_name}-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc docs PKG-INFO

%changelog

* Sun Nov 23 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 2.0.3
- Initial build for tg21

openSUSE Build Service is sponsored by