diff --git a/python-xvfbwrapper.spec b/python-xvfbwrapper.spec index 4e7ad577e080eee30a9aa9ddac00653544d8fe8c..6d359d66a272d66d049ec41baf1bb01117d41980 100644 --- a/python-xvfbwrapper.spec +++ b/python-xvfbwrapper.spec @@ -1,13 +1,15 @@ %global _empty_manifest_terminate_build 0 Name: python-xvfbwrapper -Version: 0.2.9 +Version: 0.2.13 Release: 1 Summary: run headless display inside X virtual framebuffer (Xvfb) License: MIT URL: https://github.com/cgoldberg/xvfbwrapper -Source0: https://files.pythonhosted.org/packages/57/b6/4920eabda9b49630dea58745e79f9919aba6408d460afe758bf6e9b21a04/xvfbwrapper-0.2.9.tar.gz +Source0: https://files.pythonhosted.org/packages/source/x/xvfbwrapper/xvfbwrapper-%{version}.tar.gz BuildArch: noarch +Obsoletes: %{name}-help < %{version}-%{release} + %description run headless display inside X virtual framebuffer (Xvfb) @@ -16,55 +18,39 @@ Summary: run headless display inside X virtual framebuffer (Xvfb) Provides: python-xvfbwrapper BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-pytest +BuildRequires: xorg-x11-server-Xvfb %description -n python3-xvfbwrapper run headless display inside X virtual framebuffer (Xvfb) -%package help -Summary: Development documents and examples for xvfbwrapper -Provides: python3-xvfbwrapper-doc -%description help -Development documents and examples for xvfbwrapper - %prep -%autosetup -n xvfbwrapper-0.2.9 +%autosetup -n xvfbwrapper-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install -install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . +%pyproject_install -%files -n python3-xvfbwrapper -f filelist.lst -%dir %{python3_sitelib}/* +%check +export PYTHONPATH=%{buildroot}%{python3_sitelib} +pytest -k "not test_start_with_specific_display" -%files help -f doclist.lst -%{_docdir}/* +%files -n python3-xvfbwrapper +%doc README.md +%{python3_sitelib}/* %changelog -* Sun May 23 2021 Python_Bot +* Wed Aug 13 2025 yaoxin <1024769339@qq.com> - 0.2.13-1 +- Update to 0.2.13: + * Fix regression. Always look in /tmp for display files + * Remove recursive from autoflake configuration + * Drop Python 3.8 support + * Fix KeyError in stop() if DISPLAY was never set after failed start + * Remove --check option from black + * Don't inherit from object in Xvfb class + +* Sun May 23 2021 Python_Bot - 0.2.9-1 - Package Spec generated diff --git a/xvfbwrapper-0.2.13.tar.gz b/xvfbwrapper-0.2.13.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d982dc028f27568a30565fa1f1ad6da64d4e9168 Binary files /dev/null and b/xvfbwrapper-0.2.13.tar.gz differ diff --git a/xvfbwrapper-0.2.9.tar.gz b/xvfbwrapper-0.2.9.tar.gz deleted file mode 100644 index 19c31c9c674930fef81634885bce8fc56d1485e0..0000000000000000000000000000000000000000 Binary files a/xvfbwrapper-0.2.9.tar.gz and /dev/null differ