!15 Modify the testing method to fix build errors
From: @starlet-dx Reviewed-by: @cherry530, @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
607c103588
@ -1,7 +1,7 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-zeroconf
|
||||
Version: 0.64.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)
|
||||
License: LGPL-2.1-only
|
||||
URL: https://github.com/jstasiak/python-zeroconf
|
||||
@ -24,6 +24,7 @@ BuildRequires: python3-wheel
|
||||
BuildRequires: python3-ifaddr
|
||||
BuildRequires: python3-async-timeout
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-pytest-cov
|
||||
%description -n python3-zeroconf
|
||||
Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)
|
||||
|
||||
@ -34,7 +35,7 @@ Provides: python3-zeroconf-doc
|
||||
Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)
|
||||
|
||||
%prep
|
||||
%autosetup -n zeroconf-%{version}
|
||||
%autosetup -n zeroconf-%{version} -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
@ -68,7 +69,8 @@ mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
||||
pytest -v -k 'not test_integration_with_listener_ipv6'
|
||||
|
||||
%files -n python3-zeroconf -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
@ -77,6 +79,9 @@ mv %{buildroot}/doclist.lst .
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 07 2023 yaoxin <yao_xin001@hoperun.com> - 0.64.1-2
|
||||
- Modify the testing method to fix build errors
|
||||
|
||||
* Tue Jun 06 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.64.1-1
|
||||
- Update package to version 0.64.1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user