2014-10-10 12:02:53 +02:00
|
|
|
#
|
2015-02-09 16:31:21 +01:00
|
|
|
# spec file for package python-mistune
|
2014-10-10 12:02:53 +02:00
|
|
|
#
|
2015-04-07 15:11:47 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-10-10 12:02:53 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-mistune
|
2015-08-13 14:25:50 +02:00
|
|
|
Version: 0.7
|
2014-10-10 12:02:53 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: The fastest markdown parser in pure Python
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
2015-08-13 14:25:50 +02:00
|
|
|
Url: https://github.com/lepture/mistune
|
|
|
|
Source0: https://pypi.python.org/packages/source/m/mistune/mistune-%{version}.tar.gz
|
2015-04-07 15:11:47 +02:00
|
|
|
BuildRequires: fdupes
|
2015-02-09 16:31:21 +01:00
|
|
|
BuildRequires: python-devel
|
2015-08-13 14:25:50 +02:00
|
|
|
BuildRequires: python-nose
|
2014-10-10 12:02:53 +02:00
|
|
|
BuildRequires: python-setuptools
|
2015-08-13 14:25:50 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2014-10-10 12:02:53 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The fastest markdown parser in pure Python, inspired by marked.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n mistune-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2015-04-07 15:11:47 +02:00
|
|
|
%fdupes %{buildroot}
|
2014-10-10 12:02:53 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-04-13 15:20:43 +02:00
|
|
|
%doc LICENSE README.rst
|
2015-08-13 14:25:50 +02:00
|
|
|
%{python_sitelib}/*
|
2014-10-10 12:02:53 +02:00
|
|
|
|
|
|
|
%changelog
|