|
1 | | -Vendor: Microsoft Corporation |
2 | | -Distribution: Azure Linux |
3 | | -# set upstream name variable |
4 | | -%global srcname aiodns |
5 | | - |
6 | | - |
| 1 | +# All tests require network access (DNS). We can run them manually with, e.g.: |
| 2 | +# fedpkg mockbuild --with network_tests --enable-network |
| 3 | +%bcond_with network_tests |
7 | 4 |
|
8 | 5 | Name: python-aiodns |
9 | | -Version: 2.0.0 |
10 | | -Release: 4%{?dist} |
| 6 | +Version: 3.2.0 |
| 7 | +Release: 2%{?dist} |
11 | 8 | Summary: Simple DNS resolver for asyncio |
12 | 9 |
|
13 | 10 | License: MIT |
| 11 | +Vendor: Microsoft Corporation |
| 12 | +Distribution: Azure Linux |
14 | 13 | URL: https://github.com/saghul/aiodns |
15 | | -Source0: https://github.com/saghul/%{srcname}/archive/%{srcname}-%{version}.tar.gz#/python-%{srcname}-%{version}.tar.gz |
| 14 | +Source0: %{url}/archive/v%{version}/aiodns-%{version}.tar.gz#/%{name}-%{version}.tar.gz |
16 | 15 |
|
17 | 16 | BuildArch: noarch |
18 | 17 | BuildRequires: python3-devel |
19 | | -BuildRequires: python3-pycares |
20 | | - |
21 | | -%description |
22 | | -aiodns provides a simple way for doing asynchronous DNS resolutions |
23 | | -with a synchronous looking interface by using pycares. |
| 18 | +BuildRequires: python3-pip |
| 19 | +BuildRequires: python3-wheel |
| 20 | +#for tests |
| 21 | +BuildRequires: python3-pycares |
| 22 | +BuildRequires: python3-cffi |
24 | 23 |
|
| 24 | +%if %{with network_tests} |
| 25 | +BuildRequires: %{py3_dist pytest} |
| 26 | +# Optional uvloop integration tests: |
| 27 | +BuildRequires: %{py3_dist uvloop} |
| 28 | +%endif |
25 | 29 |
|
26 | | -%package -n python3-%{srcname} |
27 | | -Summary: Simple DNS resolver for asyncio |
28 | | -BuildArch: noarch |
29 | | -Requires: python3-pycares |
30 | | -%{?python_provide:%python_provide python3-%{srcname}} |
| 30 | +%global _description %{expand: |
| 31 | +aiodns provides a simple way for doing asynchronous DNS resolutions using |
| 32 | +pycares.} |
31 | 33 |
|
32 | | -%description -n python3-%{srcname} |
33 | | -aiodns provides a simple way for doing asynchronous DNS resolutions |
34 | | -with a synchronous looking interface by using pycares. |
| 34 | +%description %{_description} |
35 | 35 |
|
| 36 | +%package -n python3-aiodns |
| 37 | +Summary: %{summary} |
36 | 38 |
|
| 39 | +%description -n python3-aiodns %{_description} |
37 | 40 |
|
38 | 41 | %prep |
39 | | -%autosetup -n %{srcname}-%{srcname}-%{version} |
| 42 | +%autosetup -n aiodns-%{version} |
40 | 43 |
|
| 44 | +%generate_buildrequires |
| 45 | +%pyproject_buildrequires |
41 | 46 |
|
42 | 47 | %build |
43 | | -%py3_build |
44 | | - |
| 48 | +%pyproject_wheel |
45 | 49 |
|
46 | 50 | %install |
47 | | -%py3_install |
48 | | - |
| 51 | +%pyproject_install |
| 52 | +%pyproject_save_files aiodns |
49 | 53 |
|
50 | 54 | %check |
51 | | -# Unit tests perform DNS resolution and requires active Internet |
52 | | -# connection: disabling |
53 | | -##%{__python3} setup.py test |
54 | | - |
55 | | - |
| 55 | +%pyproject_check_import |
| 56 | +%if %{with network_tests} |
| 57 | +%pytest tests.py |
| 58 | +%endif |
56 | 59 |
|
57 | | -%files -n python3-%{srcname} |
| 60 | +%files -n python3-aiodns -f %{pyproject_files} |
58 | 61 | %license LICENSE |
59 | 62 | %doc README.rst ChangeLog |
60 | | -# For noarch packages: sitelib |
61 | | -%{python3_sitelib}/%{srcname}-%{version}-*.egg-info/ |
62 | | -%{python3_sitelib}/%{srcname}/ |
63 | 63 |
|
| 64 | +%changelog |
| 65 | +* Wed Feb 12 2025 Akhila Guruju <[email protected]> - 3.2.0-2 |
| 66 | +- Initial Azure Linux import from Fedora 41 (license: MIT). |
| 67 | +- License verified |
| 68 | +- Added `BuildRequires: python3-pip python3-wheel python3-cffi` to fix build. |
64 | 69 |
|
| 70 | +* Sat Aug 17 2024 Benjamin A. Beasley <[email protected]> - 3.2.0-1 |
| 71 | +- Update to 3.2.0 (close RHBZ#2242855) |
65 | 72 |
|
66 | | -%changelog |
67 | | -* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 2.0.0-4 |
68 | | -- Initial CBL-Mariner import from Fedora 32 (license: MIT). |
| 73 | +* Sat Aug 17 2024 Benjamin A. Beasley <[email protected]> - 3.0.0-13 |
| 74 | +- Port to current Python guidelines (pyproject-rpm-macros) |
| 75 | + |
| 76 | +* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 3.0.0-12 |
| 77 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 78 | + |
| 79 | +* Fri Jun 07 2024 Python Maint <[email protected]> - 3.0.0-11 |
| 80 | +- Rebuilt for Python 3.13 |
| 81 | + |
| 82 | +* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 3.0.0-10 |
| 83 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 84 | + |
| 85 | +* Sun Jan 21 2024 Fedora Release Engineering <[email protected]> - 3.0.0-9 |
| 86 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 87 | + |
| 88 | +* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 3.0.0-8 |
| 89 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 90 | + |
| 91 | +* Wed Jun 14 2023 Python Maint <[email protected]> - 3.0.0-7 |
| 92 | +- Rebuilt for Python 3.12 |
| 93 | + |
| 94 | +* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 3.0.0-6 |
| 95 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 96 | + |
| 97 | +* Fri Jul 22 2022 Fedora Release Engineering <[email protected]> - 3.0.0-5 |
| 98 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 99 | + |
| 100 | +* Mon Jun 13 2022 Python Maint <[email protected]> - 3.0.0-4 |
| 101 | +- Rebuilt for Python 3.11 |
| 102 | + |
| 103 | +* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 3.0.0-3 |
| 104 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 105 | + |
| 106 | +* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 3.0.0-2 |
| 107 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 108 | + |
| 109 | +* Wed Jun 9 2021 Matthieu Saulnier <[email protected]> - 3.0.0-1 |
| 110 | +- Update to 3.0.0 |
| 111 | +- Remove Patch0 (Backport from upstream commit: 28111210) |
| 112 | + |
| 113 | +* Fri Jun 04 2021 Python Maint <[email protected]> - 2.0.0-9 |
| 114 | +- Rebuilt for Python 3.10 |
| 115 | + |
| 116 | +* Sun Feb 14 2021 Matthieu Saulnier <[email protected]> - 2.0.0-8 |
| 117 | +- Replace glob with %%{python3_version} in %%files section |
| 118 | + |
| 119 | +* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 2.0.0-7 |
| 120 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 121 | + |
| 122 | +* Wed Jan 13 2021 Matthieu Saulnier <[email protected]> - 2.0.0-6 |
| 123 | +- Add Patch0 to fix epel8 installation package |
| 124 | + Backport from upstream commit: 28111210 |
| 125 | + |
| 126 | +* Tue Jul 28 2020 Fedora Release Engineering <[email protected]> - 2.0.0-5 |
| 127 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
| 128 | + |
| 129 | +* Tue May 26 2020 Miro Hrončok <[email protected]> - 2.0.0-4 |
| 130 | +- Rebuilt for Python 3.9 |
69 | 131 |
|
70 | 132 | * Thu Jan 30 2020 Fedora Release Engineering <[email protected]> - 2.0.0-3 |
71 | 133 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
@@ -101,3 +163,4 @@ with a synchronous looking interface by using pycares. |
101 | 163 |
|
102 | 164 | * Wed Apr 4 2018 Matthieu Saulnier <[email protected]> - 1.1.1-1 |
103 | 165 | - Initial package |
| 166 | + |
0 commit comments