## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; 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 # tests are enabled by default %bcond_without tests %global srcname google-cloud-dns %global forgeurl https://github.com/googleapis/python-dns Version: 0.34.2 %global tag v%{version} %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Python Client for Google Cloud DNS # Automatically converted from old format: ASL 2.0 - review is highly recommended. License: Apache-2.0 URL: %forgeurl Source0: %forgesource Patch0: python-google-cloud-dns-mock.patch BuildArch: noarch BuildRequires: pyproject-rpm-macros %if %{with tests} BuildRequires: python3dist(google-cloud-core) BuildRequires: python3dist(pytest) %endif %global _description %{expand: The Google Cloud DNS API provides methods that you can use to manage DNS on Google infrastructure.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %_description %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files google %check %pyproject_check_import %if %{with tests} # NOTE(mhayden): Setting PYTHONUSERBASE as a hack for PEP 420 namespaces. # Thanks to churchyard for the fix. PYTHONUSERBASE=%{buildroot}%{_prefix} \ %pytest tests/unit %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst CHANGELOG.md SECURITY.md %license LICENSE %{python3_sitelib}/google_cloud_dns-%{version}-py*-nspkg.pth %changelog ## START: Generated by rpmautospec * Wed Jul 24 2024 Miroslav Suchý - 0.34.2-6 - convert ASL 2.0 license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.34.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.34.2-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.34.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.34.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Nov 11 2023 Juan Orti Alcaine - 0.34.2-1 - Version 0.34.2 (#2249057) * Fri Jul 21 2023 Fedora Release Engineering - 0.34.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jul 06 2023 Juan Orti Alcaine - 0.34.1-5 - Fix tests * Thu Jun 29 2023 Python Maint - 0.34.1-4 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.34.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.34.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Juan Orti Alcaine - 0.34.1-1 - Version 0.34.1 (RHBZ#2107727) * Thu Jun 16 2022 Python Maint - 0.34.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.34.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 18 2022 Juan Orti Alcaine - 0.34.0-1 - Initial import (#2041476). ## END: Generated by rpmautospec