Compare commits

...

1 Commits
c9 ... i10ce

@ -1,18 +1,26 @@
# Disable tests on RHEL9 as to not pull in the test dependencies ## START: Set by rpmautospec
# Specify --with tests to run the tests e.g. on EPEL ## (rpmautospec version 0.6.5)
%bcond_with tests ## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 20;
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 pypi_name toml %global pypi_name toml
%global desc TOML aims to be a minimal configuration file format that's easy to read due to \ %global desc TOML aims to be a minimal configuration file format that's easy to read due to \
obvious semantics. TOML is designed to map unambiguously to a hash table. TOML \ obvious semantics. TOML is designed to map unambiguously to a hash table. TOML \
should be easy to parse into data structures in a wide variety of languages. \ should be easy to parse into data structures in a wide variety of languages. \
This package loads toml file into python dictionary and dump dictionary into \ This package loads toml file into python dictionary and dump dictionary into \
toml file. toml file. \
This package is deprecated, use tomllib from the Python standard library \
or tomli/tomli-w.
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.10.2 Version: 0.10.2
Release: 6%{?dist} Release: %autorelease
Summary: Python Library for Tom's Obvious, Minimal Language Summary: A deprecated Python Library for Tom's Obvious, Minimal Language
License: MIT License: MIT
URL: https://pypi.python.org/pypi/%{pypi_name} URL: https://pypi.python.org/pypi/%{pypi_name}
@ -21,8 +29,13 @@ Source0: %{pypi_source}
BuildArch: noarch BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
# python3 bootstrap: this is rebuilt before the final build of python3, which
# adds the dependency on python3-rpm-generators, so we require it manually
# Note that the package prefix is always python3-, even if we build for 3.X
BuildRequires: python3-rpm-generators
BuildRequires: pyproject-rpm-macros BuildRequires: pyproject-rpm-macros
%bcond_without tests
%if %{with tests} %if %{with tests}
BuildRequires: /usr/bin/toml-test BuildRequires: /usr/bin/toml-test
%endif %endif
@ -33,7 +46,8 @@ BuildRequires: /usr/bin/toml-test
%package -n python%{python3_pkgversion}-%{pypi_name} %package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} # https://fedoraproject.org/wiki/Changes/DeprecatePythonToml
Provides: deprecated()
%description -n python%{python3_pkgversion}-%{pypi_name} %description -n python%{python3_pkgversion}-%{pypi_name}
%desc %desc
@ -74,20 +88,56 @@ toml-test $(pwd)/tests/decoding_test3.sh
%changelog %changelog
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.10.2-6 * Sun Jan 05 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.10.2-20
- Add automatically generated Obsoletes tag with the python39- prefix - Rebuilt for MSVSphere 10
for smoother upgrade from RHEL8
- Related: rhbz#1990421
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.2-5 ## START: Generated by rpmautospec
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-20
Related: rhbz#1991688 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.2-4 * Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.10.2-19
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Rebuilt for Python 3.13
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.10.2-3 * Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-15
- Disable tests on RHEL9 to avoid pulling in the test dependencies - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.10.2-12
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Oct 24 2022 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-10
- This package is now deprecated
- https://fedoraproject.org/wiki/Changes/DeprecatePythonToml
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 17 2022 Python Maint <python-maint@redhat.com> - 0.10.2-8
- Rebuilt for Python 3.11
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.10.2-7
- Bootstrap for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-5
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 0.10.2-4
- Rebuilt for Python 3.10
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 0.10.2-3
- Bootstrap for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
@ -194,3 +244,5 @@ toml-test $(pwd)/tests/decoding_test3.sh
* Mon Jun 15 2015 Julien Enselme <jujens@jujens.eu> - 0.9.0-1 * Mon Jun 15 2015 Julien Enselme <jujens@jujens.eu> - 0.9.0-1
- Initial packaging - Initial packaging
## END: Generated by rpmautospec

Loading…
Cancel
Save