## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 %bcond_without tests %global forgeurl https://github.com/solsticegamestudios/steam Version: 1.6.1 %global tag v%{version} %forgemeta Name: python-steam Release: %autorelease Summary: Python package for interacting with Steam. Fork of ValvePython/steam BuildArch: noarch License: MIT URL: %{forgeurl} Source: %{forgesource} BuildRequires: protobuf-compiler BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(gevent) >= 1.3.0 BuildRequires: python3dist(gevent-eventemitter) >= 2.1 BuildRequires: python3dist(protobuf) >= 3.0.0 BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-cov) BuildRequires: python3dist(vcrpy) %endif %global _description %{expand: A python module for interacting with various parts of Steam. A fork of ValvePython/steam, which has apparently been abandoned.} %description %{_description} %package -n python3-steam Summary: %{summary} %description -n python3-steam %{_description} %prep %forgeautosetup sed -i 's/urllib3<2/urllib3/' setup.py # Regenerate protobuf files protoc --python_out=steam/protobufs --proto_path=protobufs protobufs/*.proto sed -i -E 's/^import ([a-zA-Z0-9_]+_pb2)/from . import \1/' steam/protobufs/*_pb2.py # Patch tests to use built-in unittest.mock instead of mock sed -i -E 's/from mock import/from unittest.mock import/g' tests/*.py sed -i -E 's/import mock/from unittest import mock/g' tests/*.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l steam %if %{with tests} %check %pyproject_check_import %pytest --ignore=tests/test_webapi.py --ignore=tests/test_webauth.py -k "not test_steam64_from_url" %endif %files -n python3-steam -f %{pyproject_files} %doc README.rst CHANGES.md %changelog ## START: Generated by rpmautospec * Thu Aug 06 2026 Filipe Rosset - 1.6.1-6 - Spec cleanup and modernization, move to Forge macros * Thu Jul 16 2026 Fedora Release Engineering - 1.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jun 04 2026 Python Maint - 1.6.1-4 - Rebuilt for Python 3.15 * Wed Feb 11 2026 Michel Lind - 1.6.1-3 - Rebuilt without python-mock * Fri Jan 23 2026 Artem Polishchuk - 1.6.1-2 - Enable basic tests * Fri Jan 23 2026 Artem Polishchuk - 1.6.1-1 - 1.6.1 - Port on new Python packaging paradigm - Switch to new fork https://github.com/solsticegamestudios/steam * Sun May 08 2022 Artem Polishchuk - 1.2.1-1 - chore(update): 1.2.1 * Fri Jan 21 2022 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 23 2021 Artem Polishchuk - 1.2.0-1 - build(update): 1.2.0 * Fri Jun 04 2021 Python Maint - 1.1.1-2 - Rebuilt for Python 3.10 * Mon Jan 25 2021 Artem Polishchuk - 1.1.1-1 - build: Update to 1.1.1 and polish to conform Fedora guidelines * Wed Sep 16 2020 gasinvein - 1.0.2-0.1 - Initial package ## END: Generated by rpmautospec