2018-02-09 14:31:31 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-aiodns
|
|
|
|
#
|
2021-06-24 11:57:37 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-02-09 14:31:31 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-01 09:31:22 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-02-09 14:31:31 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-02-09 14:53:26 +00:00
|
|
|
# DNS tests won't work in OBS
|
|
|
|
%bcond_with tests
|
|
|
|
|
2018-05-11 22:08:40 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-03-21 14:08:40 +00:00
|
|
|
%define skip_python2 1
|
2018-02-09 14:31:31 +00:00
|
|
|
Name: python-aiodns
|
2021-06-24 11:57:37 +00:00
|
|
|
Version: 3.0.0
|
2018-02-09 14:31:31 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Simple DNS resolver for asyncio
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Python
|
2020-07-09 06:42:47 +00:00
|
|
|
URL: https://github.com/saghul/aiodns/releases
|
2018-02-09 14:31:31 +00:00
|
|
|
Source0: https://github.com/saghul/aiodns/archive/aiodns-%{version}.tar.gz
|
2018-02-09 14:53:26 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-06-24 11:57:37 +00:00
|
|
|
Requires: python-pycares >= 4.0.0
|
2018-02-09 14:31:31 +00:00
|
|
|
BuildRequires: fdupes
|
2018-02-09 14:53:26 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %{with tests}
|
2019-03-01 09:31:22 +00:00
|
|
|
BuildRequires: %{python_module pycares}
|
2019-03-01 12:30:27 +00:00
|
|
|
BuildRequires: python-typing
|
2018-02-09 14:53:26 +00:00
|
|
|
%endif
|
2018-02-09 14:31:31 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Simple DNS resolver for asyncio module.
|
|
|
|
|
|
|
|
%prep
|
2021-06-25 07:32:41 +00:00
|
|
|
%setup -q -n aiodns-aiodns-%{version}
|
2018-02-09 14:31:31 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/aiodns/
|
|
|
|
|
2018-02-09 14:53:26 +00:00
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
%python_exec ./tests.py
|
|
|
|
%endif
|
2018-02-09 14:31:31 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-02-09 14:53:26 +00:00
|
|
|
%doc ChangeLog README.rst
|
|
|
|
%license LICENSE
|
2018-02-09 14:31:31 +00:00
|
|
|
%{python_sitelib}/aiodns*
|
2018-02-09 14:53:26 +00:00
|
|
|
|
|
|
|
%changelog
|