bring more in line with https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/
This commit is contained in:
		
							parent
							
								
									5412e7523d
								
							
						
					
					
						commit
						d7c591ffd9
					
				| @ -1,6 +1,5 @@ | ||||
| %global pypi_name dnspython | ||||
| %global py_package_name dns | ||||
| %python_provide python-$module | ||||
| 
 | ||||
| # Disable dependency generator until it has test code | ||||
| %{?python_disable_dependency_generator} | ||||
| @ -20,6 +19,7 @@ Source0:        http://www.dnspython.org/kits/%{version}/%{pypi_name}-%{version} | ||||
| Source1:        typing.py | ||||
| 
 | ||||
| BuildArch:      noarch | ||||
| 
 | ||||
| Patch0:         unicode_label_escapify.patch | ||||
| Patch1:         collections_abc.patch | ||||
| Patch2:		python-dns-1.16-base64.patch | ||||
| @ -29,7 +29,7 @@ BuildRequires:  python3-setuptools | ||||
| Recommends:  python3-ecdsa | ||||
| Recommends:  python3-pycryptodomex | ||||
| 
 | ||||
| %description | ||||
| %global _description %{expand: | ||||
| dnspython is a DNS toolkit for Python. It supports almost all record | ||||
| types. It can be used for queries, zone transfers, and dynamic | ||||
| updates. It supports TSIG authenticated messages and EDNS0. | ||||
| @ -38,6 +38,15 @@ dnspython provides both high and low level access to DNS. The high | ||||
| level classes perform queries for data of a given name, type, and | ||||
| class, and return an answer set. The low level classes allow direct | ||||
| manipulation of DNS zones, messages, names, and records. | ||||
| } | ||||
| 
 | ||||
| %description %_description | ||||
| %package -n python3-%{py_package_name} | ||||
| Summary:        %{summary} | ||||
| BuildRequires:  python3-devel | ||||
| %{?python_provide:%python_provide python3-%{py_package_name}} | ||||
| 
 | ||||
| %description -n python3-%{py_package_name} %_description | ||||
| 
 | ||||
| %prep | ||||
| %autosetup -p1 -n %{pypi_name}-%{version} | ||||
| @ -52,9 +61,9 @@ find examples -type f | xargs chmod a-x | ||||
| %py3_install | ||||
| 
 | ||||
| %check | ||||
| %{__python3} setup.py test | ||||
| %{python3} setup.py test | ||||
| 
 | ||||
| %files | ||||
| %files -n python3-%{py_package_name} | ||||
| %license LICENSE | ||||
| %doc README.md examples | ||||
| %{python3_sitelib}/%{py_package_name} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user