|
|
8a08c1 |
%global pypi_name jaraco.text
|
|
|
8a08c1 |
%global pkg_name jaraco-text
|
|
|
8a08c1 |
|
|
|
8a08c1 |
# Not all test dependencies are available yet
|
|
|
8a08c1 |
%bcond_with tests
|
|
|
8a08c1 |
%bcond_without docs
|
|
|
8a08c1 |
|
|
|
8a08c1 |
Name: python-%{pkg_name}
|
|
|
8a08c1 |
Version: 3.2.0
|
|
|
8a08c1 |
Release: 6%{?dist}
|
|
|
8a08c1 |
Summary: Module for text manipulation
|
|
|
8a08c1 |
|
|
|
8a08c1 |
License: MIT
|
|
|
8a08c1 |
URL: https://github.com/jaraco/jaraco.text
|
|
|
8a08c1 |
Source0: %{pypi_source}
|
|
|
8a08c1 |
BuildArch: noarch
|
|
|
8a08c1 |
|
|
|
8a08c1 |
BuildRequires: python3-devel
|
|
|
8a08c1 |
BuildRequires: python3dist(setuptools)
|
|
|
8a08c1 |
BuildRequires: python3dist(setuptools-scm)
|
|
|
8a08c1 |
#
|
|
|
8a08c1 |
#BuildRequires: python3dist(jaraco.functools)
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%if %{with tests}
|
|
|
8a08c1 |
BuildRequires: python3dist(pytest)
|
|
|
8a08c1 |
BuildRequires: python3dist(pytest-checkdocs)
|
|
|
8a08c1 |
BuildRequires: python3dist(pytest-flake8)
|
|
|
8a08c1 |
BuildRequires: python3dist(pytest-black-multipy)
|
|
|
8a08c1 |
BuildRequires: python3dist(pytest-cov)
|
|
|
8a08c1 |
# with tests
|
|
|
8a08c1 |
%endif
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%description
|
|
|
8a08c1 |
%{summary}
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%package -n python3-%{pkg_name}
|
|
|
8a08c1 |
Summary: %{summary}
|
|
|
8a08c1 |
%{?python_provide:%python_provide python3-%{pkg_name}}
|
|
|
8a08c1 |
Requires: python3dist(jaraco.functools)
|
|
|
8a08c1 |
Requires: python3dist(six)
|
|
|
8a08c1 |
Requires: python3-jaraco
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%description -n python3-%{pkg_name}
|
|
|
8a08c1 |
%{summary}
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%package -n python-%{pkg_name}-doc
|
|
|
8a08c1 |
Summary: jaraco.text documentation
|
|
|
8a08c1 |
BuildRequires: python3dist(sphinx)
|
|
|
8a08c1 |
BuildRequires: python3dist(rst.linker) >= 1.9
|
|
|
8a08c1 |
BuildRequires: python3dist(jaraco.packaging)
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%description -n python-%{pkg_name}-doc
|
|
|
8a08c1 |
Documentation for jaraco.text
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%prep
|
|
|
8a08c1 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
8a08c1 |
# Remove bundled egg-info
|
|
|
8a08c1 |
rm -rf %{pypi_name}.egg-info
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%build
|
|
|
8a08c1 |
%py3_build
|
|
|
8a08c1 |
%if %{with docs}
|
|
|
8a08c1 |
# generate html docs
|
|
|
8a08c1 |
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
|
|
8a08c1 |
# remove the sphinx-build leftovers
|
|
|
8a08c1 |
rm -rf html/.{doctrees,buildinfo}
|
|
|
8a08c1 |
# with docs
|
|
|
8a08c1 |
%endif
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%install
|
|
|
8a08c1 |
%py3_install
|
|
|
8a08c1 |
install jaraco/text/Lorem\ ipsum.txt \
|
|
|
8a08c1 |
%{buildroot}%{python3_sitelib}/jaraco/text/
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%if %{with tests}
|
|
|
8a08c1 |
%check
|
|
|
8a08c1 |
%pytest
|
|
|
8a08c1 |
# with tests
|
|
|
8a08c1 |
%endif
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%files -n python3-%{pkg_name}
|
|
|
8a08c1 |
%license LICENSE
|
|
|
8a08c1 |
%doc README.rst
|
|
|
8a08c1 |
# These excludes are provided by python3-jaraco
|
|
|
8a08c1 |
%exclude %{python3_sitelib}/jaraco/__init__*
|
|
|
8a08c1 |
%exclude %{python3_sitelib}/jaraco/__pycache__/__init__*
|
|
|
8a08c1 |
%{python3_sitelib}/jaraco/text/
|
|
|
8a08c1 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%if %{with docs}
|
|
|
8a08c1 |
%files -n python-%{pkg_name}-doc
|
|
|
8a08c1 |
%doc html
|
|
|
8a08c1 |
%license LICENSE
|
|
|
8a08c1 |
# with docs
|
|
|
8a08c1 |
%endif
|
|
|
8a08c1 |
|
|
|
8a08c1 |
%changelog
|
|
|
8a08c1 |
* Mon Oct 25 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 3.2.0-6
|
|
|
8a08c1 |
- Rebuild from lookaside
|
|
|
8a08c1 |
|
|
|
8a08c1 |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-5
|
|
|
8a08c1 |
- Second attempt - Rebuilt for
|
|
|
8a08c1 |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
8a08c1 |
|
|
|
8a08c1 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.2.0-4
|
|
|
8a08c1 |
- Rebuilt for Python 3.10
|
|
|
8a08c1 |
|
|
|
8a08c1 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
|
|
|
8a08c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
8a08c1 |
|
|
|
8a08c1 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
|
|
8a08c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
8a08c1 |
|
|
|
8a08c1 |
* Fri Mar 13 2020 Matthias Runge <mrunge@redhat.com> - 3.2.0-1
|
|
|
8a08c1 |
- Initial package.
|