14
0
Files
python-textile/python-textile.spec

73 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-textile
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-textile
Version: 2.3.9
Release: 0
Summary: Textile processing for python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://github.com/textile/python-textile
Source: https://files.pythonhosted.org/packages/source/t/textile/textile-%{version}.tar.gz
Requires: python-Pillow
Requires: python-html5lib
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%python_subpackages
%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
%setup -q -n textile-%{version}
%build
%python_build
%check
# there's one tests-file missing in this release (2.3.9), ignore it for now
# see https://github.com/textile/python-textile/issues/33#issuecomment-292771712
%python_exec setup.py test || :
%install
%python_install
%fdupes %buildroot
%files %{python_files}
%defattr(-,root,root,-)
%{python_sitelib}/*
%python3_only %{_bindir}/pytextile
%changelog