%global pypi_name simple-salesforce %global pypi_version 1.11.5 %global commit 871ffd855f961aa0ebd721ea5b1476ff3a4ef385 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: python-%{pypi_name} Version: %{pypi_version} Release: 3%{?dist} Summary: Simple Salesforce is a basic Salesforce.com REST API client built for Python License: ASL 2.0 URL: https://github.com/%{pypi_name}/%{pypi_name} Source0: %{url}/archive/%{commit}/%{pypi_name}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3-authlib BuildRequires: python3-zeep # for testing: BuildRequires: python3-tox-current-env BuildRequires: python3-coverage BuildRequires: python3-pylint %global _description %{expand: Simple Salesforce is a basic Salesforce.com REST API client built for Python. The goal is to provide a very low-level interface to the REST Resource and APEX API, returning a dictionary of the API JSON response. } %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n %{pypi_name}-%{commit} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %check %tox %install %pyproject_install %pyproject_save_files simple_salesforce %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst docs/user_guide docs/changes.rst docs/conf.py %license LICENSE.txt %changelog * Fri Jul 22 2022 Fedora Release Engineering - 1.11.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 1.11.5-2 - Rebuilt for Python 3.11 * Mon Feb 28 2022 Paul Wouters - 1.11.5-1 - Initial package