Blame SPECS/python-jaraco-packaging.spec

4b1556
# This package is interdependant on rst-linker to build docs
4b1556
# will build both with out docs and add docs in later
4b1556
%bcond_with docs 
4b1556
4b1556
Name:           python-jaraco-packaging
4b1556
Version:        10.2.3
4b1556
Release:        1%{?dist}
4b1556
Summary:        Tools to supplement packaging Python releases
4b1556
4b1556
License:        MIT
4b1556
URL:            https://github.com/jaraco/jaraco.packaging
4b1556
Source0:        %{pypi_source jaraco_packaging}
4b1556
BuildArch:      noarch
4b1556
4b1556
BuildRequires:  python3-devel
4b1556
BuildRequires:  tomcli
4b1556
4b1556
%description
4b1556
Tools for packaging.dependency_tree A dist-utils command for reporting the
4b1556
dependency tree as resolved by setup-tools. Use after installing a package.show
4b1556
A dist-utils command for reporting the attributes of a distribution, such as the
4b1556
version or author name.
4b1556
4b1556
%package -n python3-jaraco
4b1556
Summary: A Parent package for jaraco's parent dir and init file.
4b1556
4b1556
%description -n python3-jaraco
4b1556
A Parent package for jaraco's parent dir and init file.
4b1556
4b1556
%package -n python3-jaraco-packaging
4b1556
Summary:        %{summary}
4b1556
4b1556
4b1556
%description -n python3-jaraco-packaging
4b1556
Tools for packaging.dependency_tree A dist-utils command for reporting the
4b1556
dependency tree as resolved by setup-tools. Use after installing a package.show
4b1556
A dist-utils command for reporting the attributes of a distribution, such as the
4b1556
version or author name.
4b1556
4b1556
4b1556
%if %{with docs}
4b1556
%package -n python-jaraco-packaging-doc
4b1556
Summary:        jaraco.packaging documentation
4b1556
4b1556
BuildRequires:  python3dist(sphinx)
4b1556
BuildRequires:  python3dist(rst-linker)
4b1556
4b1556
%description -n python-jaraco-packaging-doc
4b1556
Documentation for jaraco.packaging
4b1556
%endif
4b1556
4b1556
4b1556
%prep
4b1556
%autosetup -n jaraco_packaging-%{version}
4b1556
# Remove dev-only dependencies. Upstream later split the `test` dependencies out of it
4b1556
# https://github.com/jaraco/skeleton/issues/138
4b1556
tomcli set pyproject.toml lists delitem "project.optional-dependencies.test" "pytest-.*"
4b1556
4b1556
4b1556
%generate_buildrequires
4b1556
%pyproject_buildrequires -x test
4b1556
4b1556
4b1556
%build
4b1556
%pyproject_wheel
4b1556
%if %{with docs}
4b1556
# generate html docs 
4b1556
# This package requires itself to build docs :/
4b1556
%{python3} -m sphinx docs html
4b1556
# remove the sphinx-build leftovers
4b1556
rm -rf html/.{doctrees,buildinfo}
4b1556
%endif
4b1556
4b1556
4b1556
%install
4b1556
%pyproject_install
4b1556
%pyproject_save_files -l jaraco
4b1556
4b1556
4b1556
%check
4b1556
# Overriding --import-mode because it was picking up `jaraco.packaging` as `packaging`
4b1556
# metadata.hunt_down_url, print-metadata.main: tests run `pip install` without `--no-build-isolation`
4b1556
# sphinx._load_metadata_from_wheel: test runs `pip download`
4b1556
%pytest --import-mode prepend -k "not (packaging.metadata.hunt_down_url \
4b1556
or packaging.print-metadata.main \
4b1556
or packaging.sphinx._load_metadata_from_wheel)"
4b1556
4b1556
4b1556
%files -n python3-jaraco
4b1556
%license LICENSE
4b1556
%doc README.rst
4b1556
%{python3_sitelib}/jaraco
4b1556
%exclude %{python3_sitelib}/jaraco/packaging
4b1556
4b1556
%files -n python3-jaraco-packaging -f %{pyproject_files}
4b1556
%doc README.rst
4b1556
4b1556
%if %{with docs}
4b1556
%files -n python-jaraco-packaging-doc
4b1556
%license LICENSE
4b1556
%doc html 
4b1556
%endif
4b1556
4b1556
4b1556
%changelog
4b1556
* Mon Jan 20 2025 Dan Radez <dradez@redhat.com> - 10.2.3-1
4b1556
- Update to upstream 10.2.3 RHBZ#2307448
4b1556
4b1556
* Sat Jan 18 2025 Romain Geissler <romain.geissler@amadeus.com> - 10.2.2-5
4b1556
- Fix build on EPEL 10.
4b1556
4b1556
* Wed Sep 18 2024 Cristian Le <cristian.le@mpsd.mpg.de> - 10.2.2-4
4b1556
- Simplify the packaging
4b1556
4b1556
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 10.2.2-2
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
4b1556
4b1556
* Sat Jul 13 2024 Dan Radez <dradez@redhat.com> - 10.2.2-1
4b1556
- Update to uppstream 10.2.2 rhbz#2293813
4b1556
4b1556
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 10.1.0-2
4b1556
- Rebuilt for Python 3.13
4b1556
4b1556
* Wed Apr 24 2024 Dan Radez <dradez@redhat.com> - 10.1.0-1
4b1556
- Update to uppstream 10.1.0 rhbz#2275765
4b1556
4b1556
* Tue Apr 02 2024 Dan Radez <dradez@redhat.com> - 9.5.0-1
4b1556
- Update to upstream 9.5.0 rhbz#2272430
4b1556
4b1556
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.3.0-4
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
4b1556
4b1556
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.3.0-3
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
4b1556
4b1556
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.3.0-2
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
4b1556
4b1556
* Tue Jul 11 2023 Dan Radez <dradez@redhat.com> - 9.3.0-1
4b1556
- update to 9.3.0 rhbz#2220826
4b1556
4b1556
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 9.2.0-2
4b1556
- Rebuilt for Python 3.12
4b1556
4b1556
* Mon May 15 2023 Dan Radez <dradez@redhat.com> - 9.2.0-1
4b1556
- update to 9.2.0 rhbz#2203493
4b1556
4b1556
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.1.2-2
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
4b1556
4b1556
* Thu Dec 29 2022 Dan Radez <dradez@redhat.com> - 9.1.2-1
4b1556
- update to 9.1.2 rhbz#2156792
4b1556
4b1556
* Fri Sep 30 2022 Dan Radez <dradez@redhat.com> - 9.1.1-1
4b1556
- Update to 9.1.1 rhbz#2131264
4b1556
4b1556
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.0-3
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
4b1556
4b1556
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 9.0.0-2
4b1556
- Rebuilt for Python 3.11
4b1556
4b1556
* Wed Mar 09 2022 Charalampos Stratakis <cstratak@redhat.com> - 9.0.0-1
4b1556
- Update to 9.0.0 and utilize pyproject macros
4b1556
- Fixes: rhbz#2053653
4b1556
4b1556
* Tue Feb 08 2022 Dan Radez <dradez@redhat.com> - 8.2.1-5
4b1556
- Don't remove egginfo
4b1556
4b1556
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 8.2.1-4
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4b1556
4b1556
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.2.1-3
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4b1556
4b1556
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 8.2.1-2
4b1556
- Rebuilt for Python 3.10
4b1556
4b1556
* Fri Apr 30 2021 Dan Radez <dradez@redhat.com> - 8.2.1-1
4b1556
- Update to 8.2.1
4b1556
4b1556
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.2.0-2
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4b1556
4b1556
* Tue Jan 05 2021 Dan Radez <dradez@redhat.com> - 8.2.0-1
4b1556
- Update to 8.2.0
4b1556
4b1556
* Wed Dec 09 2020 Dan Radez <dradez@redhat.com> - 8.1.1-1
4b1556
- Update to 8.1.1
4b1556
4b1556
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.0-3
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4b1556
4b1556
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 8.1.0-2
4b1556
- Rebuilt for Python 3.9
4b1556
4b1556
* Fri May 08 2020 Dan Radez <dradez@redhat.com> - 8.1.0-1
4b1556
- Update to 8.1
4b1556
4b1556
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-7
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4b1556
4b1556
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 6.2-6
4b1556
- Rebuilt for Python 3.8.0rc1 (#1748018)
4b1556
4b1556
* Tue Aug 20 2019 Miro Hrončok <mhroncok@redhat.com> - 6.2-5
4b1556
- Fix dependency on rst.linker
4b1556
4b1556
* Tue Aug 20 2019 Dan Radez <dradez@redhat.com> - 6.2-4
4b1556
- removing the sed . to _ it's confusing and not needed
4b1556
4b1556
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 6.2-3
4b1556
- Rebuilt for Python 3.8
4b1556
4b1556
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 6.2-2
4b1556
- Rebuilt for Python 3.8
4b1556
4b1556
* Fri Aug 16 2019 Dan Radez <dradez@redhat.com> - 6.2-1
4b1556
- updating to 6.2
4b1556
4b1556
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-8
4b1556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4b1556
4b1556
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 6.1-7
4b1556
- fixing egg info
4b1556
4b1556
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 6.1-6
4b1556
- Updating doc reqs in prep to enable doc build
4b1556
4b1556
* Fri Apr 05 2019 Dan Radez <dradez@redhat.com> - 6.1-5
4b1556
- fixing python-jaraco-packaging requires... again
4b1556
4b1556
* Fri Apr 05 2019 Dan Radez <dradez@redhat.com> - 6.1-4
4b1556
- fixing python-jaraco-packaging requires.
4b1556
4b1556
* Fri Apr 05 2019 Dan Radez <dradez@redhat.com> - 6.1-3
4b1556
- adding python-jaraco subpackage.
4b1556
4b1556
* Fri Apr 05 2019 Dan Radez <dradez@redhat.com> - 6.1-2
4b1556
- adding py3 subpackage.
4b1556
4b1556
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 6.1-1
4b1556
- Initial package.