# Created by pyp2rpm-3.3.2 %global pypi_name cvpysdk Name: python-%{pypi_name} Version: 11.18 Release: 1%{?dist} Summary: Commvault SDK for Python License: Apache 2.0 URL: https://github.com/CommvaultEngg/cvpysdk Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2dist(setuptools) BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description CVPySDK is a Python Package for Commvault Software.CVPySDK uses Commvault REST API to perform operations on a Commcell via WebConsole. Requirements - Python 2.7 or above - requests < Python package - future < Python package - xmltodict < Python package - Commvault Software v11 SP7 or later release with WebConsole installed Installing CVPySDK CVPySDK can be installed directly from PyPI using... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python2dist(future) Requires: python2dist(requests) Requires: python2dist(xmltodict) %description -n python2-%{pypi_name} CVPySDK is a Python Package for Commvault Software.CVPySDK uses Commvault REST API to perform operations on a Commcell via WebConsole. Requirements - Python 2.7 or above - requests < Python package - future < Python package - xmltodict < Python package - Commvault Software v11 SP7 or later release with WebConsole installed Installing CVPySDK CVPySDK can be installed directly from PyPI using... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(future) Requires: python3dist(requests) Requires: python3dist(xmltodict) %description -n python3-%{pypi_name} CVPySDK is a Python Package for Commvault Software.CVPySDK uses Commvault REST API to perform operations on a Commcell via WebConsole. Requirements - Python 2.7 or above - requests < Python package - future < Python package - xmltodict < Python package - Commvault Software v11 SP7 or later release with WebConsole installed Installing CVPySDK CVPySDK can be installed directly from PyPI using... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install %py3_install %files -n python2-%{pypi_name} %license cvpysdk/license.py LICENSE.txt %doc README.rst %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %license cvpysdk/license.py LICENSE.txt %doc README.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Fri Jan 31 2020 mockbuilder - 11.18-1 - Initial package.