diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 13:35:29 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 13:35:29 +0000 |
| commit | 48c14929e70d2fbb08d1493e3f9b6aebfd52e03f (patch) | |
| tree | 7b43e201a370bbad45c81ea2cc3b04465c951942 /python-webbot.spec | |
| parent | 71da981cd48f5d8c672676ee3da985b563bcd149 (diff) | |
automatic import of python-webbot
Diffstat (limited to 'python-webbot.spec')
| -rw-r--r-- | python-webbot.spec | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/python-webbot.spec b/python-webbot.spec new file mode 100644 index 0000000..92b2a1d --- /dev/null +++ b/python-webbot.spec @@ -0,0 +1,91 @@ +%global _empty_manifest_terminate_build 0 +Name: python-webbot +Version: 0.34 +Release: 1 +Summary: Web Browser automation and testing library for python with more features and simpler api than selenium +License: MIT License +URL: https://github.com/nateshmbhat/webbot +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2c/02/1f14a3a45fb56ac1b3f1a230d8bb07746d9ee7571e7569204bbd67295ebd/webbot-0.34.tar.gz +BuildArch: noarch + +Requires: python3-selenium + +%description +Web automation library for python for web browser automation and end to +end UI testing. +webbot provides a much feature rich automation than selenium for all +kinds of automation of webpage. Since the major portion of web +automation is to perform actions like click and type into webpage +elements , webbot automatically handles finding the right elements to +perform the actions. + +%package -n python3-webbot +Summary: Web Browser automation and testing library for python with more features and simpler api than selenium +Provides: python-webbot +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-webbot +Web automation library for python for web browser automation and end to +end UI testing. +webbot provides a much feature rich automation than selenium for all +kinds of automation of webpage. Since the major portion of web +automation is to perform actions like click and type into webpage +elements , webbot automatically handles finding the right elements to +perform the actions. + +%package help +Summary: Development documents and examples for webbot +Provides: python3-webbot-doc +%description help +Web automation library for python for web browser automation and end to +end UI testing. +webbot provides a much feature rich automation than selenium for all +kinds of automation of webpage. Since the major portion of web +automation is to perform actions like click and type into webpage +elements , webbot automatically handles finding the right elements to +perform the actions. + +%prep +%autosetup -n webbot-0.34 + +%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-webbot -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.34-1 +- Package Spec generated |
