# Created by pyp2rpm-3.3.2 %global pypi_name publicsuffix2 Name: python-%{pypi_name} Version: 2.20191221 Release: 1%{?dist} Summary: Get a public suffix for a domain name using the Public Suffix List License: MIT and MPL-2.0 URL: https://github.com/nexb/python-publicsuffix2 Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(requests) >= 2.7.0 BuildRequires: python3dist(setuptools) %description Public Suffix List module for Python This module allows you to get the public suffix, as well as the registrable domain, of a domain name using the Public Suffix List from public suffix is a domain suffix under which you can register domain names, or under which the suffix owner does not control the subdomains. Some examples of public suffixes in the former example are ".com", ".co.uk" and... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Public Suffix List module for Python This module allows you to get the public suffix, as well as the registrable domain, of a domain name using the Public Suffix List from public suffix is a domain suffix under which you can register domain names, or under which the suffix owner does not control the subdomains. Some examples of public suffixes in the former example are ".com", ".co.uk" and... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license src/publicsuffix2/mpl-2.0.LICENSE publicsuffix2.LICENSE %doc README.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Wed Jan 08 2020 Felix Kaechele - 2.20191221-1 - Initial package.