15
0
forked from pool/python-dnslib

- Update to 0.9.26

* Implement matchWildcard (Issue #72)
- Limit Python files matched in %files section
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Drop support for older Python versions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnslib?expand=0&rev=14
This commit is contained in:
2025-04-07 12:23:44 +00:00
committed by Git OBS Bridge
commit 1fffcb97f2
7 changed files with 183 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
dnslib-0.9.24.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef167868a30d4ce7c90b921279d7ecfb986be8ebc530f3e6050a2ecb68707c76
size 81873

3
dnslib-0.9.25.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:687df2086e28086cb32b947dafa4c0a4e613f1429baa3be61d8b94e69418b4ef
size 82156

3
dnslib-0.9.26.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be56857534390b2fbd02935270019bacc5e6b411d156cb3921ac55a7fb51f1a8
size 82901

91
python-dnslib.changes Normal file
View File

@@ -0,0 +1,91 @@
-------------------------------------------------------------------
Mon Apr 7 11:06:51 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.9.26
* Implement matchWildcard (Issue #72)
- Limit Python files matched in %files section
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Drop support for older Python versions
-------------------------------------------------------------------
Mon Jul 15 15:54:39 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.9.25:
* #60 - SyntaxWarning with Python 3.12 (@kitterma)
* #63 - Records with empty rdata causes pack() to fail
* #66 - DNS SRV "target" names are compressed (@bobstanden)
-------------------------------------------------------------------
Sat Jan 6 17:11:17 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.9.24:
* #49 - Generate README.md (via symlink)
* #51 - Update Github CI checkout & setup-python actions (and
remove Python 2.7 CI support)
* #54 - Support for RP records
* #57 - Support for LOC record
-------------------------------------------------------------------
Wed Jan 4 14:44:54 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.9.23:
* Minor clean-up / add wheels to distro
* Issue #43 (0.9.21 Raises TypeError instead of DNSError when failing to parse HTTPS records)
Note that we just fix the exception - there still seems to be a problem with parsing HTTPS records
* Issue #43: HTTPS reads after RD end (thanks to @robinlandstrom for pull request)
* Issue #45: Dnslib fails to handle unknown RR types in NSEC RD type bitmap
* Bimap now supports a function to map unknown types which we use to
dynamically map from rtype <-> TYPExxxx for unknown record types
* RR zone representation updated to match RFC3597
* Pull Request #47: Add support for DS, SSHFP, and TLSA records (thanks to @rmbolger)
-------------------------------------------------------------------
Tue Sep 27 18:30:29 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- update to 0.9.21:
* Issue #43 (0.9.21 Raises TypeError instead of DNSError when failing to parse HTTPS records)
* setup.py
- update 0.9.20
* Merge pull request #41 from felixonmars/patch-1
Correct typos in dns.py
* Add wheel instructions
* Set theme jekyll-theme-minimal
-------------------------------------------------------------------
Sun Jan 23 16:53:04 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.9.19:
* Allow custom log function (logf) in DNSLogger
-------------------------------------------------------------------
Sat Jan 15 15:36:07 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.9.18:
* Validate TXID in client.py
-------------------------------------------------------------------
Tue Aug 17 11:46:14 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to v0.9.16
* Add DNAME
* Add support for all RR types to NSEC type bitmap
* Issue 16: uncaught exceptions leak open sockets
- from v0.9.15
* DNSServer fixes / Add unsupported RR types
* Add NULL QTYPE
-------------------------------------------------------------------
Thu Aug 27 16:12:36 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Update to v0.9.14
-------------------------------------------------------------------
Mon Dec 16 03:36:26 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.9.10

59
python-dnslib.spec Normal file
View File

@@ -0,0 +1,59 @@
#
# spec file for package python-dnslib
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-dnslib
Version: 0.9.26
Release: 0
Summary: Simple library to encode/decode DNS wire-format packets
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/paulc/dnslib
Source: https://files.pythonhosted.org/packages/source/d/dnslib/dnslib-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Simple library to encode/decode DNS wire-format packets.
%prep
%setup -q -n dnslib-%{version}
sed -i '1{/^#!/d}' dnslib/test_decode.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand VERSIONS="$python" sh ./run_tests.sh
%files %{python_files}
%doc README
%license LICENSE
%{python_sitelib}/dnslib
%{python_sitelib}/dnslib-%{version}.dist-info
%changelog