1
0
Files
python-jaraco.text/python-jaraco.text.spec
T

84 lines
2.7 KiB
RPMSpec
Raw Normal View History

2018-08-28 08:24:57 +00:00
#
# spec file for package python-jaraco.text
#
2023-05-09 21:30:37 +00:00
# Copyright (c) 2023 SUSE LLC
2018-08-28 08:24: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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2018-08-28 08:24:57 +00:00
#
2023-06-01 20:38:36 +00:00
%{?sle15_python_module_pythons}
2019-03-26 14:35:21 +00:00
Name: python-jaraco.text
2023-12-17 01:45:13 +00:00
Version: 3.12.0
2018-08-28 08:24:57 +00:00
Release: 0
Summary: Tools to work with text
License: MIT
2019-02-27 19:08:42 +00:00
URL: https://github.com/jaraco/jaraco.text
2018-08-28 08:24:57 +00:00
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.text/jaraco.text-%{version}.tar.gz
BuildRequires: %{python_module autocommand}
BuildRequires: %{python_module importlib_resources if %python-base < 3.9}
BuildRequires: %{python_module inflect}
BuildRequires: %{python_module jaraco.context >= 4.1}
2019-03-26 14:35:21 +00:00
BuildRequires: %{python_module jaraco.functools}
BuildRequires: %{python_module more-itertools}
BuildRequires: %{python_module pip}
2019-03-26 14:35:21 +00:00
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
2018-08-28 08:24:57 +00:00
BuildRequires: python-rpm-macros
%if 0%{?python_version_nodots} < 39
Requires: python-importlib_resources
%endif
Requires: python-autocommand
Requires: python-inflect
Requires: python-jaraco.context >= 4.1
Requires: python-jaraco.functools
Requires: python-more-itertools
2019-02-27 19:08:42 +00:00
BuildArch: noarch
2018-08-28 08:24:57 +00:00
%python_subpackages
%description
This package provides handy routines for dealing with text, such as
wrapping, substitution, trimming, stripping, prefix and suffix removal,
line continuation, indentation, comment processing, identifier processing,
values parsing, case insensitive comparison, and more.
2018-08-28 08:24:57 +00:00
%prep
%setup -q -n jaraco.text-%{version}
%build
%pyproject_wheel
2018-08-28 08:24:57 +00:00
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
2018-08-28 08:24:57 +00:00
%check
# no pathlib2 in the distro
rm conftest.py
%{python_expand # workaround for gh#jaraco/jaraco.text#10 without pathlib2
if [ %{$python_version_nodots} -lt 310 ]; then
$python_donttest="or read_newlines or report_newlines"
fi
}
%pytest -k "not (dummyprefix ${$python_donttest})"
2018-08-28 08:24:57 +00:00
%files %{python_files}
%license LICENSE
2023-12-17 01:45:13 +00:00
%doc README.rst
%{python_sitelib}/jaraco/text
%{python_sitelib}/jaraco.text-%{version}.dist-info
2018-08-28 08:24:57 +00:00
%changelog