From 9d512c774466df423698e6b6e4a6254bcabc637f Mon Sep 17 00:00:00 2001 From: wang--ge Date: Fri, 13 Jun 2025 18:10:21 +0800 Subject: [PATCH] fix build failure due to python-setuptools updated --- python-pyasn1.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/python-pyasn1.spec b/python-pyasn1.spec index ecb9ba8..5ae8573 100644 --- a/python-pyasn1.spec +++ b/python-pyasn1.spec @@ -1,13 +1,14 @@ Name: python-pyasn1 Version: 0.6.1 -Release: 1 +Release: 2 Summary: ASN.1 library for Python License: BSD-2-Clause Source0: https://github.com/pyasn1/pyasn1/archive/v%{version}.tar.gz URL: http://pyasn1.sourceforge.net/ BuildArch: noarch -BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-devel python3-setuptools python3-testtools BuildRequires: python3-unversioned-command python3-sphinx libffi +BuildRequires: make %description Abstract Syntax Notation One (ASN.1) is a technology for exchanging structured data @@ -38,12 +39,12 @@ cp -a . %{py3dir} %build cd %{py3dir} -%{__python3} setup.py build +%py3_build cd - %install cd %{py3dir} -%{__python3} setup.py install --skip-build --root %{buildroot} +%py3_install cd - cd docs @@ -53,7 +54,7 @@ cd - %check cd %{py3dir} -PYTHONPATH="%{buildroot}%{python3_sitelib}:$PYTHONPATH" %{__python3} setup.py test +%{__python3} -m unittest discover -s tests cd - %files -n python3-pyasn1 @@ -68,6 +69,9 @@ cd - %doc docs/build/html/* %changelog +* Fri Jun 13 2025 Ge Wang - 0.6.1-2 +- Fix build failure due to python-setuptool updated + * Fri Nov 29 2024 yaoxin - 0.6.1-1 - Update to 0.6.1: * Added support for Python 3.13 and updated GitHub Actions -- Gitee