2019-12-05 16:58:33 +08:00
|
|
|
%?python_enable_dependency_generator
|
|
|
|
|
Name: python-behave
|
|
|
|
|
Version: 1.2.6
|
2023-07-29 16:07:13 +08:00
|
|
|
Release: 7
|
2019-12-05 16:58:33 +08:00
|
|
|
Summary: A tool for behavior-driven development, Python style
|
2022-05-10 16:53:55 +08:00
|
|
|
License: BSD-2-Clause
|
2019-12-05 16:58:33 +08:00
|
|
|
URL: http://pypi.python.org/pypi/behave
|
|
|
|
|
Source0: https://github.com/behave/behave/archive/v%{version}/behave-%{version}.tar.gz
|
2020-09-11 20:52:50 +08:00
|
|
|
# Upstream issue: https://github.com/behave/behave/issues/755
|
|
|
|
|
Patch0000: 0001-Backport-for-py38-fixes.patch
|
2021-01-11 19:02:44 +08:00
|
|
|
Patch0001: change-required-pytest.patch
|
2022-01-08 16:09:15 +08:00
|
|
|
Patch0002: remove-attribute-use_2to3.patch
|
2023-07-29 16:07:13 +08:00
|
|
|
Patch0003: sphinx-extlinks.patch
|
|
|
|
|
|
2019-12-05 16:58:33 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Behave is behaviour-driven development, Python style.
|
|
|
|
|
Behavior-driven development (or BDD) is an agile software development
|
|
|
|
|
technique that encourages collaboration between developers, QA and non-
|
|
|
|
|
technical or business participants in a software project.
|
|
|
|
|
behave uses tests written in a natural language style, backed up
|
|
|
|
|
by Python code.
|
|
|
|
|
|
|
|
|
|
%package -n python3-behave
|
|
|
|
|
Summary: Python-behave with python 3 support.
|
|
|
|
|
%{?python_provide:%python_provide python3-behave}
|
2022-01-08 16:09:15 +08:00
|
|
|
BuildRequires: python3-devel python3-setuptools python3-hamcrest python3-mock python3-parse
|
2019-12-05 16:58:33 +08:00
|
|
|
BuildRequires: python3-parse_type >= 0.4.2 python3-pytest python3-six
|
|
|
|
|
Conflicts: python2-behave < 1.2.6
|
|
|
|
|
|
|
|
|
|
%description -n python3-behave
|
|
|
|
|
Behave is behaviour-driven development, Python style.
|
|
|
|
|
Behavior-driven development (or BDD) is an agile software development
|
|
|
|
|
technique that encourages collaboration between developers, QA and non-
|
|
|
|
|
technical or business participants in a software project.
|
|
|
|
|
behave uses tests written in a natural language style, backed up
|
|
|
|
|
by Python code.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: This package contains help documents
|
|
|
|
|
BuildRequires: help2man python3-sphinx python3-sphinx-bootstrap-theme
|
|
|
|
|
Requires: python3-behave = %{version}-%{release}
|
|
|
|
|
Provides: python-behave-doc = %{version}-%{release}
|
|
|
|
|
Obsoletes: python-behave-doc < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Files for help with plexus-component-api.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n behave-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
make SPHINXBUILD=sphinx-build-3 html -C docs
|
|
|
|
|
rm -rf build/docs/html/.buildinfo
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
|
%py3_install
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} help2man --no-info \
|
|
|
|
|
--name="Run a number of feature tests with behave." \
|
|
|
|
|
--output=behave.1 %{buildroot}%{_bindir}/behave
|
|
|
|
|
install -Dpm0644 behave.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
%files -n python3-behave
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
%{_bindir}/behave
|
|
|
|
|
%{python3_sitelib}/behave-*.egg-info/
|
|
|
|
|
%{python3_sitelib}/behave/
|
|
|
|
|
%{python3_sitelib}/setuptools_behave.py
|
|
|
|
|
%{python3_sitelib}/__pycache__/setuptools_behave.*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc README.rst build/docs/html
|
|
|
|
|
%doc %{_mandir}/man1/behave.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-07-29 16:07:13 +08:00
|
|
|
* Sat Jul 29 2023 xu_ping <707078654@qq.com> - 1.2.6-7
|
|
|
|
|
- Fix build error due to sphinx upgrade.
|
|
|
|
|
|
2022-05-10 16:53:55 +08:00
|
|
|
* Tue May 10 2022 wulei <wulei80@h-partners.com> - 1.2.6-6
|
|
|
|
|
- License compliance rectification
|
|
|
|
|
|
2022-01-08 16:09:15 +08:00
|
|
|
* Sat Jan 08 2022 wangkai<wangkai385@huawei.com> - 1.2.6-5
|
|
|
|
|
- remove attribute use_2to3 and buildrequires python3-nose
|
|
|
|
|
|
2021-01-11 19:02:44 +08:00
|
|
|
* Fri Jan 8 2021 wutao<wutao61@huawei.com> - 1.2.6-4
|
|
|
|
|
- fix test failure because of pytest upgrade
|
|
|
|
|
|
2020-09-11 20:52:50 +08:00
|
|
|
* Fri Sep 11 2020 wangxiao<wangxiao65@huawei.com> - 1.2.6-3
|
|
|
|
|
- fix test error
|
2019-12-05 16:58:33 +08:00
|
|
|
* Thu Dec 05 2019 gulining<gulining1@huawei.com> - 1.2.6-2
|
|
|
|
|
- Pakcage init
|