%global pypi_name secure_cookie %global src_name secure-cookie Name: python-%{pypi_name} Version: 0.1.0 Release: 1%{?dist} Summary: Provides interfaces for secure cookies and sessions in WSGI applications License: BSD URL: https://pypi.python.org/pypi/%{src_name} Source0: https://files.pythonhosted.org/packages/source/X/%{src_name}/%{src_name}-%{version}.tar.gz BuildArch: noarch %global common_desc\ Provides interfaces for secure cookies and sessions in WSGI applications.\ Secure cookies are cryptographically signed (but not encrypted) to prevent\ tampering. Sessions are data associated with a given user across requests\ and responses. %description %{common_desc} %package -n python3-%{pypi_name} Summary: Provides interfaces for secure cookies and sessions in WSGI applications BuildRequires: python3-setuptools BuildRequires: python3-devel %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{common_desc} %prep %setup -q -n %{src_name}-%{version} # Remove bundled egg-info rm -rf %{src_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.rst CHANGES.rst %license LICENSE.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Wed Oct 28 2020 Rajeesh K V - 0.1.0-1 - Initial packaging