|
 |
4b92d5 |
%global pypi_name jaraco_text
|
|
 |
4b92d5 |
%global pkg_name jaraco-text
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
# there's an issue with sphinx dep resolution
|
|
 |
4b92d5 |
# turining off docs build for now
|
|
 |
4b92d5 |
%bcond_with docs
|
|
 |
4b92d5 |
# Not all test dependencies are available yet
|
|
 |
4b92d5 |
%bcond_with tests
|
|
 |
4b92d5 |
# Change the build backend in EPEL9 because `setuptools>=61.2`
|
|
 |
4b92d5 |
# is needed for PEP621
|
|
 |
4b92d5 |
%if 0%{?epel} == 9
|
|
 |
4b92d5 |
%bcond_without hatch
|
|
 |
4b92d5 |
%else
|
|
 |
4b92d5 |
%bcond_with hatch
|
|
 |
4b92d5 |
%endif
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
Name: python-%{pkg_name}
|
|
 |
4b92d5 |
Version: 4.0.0
|
|
 |
4b92d5 |
Release: 3%{?dist}
|
|
 |
4b92d5 |
Summary: Module for text manipulation
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
License: MIT
|
|
 |
4b92d5 |
URL: https://github.com/jaraco/jaraco.text
|
|
 |
4b92d5 |
Source0: %{pypi_source}
|
|
 |
4b92d5 |
BuildArch: noarch
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
BuildRequires: python3-devel
|
|
 |
4b92d5 |
%if %{with hatch}
|
|
 |
4b92d5 |
BuildRequires: tomcli
|
|
 |
4b92d5 |
%endif
|
|
 |
4b92d5 |
%generate_buildrequires
|
|
 |
4b92d5 |
%pyproject_buildrequires
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%if %{with tests}
|
|
 |
4b92d5 |
BuildRequires: python3dist(pytest)
|
|
 |
4b92d5 |
BuildRequires: python3dist(pytest-checkdocs)
|
|
 |
4b92d5 |
BuildRequires: python3dist(pytest-flake8)
|
|
 |
4b92d5 |
BuildRequires: python3dist(pytest-black-multipy)
|
|
 |
4b92d5 |
BuildRequires: python3dist(pytest-cov)
|
|
 |
4b92d5 |
# with tests
|
|
 |
4b92d5 |
%endif
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%description
|
|
 |
4b92d5 |
%{summary}
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%package -n python3-%{pkg_name}
|
|
 |
4b92d5 |
Summary: %{summary}
|
|
 |
4b92d5 |
%{?python_provide:%python_provide python3-%{pkg_name}}
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%description -n python3-%{pkg_name}
|
|
 |
4b92d5 |
%{summary}
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%package -n python-%{pkg_name}-doc
|
|
 |
4b92d5 |
Summary: jaraco.text documentation
|
|
 |
4b92d5 |
BuildRequires: python3dist(sphinx)
|
|
 |
4b92d5 |
BuildRequires: python3dist(rst-linker) >= 1.9
|
|
 |
4b92d5 |
BuildRequires: python3dist(jaraco-packaging)
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%description -n python-%{pkg_name}-doc
|
|
 |
4b92d5 |
Documentation for jaraco.text
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%prep
|
|
 |
4b92d5 |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
 |
4b92d5 |
# Remove bundled egg-info
|
|
 |
4b92d5 |
rm -rf %{pypi_name}.egg-info
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%if %{with hatch}
|
|
 |
4b92d5 |
tomcli set pyproject.toml lists str "build-system.requires" "hatchling" "hatch-vcs"
|
|
 |
4b92d5 |
tomcli set pyproject.toml str "build-system.build-backend" "hatchling.build"
|
|
 |
4b92d5 |
tomcli set pyproject.toml str "tool.hatch.version.source" "vcs"
|
|
 |
4b92d5 |
tomcli set pyproject.toml lists str "tool.hatch.build.targets.wheel.packages" "jaraco"
|
|
 |
4b92d5 |
%endif
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%build
|
|
 |
