## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 34; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global _without_tests 1 %global srcname constantly %global common_description %{expand: A library that provides symbolic constant support. It includes collections and constants with text, numeric, and bit flag values. Originally twisted.python.constants from the Twisted project.} Name: python-%{srcname} Version: 15.1.0 Release: %autorelease Summary: Symbolic constants in Python License: MIT URL: https://github.com/twisted/constantly Source0: %url/archive/%{version}/%{srcname}-%{version}.tar.gz # Refresh versioneer.py now generated with versioneer 0.21 # https://github.com/twisted/constantly/pull/27 Patch0: 0001-Update-versioneer.py-to-0.21.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(sphinx-rtd-theme) # the tests are enabled by default but can be disabled # to avoid a circular dependency on twisted->constantly %bcond tests 1 %if %{with tests} BuildRequires: python3dist(twisted) %endif %description %{common_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{common_description} %package doc Summary: Documentation for %{name} %description doc %{common_description} This is the documentation package for %{name}. %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %{?with_tests:-t} %build %pyproject_wheel PYTHONPATH=%{pyproject_build_lib} sphinx-build docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %pyproject_install %pyproject_save_files %{srcname} %check %pyproject_check_import %if %{with tests} %tox %endif %files -n python3-%{srcname} -f %{pyproject_files} %files -n python-%{srcname}-doc %doc html %license LICENSE %changelog ## START: Generated by rpmautospec * Thu Oct 17 2024 Karolina Surma - 15.1.0-34 - Uncommitted changes * Fri Jul 19 2024 Fedora Release Engineering - 15.1.0-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 15.1.0-32 - Rebuilt for Python 3.13 * Fri Jun 07 2024 Python Maint - 15.1.0-31 - Bootstrap for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 15.1.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 15.1.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 15.1.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 15.1.0-27 - Rebuilt for Python 3.12 * Thu Jun 15 2023 Python Maint - 15.1.0-26 - Bootstrap for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 15.1.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Sep 21 2022 Miro Hrončok - 15.1.0-24 - Introduce a tests %%bcond to avoid a bootstrap loop * Fri Jul 22 2022 Fedora Release Engineering - 15.1.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jul 03 2022 Robert-André Mauchin - 15.1.0-22 - Minor fixes * Tue Jun 21 2022 Robert-André Mauchin - 15.1.0-21 - Remove deletion of egg.info * Tue Jun 21 2022 Robert-André Mauchin - 15.1.0-20 - Convert to new Python guidelines * Mon Jun 13 2022 Python Maint - 15.1.0-19 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 15.1.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Dec 18 2021 Robert-André Mauchin - 15.1.0-17 - Fix BR * Sat Dec 18 2021 Robert-André Mauchin - 15.1.0-16 - Update versioneer.py to be compatible with Python 3.11 Close: rhbz#2019059 * Fri Jul 23 2021 Fedora Release Engineering - 15.1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 15.1.0-13 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 15.1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 15.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun May 24 2020 Miro Hrončok - 15.1.0-10 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 15.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Oct 13 23:11:50 CEST 2019 Robert-André Mauchin - 15.1.0-8 - Drop Python 2 support (#1761209) * Thu Oct 03 2019 Miro Hrončok - 15.1.0-7 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Aug 17 2019 Miro Hrončok - 15.1.0-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 15.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 15.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 15.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 15.1.0-2 - Rebuilt for Python 3.7 * Mon May 14 2018 Robert-André Mauchin - 15.1.0-1 - Initial package. ## END: Generated by rpmautospec