2008-08-05 20:20:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-textile
|
|
|
|
#
|
2019-06-09 06:50:27 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-23 10:35:57 +00: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.
|
2013-10-24 11:15:53 +00:00
|
|
|
|
2019-06-09 06:50:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-08-05 20:20:18 +00:00
|
|
|
#
|
|
|
|
|
2013-10-24 11:15:53 +00:00
|
|
|
|
2017-06-06 13:43:54 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%bcond_without test
|
2011-09-23 10:35:57 +00:00
|
|
|
Name: python-textile
|
2019-06-09 06:50:27 +00:00
|
|
|
Version: 3.0.4
|
2011-09-23 10:35:57 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Textile processing for python
|
2016-08-29 07:47:34 +00:00
|
|
|
License: BSD-3-Clause
|
2011-09-23 10:35:57 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-06-06 13:43:54 +00:00
|
|
|
Url: http://github.com/textile/python-textile
|
2018-04-12 19:25:29 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/textile/textile-%{version}.tar.gz
|
2019-06-09 06:50:27 +00:00
|
|
|
Requires: python-Pillow
|
2017-11-17 10:44:29 +00:00
|
|
|
Requires: python-html5lib >= 0.999999999
|
|
|
|
Requires: python-six
|
|
|
|
Recommends: python-regex
|
2017-06-06 13:43:54 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module pytest-cov}
|
|
|
|
BuildRequires: %{python_module pytest-runner}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-11-17 10:44:29 +00:00
|
|
|
%if %{with test}
|
|
|
|
# not needed as the test requires internet connection
|
2019-06-09 06:50:27 +00:00
|
|
|
#BuildRequires: %%{python_module Pillow}
|
2017-11-17 10:44:29 +00:00
|
|
|
BuildRequires: %{python_module html5lib >= 0.999999999}
|
|
|
|
%endif
|
2017-06-06 13:43:54 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
|
|
|
%python_subpackages
|
2008-08-05 20:20:18 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a Python implementation of the Textile
|
|
|
|
(http://textism.com/tools/textile) markup language.
|
|
|
|
|
|
|
|
Textile is a XHTML generator using a simple markup developed by Dean
|
|
|
|
Allen. This is a Python port with support for code validation, itex to
|
|
|
|
MathML translation, Python code coloring and much more.
|
|
|
|
|
|
|
|
%prep
|
2017-11-18 21:49:20 +00:00
|
|
|
%setup -q -n textile-%{version}
|
2008-08-05 20:20:18 +00:00
|
|
|
|
|
|
|
%build
|
2017-06-06 13:43:54 +00:00
|
|
|
%python_build
|
|
|
|
|
2017-11-17 10:44:29 +00:00
|
|
|
%if %{with test}
|
2017-06-06 13:43:54 +00:00
|
|
|
%check
|
2017-06-10 08:34:23 +00:00
|
|
|
%python_exec setup.py test
|
2017-11-17 10:44:29 +00:00
|
|
|
%endif
|
2008-08-05 20:20:18 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-06 13:43:54 +00:00
|
|
|
%python_install
|
|
|
|
%fdupes %buildroot
|
2008-08-05 20:20:18 +00:00
|
|
|
|
2017-06-06 13:43:54 +00:00
|
|
|
%files %{python_files}
|
2011-09-23 10:35:57 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitelib}/*
|
2017-06-06 13:43:54 +00:00
|
|
|
%python3_only %{_bindir}/pytextile
|
2016-08-29 07:47:34 +00:00
|
|
|
|
2011-09-23 10:35:57 +00:00
|
|
|
%changelog
|