%global srcname django-timezone-field Name: python-%{srcname} Version: 3.0 Release: 1%{?dist} Summary: Django app providing database and form fields for pytz timezone objects License: BSD URL: https://github.com/mfogel/django-timezone-field Source: %{pypi_source} BuildArch: noarch %global _description %{expand: %{summary}.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-%{srcname} %{_description} Python 3 version. %prep %autosetup -n %{srcname}-%{version} -p1 rm -vr *.egg-info %build %py3_build %install %py3_install %files -n python3-%{srcname} %license LICENSE.txt %doc README.rst %{python3_sitelib}/django_timezone_field-*.egg-info/ %{python3_sitelib}/timezone_field/ %changelog * Fri Sep 06 2019 Igor Gnatenko - 3.0-1 - Initial package