%global _empty_manifest_terminate_build 0 Name: python-webdriver-manager Version: 3.8.5 Release: 1 Summary: Library provides the way to automatically manage drivers for different browsers License: Apache Software License URL: https://github.com/SergeyPirogov/webdriver_manager Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/83/eaec06947af13ba950efaaf45e220927775060ae7afcc315e731c7910018/webdriver_manager-3.8.5.tar.gz BuildArch: noarch Requires: python3-requests Requires: python3-dotenv Requires: python3-tqdm Requires: python3-packaging %description ### Custom Logger If you need to use a custom logger, you can create a logger and set it with `set_logger()`. ```python import logging from webdriver_manager.core.logger import set_logger logger = logging.getLogger("custom_logger") logger.setLevel(logging.DEBUG) logger.addHandler(logging.StreamHandler()) logger.addHandler(logging.FileHandler("custom.log")) set_logger(logger) %package -n python3-webdriver-manager Summary: Library provides the way to automatically manage drivers for different browsers Provides: python-webdriver-manager BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-webdriver-manager ### Custom Logger If you need to use a custom logger, you can create a logger and set it with `set_logger()`. ```python import logging from webdriver_manager.core.logger import set_logger logger = logging.getLogger("custom_logger") logger.setLevel(logging.DEBUG) logger.addHandler(logging.StreamHandler()) logger.addHandler(logging.FileHandler("custom.log")) set_logger(logger) %package help Summary: Development documents and examples for webdriver-manager Provides: python3-webdriver-manager-doc %description help ### Custom Logger If you need to use a custom logger, you can create a logger and set it with `set_logger()`. ```python import logging from webdriver_manager.core.logger import set_logger logger = logging.getLogger("custom_logger") logger.setLevel(logging.DEBUG) logger.addHandler(logging.StreamHandler()) logger.addHandler(logging.FileHandler("custom.log")) set_logger(logger) %prep %autosetup -n webdriver-manager-3.8.5 %build %py3_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 . %files -n python3-webdriver-manager -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon Apr 10 2023 Python_Bot - 3.8.5-1 - Package Spec generated