From 216c434776d56d8107c0d93681381e1c79fb7895 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 12 Apr 2023 05:19:02 +0000 Subject: automatic import of python-behave-html-formatter --- python-behave-html-formatter.spec | 223 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 python-behave-html-formatter.spec (limited to 'python-behave-html-formatter.spec') diff --git a/python-behave-html-formatter.spec b/python-behave-html-formatter.spec new file mode 100644 index 0000000..8d8b14d --- /dev/null +++ b/python-behave-html-formatter.spec @@ -0,0 +1,223 @@ +%global _empty_manifest_terminate_build 0 +Name: python-behave-html-formatter +Version: 0.9.10 +Release: 1 +Summary: HTML formatter for Behave +License: GNU General Public License v3 (GPLv3) +URL: https://github.com/behave-contrib/behave-html-formatter +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c8/53/42f94fcb2943d6fd56acc34aab0e65244c8f115b1ae9d98fa641a5874fd7/behave-html-formatter-0.9.10.tar.gz +BuildArch: noarch + +Requires: python3-behave + +%description +# HTML formatter for Behave + +To use it with behave create `behave.ini` file in project folder (or in home) with +following content: + +```ini +# -- FILE: behave.ini +# Define ALIAS for HtmlFormatter. +[behave.formatters] +html = behave_html_formatter:HTMLFormatter +``` + +and then use it by running behave with `-f`/`--format` parameter, e.g. + +```console +behave -f help +behave -f html +behave -f html -o behave-report.html +``` + +You can find information about behave and user-defined formatters in the +[behave docs](https://behave.readthedocs.io/en/latest/formatters.html). + +## Contributing + +You want to help with improving this software? Please create an issue in +our open bug tracker, or open a pull request directly. + +We use [tox](https://pypi.org/project/tox/) for running linting and tests, +e.g. + +```console +tox +tox -l +tox -e flake8,behave +``` + +For code formatting we use [black](https://pypi.org/project/black/), which +you can run using our Tox setup, e.g. + +```console +tox -e black +``` + +If you need to change CSS or JavaScript code: First edit the regular files, +then generate the minified versions like so: + +```console +tox -e minify +``` + + +%package -n python3-behave-html-formatter +Summary: HTML formatter for Behave +Provides: python-behave-html-formatter +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-behave-html-formatter +# HTML formatter for Behave + +To use it with behave create `behave.ini` file in project folder (or in home) with +following content: + +```ini +# -- FILE: behave.ini +# Define ALIAS for HtmlFormatter. +[behave.formatters] +html = behave_html_formatter:HTMLFormatter +``` + +and then use it by running behave with `-f`/`--format` parameter, e.g. + +```console +behave -f help +behave -f html +behave -f html -o behave-report.html +``` + +You can find information about behave and user-defined formatters in the +[behave docs](https://behave.readthedocs.io/en/latest/formatters.html). + +## Contributing + +You want to help with improving this software? Please create an issue in +our open bug tracker, or open a pull request directly. + +We use [tox](https://pypi.org/project/tox/) for running linting and tests, +e.g. + +```console +tox +tox -l +tox -e flake8,behave +``` + +For code formatting we use [black](https://pypi.org/project/black/), which +you can run using our Tox setup, e.g. + +```console +tox -e black +``` + +If you need to change CSS or JavaScript code: First edit the regular files, +then generate the minified versions like so: + +```console +tox -e minify +``` + + +%package help +Summary: Development documents and examples for behave-html-formatter +Provides: python3-behave-html-formatter-doc +%description help +# HTML formatter for Behave + +To use it with behave create `behave.ini` file in project folder (or in home) with +following content: + +```ini +# -- FILE: behave.ini +# Define ALIAS for HtmlFormatter. +[behave.formatters] +html = behave_html_formatter:HTMLFormatter +``` + +and then use it by running behave with `-f`/`--format` parameter, e.g. + +```console +behave -f help +behave -f html +behave -f html -o behave-report.html +``` + +You can find information about behave and user-defined formatters in the +[behave docs](https://behave.readthedocs.io/en/latest/formatters.html). + +## Contributing + +You want to help with improving this software? Please create an issue in +our open bug tracker, or open a pull request directly. + +We use [tox](https://pypi.org/project/tox/) for running linting and tests, +e.g. + +```console +tox +tox -l +tox -e flake8,behave +``` + +For code formatting we use [black](https://pypi.org/project/black/), which +you can run using our Tox setup, e.g. + +```console +tox -e black +``` + +If you need to change CSS or JavaScript code: First edit the regular files, +then generate the minified versions like so: + +```console +tox -e minify +``` + + +%prep +%autosetup -n behave-html-formatter-0.9.10 + +%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-html-formatter -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot - 0.9.10-1 +- Package Spec generated -- cgit v1.2.3