4b92d5 |
%pyproject_wheel
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%if %{with docs}
|
|
 |
4b92d5 |
# generate html docs
|
|
 |
4b92d5 |
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
|
 |
4b92d5 |
# remove the sphinx-build leftovers
|
|
 |
4b92d5 |
rm -rf html/.{doctrees,buildinfo}
|
|
 |
4b92d5 |
# with docs
|
|
 |
4b92d5 |
%endif
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%install
|
|
 |
4b92d5 |
%pyproject_install
|
|
 |
4b92d5 |
install -pm 0644 jaraco/text/Lorem\ ipsum.txt \
|
|
 |
4b92d5 |
%{buildroot}%{python3_sitelib}/jaraco/text/
|
|
 |
4b92d5 |
%pyproject_save_files jaraco
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%if 0%{?with_tests}
|
|
 |
4b92d5 |
%check
|
|
 |
4b92d5 |
%pytest
|
|
 |
4b92d5 |
# with tests
|
|
 |
4b92d5 |
%endif
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%files -n python3-%{pkg_name} -f %{pyproject_files}
|
|
 |
4b92d5 |
%license LICENSE
|
|
 |
4b92d5 |
%doc README.rst
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%if %{with docs}
|
|
 |
4b92d5 |
%files -n python-%{pkg_name}-doc
|
|
 |
4b92d5 |
%doc html
|
|
 |
4b92d5 |
%license LICENSE
|
|
 |
4b92d5 |
# with docs
|
|
 |
4b92d5 |
%endif
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
%changelog
|
|
 |
4b92d5 |
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Sat Oct 05 2024 Ondrej Mosnáček <omosnacek@gmail.com> - 4.0.0-2
|
|
 |
4b92d5 |
- Fix the install command to comply with guidelines
|
|
 |
4b92d5 |
- Use %%{pyproject_[save_]files}
|
|
 |
4b92d5 |
- Fix EPEL9 build
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Thu Aug 01 2024 Dan Radez <dradez@redhat.com> - 4.0.0-1
|
|
 |
4b92d5 |
- update to upstream 4.0.0 rhbz#2300119
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.0-2
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Mon Jul 15 2024 Dan Radez <dradez@redhat.com> - 3.14.0-1
|
|
 |
4b92d5 |
- update to upstream 3.14.0 rhbz#2292660
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 3.12.0-4
|
|
 |
4b92d5 |
- Rebuilt for Python 3.13
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-3
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-2
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Wed Nov 29 2023 Dan Radez <dradez@redhat.com> - 3.12.0-1
|
|
 |
4b92d5 |
- update to upstream 3.12 rhbz#2251804
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Wed Aug 16 2023 Dan Radez <dradez@redhat.com> - 3.11.1-1
|
|
 |
4b92d5 |
- update to upstream 3.11 rhbz#2232234
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-13
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 3.2.0-12
|
|
 |
4b92d5 |
- Rebuilt for Python 3.12
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-11
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-10
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.2.0-9
|
|
 |
4b92d5 |
- Rebuilt for Python 3.11
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Wed May 04 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.2.0-8
|
|
 |
4b92d5 |
- Backport patch to fix DeprecationWarning
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Thu Apr 07 2022 Dan Radez - 3.2.0-7
|
|
 |
4b92d5 |
- Switched to pyproject macros
|
|
 |
4b92d5 |
- disabled docs. Sphinx can't resolve deps properly
|
|
 |
4b92d5 |
- Fixes: rhbz#2069541
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-6
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-5
|
|
 |
4b92d5 |
- Second attempt - Rebuilt for
|
|
 |
4b92d5 |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.2.0-4
|
|
 |
4b92d5 |
- Rebuilt for Python 3.10
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
|
 |
4b92d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
4b92d5 |
|
|
 |
4b92d5 |
* Fri Mar 13 2020 Matthias Runge <mrunge@redhat.com> - 3.2.0-1
|
|
 |
4b92d5 |
- Initial package.
|