# tests are enabled by default %bcond_without tests %global srcname proto-plus %global forgeurl https://github.com/googleapis/proto-plus-python Version: 1.22.1 %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Python wrapper around protocol buffers License: ASL 2.0 URL: %forgeurl Source0: %forgesource # Python 3.11.0b3 support # https://github.com/googleapis/proto-plus-python/issues/326 # The underlying changes in Python's enum might be reverted, # but this patch is backwards compatible. Patch: python3.11.patch BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytz) %endif %global _description %{expand: This is a wrapper around protocol buffers. Protocol buffers is a specification format for APIs, such as those inside Google. This library provides protocol buffer message classes and objects that largely behave like native Python types.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires -x testing %build %pyproject_wheel %install %pyproject_install %pyproject_save_files proto %if %{with tests} %check %pytest %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTING.rst %changelog %autochangelog