# # spec file for package python-jaraco.text # # Copyright (c) 2021 SUSE LLC # # 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define skip_python36 1 %define skip_python39 1 Name: python-jaraco.text Version: 3.6.0 Release: 1.3 Summary: Tools to work with text License: MIT URL: https://github.com/jaraco/jaraco.text Source0: https://files.pythonhosted.org/packages/source/j/jaraco.text/jaraco.text-%{version}.tar.gz BuildRequires: %{python_module importlib-resources} BuildRequires: %{python_module jaraco.base >= 6.1} BuildRequires: %{python_module jaraco.functools} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-importlib_resources Requires: python-jaraco.base >= 6.1 Requires: python-jaraco.functools Requires: python-six BuildArch: noarch %python_subpackages %description jaraco.text Tools for working with text. %prep %setup -q -n jaraco.text-%{version} sed -i 's/--flake8 --black --cov//' pytest.ini rm -rf jaraco.text.egg-info %build %python_build %install %python_install %python_expand install -Dm 0644 jaraco/text/*.txt %{buildroot}%{$python_sitelib}/jaraco/text/ %{python_expand rm -f %{buildroot}%{$python_sitelib}/jaraco/__init__.py* \ %{buildroot}%{$python_sitelib}/jaraco/__pycache__/__init__.* $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/jaraco/ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/jaraco/ %fdupes %{buildroot}%{$python_sitelib} } %check %pytest %files %{python_files} %license LICENSE %doc docs/*.rst README.rst CHANGES.rst %{python_sitelib}/jaraco.text-%{version}-py*.egg-info %{python_sitelib}/jaraco* %changelog * Tue Nov 16 2021 Steve Kowalik - Update to 3.6.0: * Fixed DeprecationWarning in importlib.resources.read_text. * #5: Fixed warning in docs builds. * Sat May 15 2021 Arun Persaud - specfile: * update copyright year * skip python2 - update to version 3.5.0: * Rely on PEP 420 for namespace package. - changes from version 3.4.0: * Added WordSet.trim* methods. - changes from version 3.3.0: * Require Python 3.6 or later. * Sat Mar 14 2020 Tomáš Chvátal - Fix build on older openSUSE releases as with py3.6 we need the importlib_resources too * Thu Jan 16 2020 Tomáš Chvátal - Update to 3.2.0: * Added normalize_newlines function. * Added wrap and unwrap functions and lorem_ipsum attribute containing the Lorem Ipsum sample text. * Tue Mar 26 2019 Tomáš Chvátal - Update to 3.0: * Remove collections dependency to avoid buildcycle - Remove multibuild as per above * Wed Feb 27 2019 Tomáš Chvátal - Use multibuild to avoid buildcycle * Tue Feb 26 2019 John Vandenberg - Add LICENSE - Compile manually due to switch to pkgutil namespace technique - Add fdupes - Remove bcond_with test, allowing tests suite to run - Add missing build dependency jaraco.collections - Remove undesirable build dependencies pytest-flake8, pytest-sugar and collective.checkdocs - Add missing runtime dependencies six, jaraco.base, jaraco.collections and jaraco.functools - Update to v2.0 * Switch to pkgutil namespace technique for the ``jaraco`` namespace. * Thu Aug 23 2018 dheidler@suse.de - Initial Package for v1.10.1