File python-markdown.spec of Package python-markdown
#
# spec file for package python-markdown (Version 2.0.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Summary: Python Markdown Implementation
Name: python-markdown
Version: 2.0.3
Release: 1
License: BSD
Group: Development/Libraries/Python
Url: http://freewisdom.org/projects/python-markdown/
Source: markdown-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
BuildRequires: python-devel
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%if %{?suse_version: %{suse_version} > 1010} %{!?suse_version:1}
BuildRequires: python-xml
Requires: python-xml
%else
BuildRequires: python-elementtree
Requires: python-elementtree
%endif
%description
This is a Python implementation of John Gruber's Markdown. It is almost
completely compliant with the reference implementation, though there are a few
known issues.
Authors:
--------
Waylan Limberg <waylan [at] gmail.com>
%prep
%setup -q -n markdown-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
%{__python} setup.py install \
--root="%{buildroot}" \
--prefix="%{_prefix}" \
--record-rpm=INSTALLED_FILES
%clean
%{__rm} -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-, root, root, 0755)
%doc docs/*
/usr/bin/markdown
%changelog