|
|
bae5b12 |
%global modname DNS
|
|
|
bae5b12 |
%global distname py3dns
|
|
|
bae5b12 |
|
|
|
bae5b12 |
Name: python3-py3dns
|
|
|
ab0161f |
Version: 4.0.0
|
|
|
bcc372d |
Release: 4%{?dist}
|
|
|
bae5b12 |
Summary: Python3 DNS library
|
|
|
bae5b12 |
|
|
|
bae5b12 |
License: Python
|
|
|
c114d82 |
URL: https://launchpad.net/py3dns/
|
|
|
d66b63b |
Source0: https://pypi.io/packages/source/p/%{distname}/%{distname}-%{version}.tar.gz
|
|
|
bae5b12 |
|
|
|
bae5b12 |
BuildArch: noarch
|
|
|
bae5b12 |
|
|
|
bae5b12 |
BuildRequires: python3-devel
|
|
|
ab0161f |
|
|
|
ab0161f |
%generate_buildrequires
|
|
|
ab0161f |
%pyproject_buildrequires
|
|
|
bae5b12 |
|
|
|
bae5b12 |
%description
|
|
|
c114d82 |
This Python 3 module provides a DNS API for looking up DNS entries from
|
|
|
c114d82 |
within Python 3 modules and applications. This module is a simple,
|
|
|
c114d82 |
lightweight implementation.
|
|
|
c114d82 |
|
|
|
bae5b12 |
|
|
|
bae5b12 |
%prep
|
|
|
bae5b12 |
%setup -q -n %{distname}-%{version}
|
|
|
bae5b12 |
|
|
|
bae5b12 |
# Remove bundled egg-info in case it exists
|
|
|
bae5b12 |
rm -rf %{distname}.egg-info
|
|
|
bae5b12 |
|
|
|
bae5b12 |
# Some files are latin-1 encoded but are incorrectly labelled as UTF-8 by
|
|
|
bae5b12 |
# upstream (see rhbz:620265)
|
|
|
bae5b12 |
#
|
|
|
bae5b12 |
# Convert them to actually be UTF-8, preserving the (now-correct) encoding
|
|
|
bae5b12 |
# declaration (preserving timestamps):
|
|
|
bae5b12 |
for file in DNS/Lib.py DNS/Type.py ; do
|
|
|
bae5b12 |
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
|
|
|
bae5b12 |
touch -r $file $file.new && \
|
|
|
bae5b12 |
mv $file.new $file
|
|
|
bae5b12 |
done
|
|
|
bae5b12 |
|
|
|
bae5b12 |
%build
|
|
|
ab0161f |
%pyproject_wheel
|
|
|
bae5b12 |
|
|
|
bae5b12 |
%install
|
|
|
ab0161f |
%pyproject_install
|
|
|
bae5b12 |
|
|
|
bae5b12 |
# We cannot actually run the tests in koji because they require network access.
|
|
|
bae5b12 |
#%%check
|
|
|
bae5b12 |
#PYTHONPATH=$(pwd) %%{__python3} tests/test.py
|
|
|
bae5b12 |
#PYTHONPATH=$(pwd) %%{__python3} tests/test2.py
|
|
|
bae5b12 |
#PYTHONPATH=$(pwd) %%{__python3} tests/test4.py
|
|
|
bae5b12 |
##PYTHONPATH=$(pwd) %%{__python3} tests/test5.py somedomain.com
|
|
|
bae5b12 |
#PYTHONPATH=$(pwd) %%{__python3} tests/testPackers.py
|
|
|
bae5b12 |
#PYTHONPATH=$(pwd) %%{__python3} tests/testsrv.py
|
|
|
bae5b12 |
|
|
|
bae5b12 |
%files
|
|
|
bae5b12 |
%doc README.txt README-guido.txt LICENSE CREDITS.txt CHANGES
|
|
|
bae5b12 |
%{python3_sitelib}/%{modname}/
|
|
|
bae5b12 |
%{python3_sitelib}/%{distname}-%{version}*
|
|
|
bae5b12 |
|
|
|
bae5b12 |
%changelog
|
|
|
bcc372d |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-4
|
|
|
bcc372d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
bcc372d |
|
|
|
43dc545 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
|
|
|
43dc545 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
43dc545 |
|
|
|
5c9ce3c |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-2
|
|
|
5c9ce3c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
5c9ce3c |
|
|
|
ab0161f |
* Thu Jul 6 2023 Bojan Smojver <bojan@rexursive.com> - 4.0.0-1
|
|
|
ab0161f |
- Update to 4.0.0
|
|
|
ab0161f |
|
|
|
9fe0f40 |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.2.1-10
|
|
|
9fe0f40 |
- Rebuilt for Python 3.12
|
|
|
9fe0f40 |
|
|
|
3266e90 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-9
|
|
|
3266e90 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
3266e90 |
|
|
|
6892a93 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-8
|
|
|
6892a93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
6892a93 |
|
|
|
1dd077d |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.2.1-7
|
|
|
1dd077d |
- Rebuilt for Python 3.11
|
|
|
1dd077d |
|
|
|
435a7d8 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-6
|
|
|
435a7d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
435a7d8 |
|
|
|
c596e3f |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-5
|
|
|
c596e3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
c596e3f |
|
|
|
8a829da |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.2.1-4
|
|
|
8a829da |
- Rebuilt for Python 3.10
|
|
|
8a829da |
|
|
|
878a0ef |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-3
|
|
|
878a0ef |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
878a0ef |
|
|
|
db54311 |
* Mon Oct 5 2020 Bojan Smojver <bojan@rexursive.com> - 3.2.1-2
|
|
|
db54311 |
- Add python3-setuptools to build requirements
|
|
|
db54311 |
|
|
|
d66b63b |
* Sun Aug 2 2020 Bojan Smojver <bojan@rexursive.com> - 3.2.1-1
|
|
|
d66b63b |
- Bump up to 3.2.1, bug #1862311
|
|
|
d66b63b |
|
|
|
947a24a |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-15
|
|
|
947a24a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
947a24a |
|
|
|
9159d4d |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-14
|
|
|
9159d4d |
- Rebuilt for Python 3.9
|
|
|
9159d4d |
|
|
|
f89bbf2 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-13
|
|
|
f89bbf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
f89bbf2 |
|
|
|
7156519 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-12
|
|
|
7156519 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
7156519 |
|
|
|
23717c0 |
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-11
|
|
|
23717c0 |
- Rebuilt for Python 3.8
|
|
|
23717c0 |
|
|
|
f43c0d8 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-10
|
|
|
f43c0d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
f43c0d8 |
|
|
|
03491f6 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-9
|
|
|
03491f6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
03491f6 |
|
|
|
e9b193a |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-8
|
|
|
e9b193a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
e9b193a |
|
|
|
acf466f |
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.1-7
|
|
|
acf466f |
- Rebuilt for Python 3.7
|
|
|
acf466f |
|
|
|
9fb65f9 |
* Sat Jun 09 2018 Kevin Fenzi <kevin@scrye.com> - 3.1.1-6
|
|
|
9fb65f9 |
- Add patch to change now reserved async keyword to py3async. Fixes bug #1583688
|
|
|
9fb65f9 |
|
|
|
fb0a42e |
* Tue Mar 27 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.1.1-5
|
|
|
fb0a42e |
- Don't blow up in Python 3 if /etc/resolv.conf is missing (#1561187).
|
|
|
fb0a42e |
|
|
|
5338953 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-4
|
|
|
5338953 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
5338953 |
|
|
|
c4e4161 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-3
|
|
|
c4e4161 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c4e4161 |
|
|
|
9e2d412 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
|
|
|
9e2d412 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
9e2d412 |
|
|
|
af2881c |
* Thu Feb 02 2017 Ralph Bean <rbean@redhat.com> - 3.1.1-1
|
|
|
af2881c |
- new version
|
|
|
af2881c |
|
|
|
bb680bb |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-9
|
|
|
bb680bb |
- Rebuild for Python 3.6
|
|
|
bb680bb |
|
|
|
3061b84 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-8
|
|
|
3061b84 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
3061b84 |
|
|
|
9afeda2 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-7
|
|
|
9afeda2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
9afeda2 |
|
|
|
5141f1c |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-6
|
|
|
5141f1c |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
5141f1c |
|
|
|
c30cbaa |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-5
|
|
|
c30cbaa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
c30cbaa |
|
|
|
1b46057 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-4
|
|
|
1b46057 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
1b46057 |
|
|
|
e2ef385 |
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 3.0.4-3
|
|
|
e2ef385 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
e2ef385 |
|
|
|
c114d82 |
* Tue Sep 24 2013 Ralph Bean <rbean@redhat.com> - 3.0.4-2
|
|
|
c114d82 |
- Update with comments from review.
|
|
|
c114d82 |
|
|
|
bae5b12 |
* Mon Sep 23 2013 Ralph Bean <rbean@redhat.com> - 3.0.4-1
|
|
|
bae5b12 |
- Initial package for Fedora
|