diff options
Diffstat (limited to 'python-behave-webdriver.spec')
| -rw-r--r-- | python-behave-webdriver.spec | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/python-behave-webdriver.spec b/python-behave-webdriver.spec new file mode 100644 index 0000000..4d03454 --- /dev/null +++ b/python-behave-webdriver.spec @@ -0,0 +1,86 @@ +%global _empty_manifest_terminate_build 0 +Name: python-behave-webdriver +Version: 0.3.1 +Release: 1 +Summary: Selenium webdriver step library for behave BDD testing +License: MIT +URL: https://github.com/spyoungtech/behave-webdriver/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/67/41/d2990149f241f395d721e84d57718e4301aea3e7581b44187afd6999843f/behave-webdriver-0.3.1.tar.gz +BuildArch: noarch + +Requires: python3-selenium +Requires: python3-behave + +%description +behave-webdriver is a step library intended to allow users to easily write `selenium`_ webdriver tests with the +behave BDD testing framework. +Inspired by the `webdriverio/cucumber-boilerplate`_ project. +|docs| |status| |version| |pyversions| |coverage| +For more details, see the `behave-webdriver documentation`_ + +%package -n python3-behave-webdriver +Summary: Selenium webdriver step library for behave BDD testing +Provides: python-behave-webdriver +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-behave-webdriver +behave-webdriver is a step library intended to allow users to easily write `selenium`_ webdriver tests with the +behave BDD testing framework. +Inspired by the `webdriverio/cucumber-boilerplate`_ project. +|docs| |status| |version| |pyversions| |coverage| +For more details, see the `behave-webdriver documentation`_ + +%package help +Summary: Development documents and examples for behave-webdriver +Provides: python3-behave-webdriver-doc +%description help +behave-webdriver is a step library intended to allow users to easily write `selenium`_ webdriver tests with the +behave BDD testing framework. +Inspired by the `webdriverio/cucumber-boilerplate`_ project. +|docs| |status| |version| |pyversions| |coverage| +For more details, see the `behave-webdriver documentation`_ + +%prep +%autosetup -n behave-webdriver-0.3.1 + +%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-behave-webdriver -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.1-1 +- Package Spec generated |
