Blame SPECS/python-constantly.spec

1c8fb6
%bcond_with bootstrap
1c8fb6
1c8fb6
%global srcname constantly
1c8fb6
1c8fb6
%global common_description %{expand:
1c8fb6
A library that provides symbolic constant support. It includes collections and
1c8fb6
constants with text, numeric, and bit flag values. Originally
1c8fb6
twisted.python.constants from the Twisted project.}
1c8fb6
1c8fb6
Name:           python-%{srcname}
1c8fb6
Version:        23.10.4
1c8fb6
Release:        5%{?dist}
1c8fb6
Summary:        Symbolic constants in Python
1c8fb6
1c8fb6
License:        MIT
1c8fb6
URL:            https://github.com/twisted/constantly
1c8fb6
Source0:        %url/archive/%{version}/%{srcname}-%{version}.tar.gz
1c8fb6
1c8fb6
BuildArch:      noarch
1c8fb6
BuildRequires:  python3-devel
1c8fb6
BuildRequires:  python3dist(sphinx-rtd-theme)
1c8fb6
1c8fb6
# the tests are enabled by default but can be disabled
1c8fb6
# to avoid a circular dependency on twisted->constantly
1c8fb6
%if %{with bootstrap}
1c8fb6
BuildRequires:  python3dist(twisted)
1c8fb6
%endif
1c8fb6
1c8fb6
Patch:          disable-pip-in-tox.patch
1c8fb6
1c8fb6
1c8fb6
%description %{common_description}
1c8fb6
1c8fb6
%package -n     python3-%{srcname}
1c8fb6
Summary:        %{summary}
1c8fb6
1c8fb6
%description -n python3-%{srcname} %{common_description}
1c8fb6
1c8fb6
%package doc
1c8fb6
Summary:        Documentation for %{name}
1c8fb6
1c8fb6
%description doc
1c8fb6
%{common_description}
1c8fb6
1c8fb6
This is the documentation package for %{name}.
1c8fb6
1c8fb6
%prep
1c8fb6
%autosetup -p1 -n %{srcname}-%{version}
1c8fb6
1c8fb6
%generate_buildrequires
1c8fb6
%pyproject_buildrequires
1c8fb6
1c8fb6
%build
1c8fb6
%pyproject_wheel
1c8fb6
1c8fb6
sphinx-build docs html
1c8fb6
# remove the sphinx-build leftovers
1c8fb6
rm -rf html/.{doctrees,buildinfo}
1c8fb6
1c8fb6
%install
1c8fb6
%pyproject_install
1c8fb6
%pyproject_save_files %{srcname}
1c8fb6
1c8fb6
%check
1c8fb6
%if %{with bootstrap}
1c8fb6
%pyproject_check_import
1c8fb6
%tox
1c8fb6
%else
1c8fb6
%py3_check_import %{srcname}
1c8fb6
%endif
1c8fb6
1c8fb6
%files -n python3-%{srcname} -f %{pyproject_files}
1c8fb6
1c8fb6
%files -n python-%{srcname}-doc
1c8fb6
%doc html
1c8fb6
%license LICENSE
1c8fb6
1c8fb6
%changelog
1c8fb6
* Thu Feb 06 2025 Joel Capitao <jcapitao@redhat.com> - 23.10.4-5
1c8fb6
- Enable bootstrap mode
1c8fb6
1c8fb6
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 23.10.4-4
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
1c8fb6
1c8fb6
* Fri Jan 03 2025 Jonathan Wright <jonathan@almalinux.org> - 23.10.4-3
1c8fb6
- fix bootstrapping conditionals to what koji allows us to define in side
1c8fb6
  tags
1c8fb6
1c8fb6
* Fri Jan 03 2025 Jonathan Wright <jonathan@almalinux.org> - 23.10.4-2
1c8fb6
- fix conditional logic for bootstrap
1c8fb6
1c8fb6
* Fri Jan 03 2025 Jonathan Wright <jonathan@almalinux.org> - 23.10.4-1
1c8fb6
- update to 24.10.4 rhbz#2246791
1c8fb6
1c8fb6
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-33
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
1c8fb6
1c8fb6
* Sun Jun 09 2024 Python Maint <python-maint@redhat.com> - 15.1.0-32
1c8fb6
- Rebuilt for Python 3.13
1c8fb6
1c8fb6
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 15.1.0-31
1c8fb6
- Bootstrap for Python 3.13
1c8fb6
1c8fb6
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-30
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
1c8fb6
1c8fb6
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-29
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
1c8fb6
1c8fb6
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-28
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
1c8fb6
1c8fb6
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 15.1.0-27
1c8fb6
- Rebuilt for Python 3.12
1c8fb6
1c8fb6
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 15.1.0-26
1c8fb6
- Bootstrap for Python 3.12
1c8fb6
1c8fb6
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-25
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
1c8fb6
1c8fb6
* Wed Sep 21 2022 Miro Hrončok <miro@hroncok.cz> - 15.1.0-24
1c8fb6
- Introduce a tests %%bcond to avoid a bootstrap loop
1c8fb6
1c8fb6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-23
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1c8fb6
1c8fb6
* Sun Jul 03 2022 Robert-André Mauchin <zebob.m@gmail.com> - 15.1.0-22
1c8fb6
- Minor fixes
1c8fb6
1c8fb6
* Tue Jun 21 2022 Robert-André Mauchin <zebob.m@gmail.com> - 15.1.0-21
1c8fb6
- Remove deletion of egg.info
1c8fb6
1c8fb6
* Tue Jun 21 2022 Robert-André Mauchin <zebob.m@gmail.com> - 15.1.0-20
1c8fb6
- Convert to new Python guidelines
1c8fb6
1c8fb6
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 15.1.0-19
1c8fb6
- Rebuilt for Python 3.11
1c8fb6
1c8fb6
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-18
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1c8fb6
1c8fb6
* Sat Dec 18 2021 Robert-André Mauchin <zebob.m@gmail.com> - 15.1.0-17
1c8fb6
- Fix BR
1c8fb6
1c8fb6
* Sat Dec 18 2021 Robert-André Mauchin <zebob.m@gmail.com> - 15.1.0-16
1c8fb6
- Update versioneer.py to be compatible with Python 3.11 Close:
1c8fb6
  rhbz#2019059
1c8fb6
1c8fb6
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-14
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1c8fb6
1c8fb6
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 15.1.0-13
1c8fb6
- Rebuilt for Python 3.10
1c8fb6
1c8fb6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-12
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1c8fb6
1c8fb6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-11
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1c8fb6
1c8fb6
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 15.1.0-10
1c8fb6
- Rebuilt for Python 3.9
1c8fb6
1c8fb6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-9
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1c8fb6
1c8fb6
* Sun Oct 13 23:11:50 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 15.1.0-8
1c8fb6
- Drop Python 2 support (#1761209)
1c8fb6
1c8fb6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 15.1.0-7
1c8fb6
- Rebuilt for Python 3.8.0rc1 (#1748018)
1c8fb6
1c8fb6
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 15.1.0-6
1c8fb6
- Rebuilt for Python 3.8
1c8fb6
1c8fb6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-5
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1c8fb6
1c8fb6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-4
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1c8fb6
1c8fb6
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-3
1c8fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1c8fb6
1c8fb6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 15.1.0-2
1c8fb6
- Rebuilt for Python 3.7
1c8fb6
1c8fb6
* Mon May 14 2018 Robert-André Mauchin <zebob.m@gmail.com> - 15.1.0-1
1c8fb6
- Initial package.