diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-planterbox.spec | 81 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/planterbox-0.7.2.tar.gz diff --git a/python-planterbox.spec b/python-planterbox.spec new file mode 100644 index 0000000..4c8c5ec --- /dev/null +++ b/python-planterbox.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-planterbox +Version: 0.7.2 +Release: 1 +Summary: A plugin for nose2 implementing behavior-driven testing. +License: MIT +URL: https://github.com/npilon/planterbox +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/26/28/85a5dd7911796b2817c2f092f95e86dce692df3b921244739ca5459509eb/planterbox-0.7.2.tar.gz +BuildArch: noarch + +Requires: python3-nose2 +Requires: python3-mock +Requires: python3-six + +%description +A plugin for running behavior-driven tests using +`gherkin <https://github.com/cucumber/cucumber/wiki/Gherkin>`__ inside +``nose2``. + +%package -n python3-planterbox +Summary: A plugin for nose2 implementing behavior-driven testing. +Provides: python-planterbox +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-planterbox +A plugin for running behavior-driven tests using +`gherkin <https://github.com/cucumber/cucumber/wiki/Gherkin>`__ inside +``nose2``. + +%package help +Summary: Development documents and examples for planterbox +Provides: python3-planterbox-doc +%description help +A plugin for running behavior-driven tests using +`gherkin <https://github.com/cucumber/cucumber/wiki/Gherkin>`__ inside +``nose2``. + +%prep +%autosetup -n planterbox-0.7.2 + +%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-planterbox -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.2-1 +- Package Spec generated @@ -0,0 +1 @@ +9ec3df700b1912912c0b9de95894de79 planterbox-0.7.2.tar.gz |