2008-08-05 20:20:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-textile
|
|
|
|
#
|
2020-01-18 10:53:05 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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-%{**}}
|
2020-01-18 10:53:05 +00:00
|
|
|
%define skip_python2 1
|
2020-05-18 13:13:13 +00:00
|
|
|
%bcond_without test
|
2011-09-23 10:35:57 +00:00
|
|
|
Name: python-textile
|
2020-02-01 15:16:01 +00:00
|
|
|
Version: 4.0.1
|
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
|
2020-05-18 13:13:13 +00:00
|
|
|
URL: https://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
|
2020-05-18 13:13:13 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-06-09 06:50:27 +00:00
|
|
|
Requires: python-Pillow
|
2020-01-18 10:53:05 +00:00
|
|
|
Requires: python-html5lib >= 1.0.1
|
2017-11-17 10:44:29 +00:00
|
|
|
Requires: python-six
|
2020-05-18 13:13:13 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2017-11-17 10:44:29 +00:00
|
|
|
Recommends: python-regex
|
|
|
|
%if %{with test}
|
2020-01-18 10:53:05 +00:00
|
|
|
BuildRequires: %{python_module html5lib >= 1.0.1}
|
|
|
|
BuildRequires: %{python_module pytest-cov}
|
|
|
|
BuildRequires: %{python_module pytest-runner}
|
|
|
|
BuildRequires: %{python_module regex >= 1.0}
|
2017-11-17 10:44:29 +00:00
|
|
|
%endif
|
2017-06-06 13:43:54 +00:00
|
|
|
%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
|
2020-05-18 13:13:13 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pytextile
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative pytextile
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative pytextile
|
2008-08-05 20:20:18 +00:00
|
|
|
|
2017-06-06 13:43:54 +00:00
|
|
|
%files %{python_files}
|
2020-05-18 13:13:13 +00:00
|
|
|
%license LICENSE.txt
|
2011-09-23 10:35:57 +00:00
|
|
|
%{python_sitelib}/*
|
2020-05-18 13:13:13 +00:00
|
|
|
%python_alternative %{_bindir}/pytextile
|
2016-08-29 07:47:34 +00:00
|
|
|
|
2011-09-23 10:35:57 +00:00
|
|
|
%changelog
|