!2 pytest: delete unnecessary buildrequires
Merge pull request !2 from Grooooot/master
This commit is contained in:
commit
9e686240f1
15
pytest.spec
15
pytest.spec
@ -6,14 +6,14 @@
|
||||
|
||||
Name: pytest
|
||||
Version: 3.6.4
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A mature full-featured Python testing tool
|
||||
License: MIT
|
||||
URL: http://pytest.org
|
||||
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
%if 0%{?with_help}
|
||||
BuildRequires: %{_bindir}/sphinx-build-3 python3-sphinxcontrib-trio %{_bindir}/rst2html
|
||||
BuildRequires: %{_bindir}/sphinx-build-3 %{_bindir}/rst2html
|
||||
%endif
|
||||
|
||||
%global _description \
|
||||
@ -30,8 +30,6 @@ BuildRequires: python2-atomicwrites python2-attrs python2-devel python2-funcsig
|
||||
BuildRequires: python2-hypothesis python2-more-itertools >= 4.0.0 python2-pluggy
|
||||
BuildRequires: python2-py >= %{pylib_version} python2-setuptools
|
||||
BuildRequires: python2-setuptools_scm python2-six
|
||||
BuildRequires: python2-decorator python2-jinja2 python2-mock python2-nose
|
||||
BuildRequires: python2-twisted python2-pytest-timeout
|
||||
Requires: python2-atomicwrites python2-attrs python2-funcsigs
|
||||
Requires: python2-more-itertools >= 4.0.0 python2-pluggy python2-six
|
||||
Requires: python2-py >= %{pylib_version} python2-setuptools
|
||||
@ -48,8 +46,6 @@ Summary: %{summary}
|
||||
BuildRequires: python3-atomicwrites python3-attrs python3-devel python3-hypothesis
|
||||
BuildRequires: python3-more-itertools python3-pluggy python3-py >= %{pylib_version}
|
||||
BuildRequires: python3-setuptools python3-setuptools_scm python3-six
|
||||
BuildRequires: python3-argcomplete python3-decorator python3-jinja2
|
||||
BuildRequires: python3-mock python3-nose python3-twisted python3-pytest-timeout
|
||||
Requires: python3-atomicwrites python3-attrs python3-more-itertools
|
||||
Requires: python3-pluggy python3-py >= %{pylib_version}
|
||||
Requires: python3-setuptools python3-six
|
||||
@ -73,9 +69,6 @@ Obsoletes: platform-python-%{name} < %{version}-%{release}
|
||||
%py3_build
|
||||
|
||||
%if 0%{?with_help}
|
||||
for l in doc/* ; do
|
||||
make -C $l html PYTHONPATH=$(pwd)/src SPHINXBUILD=%{_bindir}/sphinx-build-3
|
||||
done
|
||||
for f in README CHANGELOG CONTRIBUTING ; do
|
||||
rst2html ${f}.rst > ${f}.html
|
||||
done
|
||||
@ -100,10 +93,6 @@ done
|
||||
|
||||
%if 0%{?with_help}
|
||||
install -d _htmldocs/html
|
||||
for l in doc/* ; do
|
||||
rm ${l}/_build/html/.buildinfo
|
||||
mv ${l}/_build/html _htmldocs/html/${l##doc/}
|
||||
done
|
||||
%endif
|
||||
|
||||
find $RPM_BUILD_ROOT{%{python2_sitelib},%{python3_sitelib}} \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user