## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 15; 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 %bcond_without tests %global pypi_name vdf Name: python-%{pypi_name} Version: 3.4 Release: %autorelease Summary: Package for working with Valve's text and binary KeyValue format BuildArch: noarch License: MIT URL: https://github.com/ValvePython/vdf Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %if %{with tests} BuildRequires: python3dist(pytest-cov) >= 2.7.0 BuildRequires: python3dist(pytest) %endif %global _description %{expand: Pure python module for (de)serialization to and from VDF that works just like json.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} -p1 %build %py3_build %install %py3_install %if %{with tests} %check %{python3} -m pytest -v \ %dnl # https://github.com/ValvePython/vdf/issues/33 --ignore=tests/test_binary_vdf.py %endif %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}*.egg-info %changelog ## START: Generated by rpmautospec * Tue Feb 27 2024 Michel Lind - 3.4-15 - Remove unnecessary and deprecated python3dist(mock) BR * Fri Jan 26 2024 Fedora Release Engineering - 3.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 3.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 3.4-11 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 3.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Aug 19 2022 Artem Polishchuk - 3.4-9 - test: Skip BinaryVDF test * Fri Jul 22 2022 Fedora Release Engineering - 3.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.4-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 3.4-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.4-2 - Rebuilt for Python 3.10 * Sat May 22 2021 Artem Polishchuk - 3.4-1 - build(update): 3.4 * Wed Jan 27 2021 Fedora Release Engineering - 3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 23 2021 Artem Polishchuk - 3.3-2 - build: polish to conform Fedora guidelines * Wed Sep 16 2020 gasinvein - 3.3-0.1 - Initial package ## END: Generated by rpmautospec