15
0
forked from pool/python-dnslib

Accepting request 1267633 from home:glaubitz:branches:devel:languages:python

- 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/request/show/1267633
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
parent 6edf074b96
commit 7df7f65078
4 changed files with 26 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dnslib
#
# Copyright (c) 2024 SUSE LLC
# 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
@@ -16,16 +16,18 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-dnslib
Version: 0.9.25
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
@@ -39,10 +41,10 @@ Simple library to encode/decode DNS wire-format packets.
sed -i '1{/^#!/d}' dnslib/test_decode.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -51,6 +53,7 @@ sed -i '1{/^#!/d}' dnslib/test_decode.py
%files %{python_files}
%doc README
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/dnslib
%{python_sitelib}/dnslib-%{version}.dist-info
%changelog