remove useless %bcond's
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
1fb3753c4c
commit
fbdb3cd24f
@ -1,8 +1,5 @@
|
|||||||
%global srcname hypothesis
|
%global srcname hypothesis
|
||||||
|
|
||||||
%bcond_without python2
|
|
||||||
%bcond_without python3
|
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 3.12.0
|
Version: 3.12.0
|
||||||
Release: 4%{?dist}
|
Release: 4%{?dist}
|
||||||
@ -23,7 +20,6 @@ hand. It’s based on the Haskell library, Quickcheck, and is designed
|
|||||||
to integrate seamlessly into your existing Python unit testing work
|
to integrate seamlessly into your existing Python unit testing work
|
||||||
flow.
|
flow.
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-%{srcname}
|
%package -n python2-%{srcname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
@ -42,9 +38,7 @@ larger range of examples than you would ever want to write by
|
|||||||
hand. It’s based on the Haskell library, Quickcheck, and is designed
|
hand. It’s based on the Haskell library, Quickcheck, and is designed
|
||||||
to integrate seamlessly into your existing Python unit testing work
|
to integrate seamlessly into your existing Python unit testing work
|
||||||
flow.
|
flow.
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-%{srcname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -63,7 +57,6 @@ larger range of examples than you would ever want to write by
|
|||||||
hand. It’s based on the Haskell library, Quickcheck, and is designed
|
hand. It’s based on the Haskell library, Quickcheck, and is designed
|
||||||
to integrate seamlessly into your existing Python unit testing work
|
to integrate seamlessly into your existing Python unit testing work
|
||||||
flow.
|
flow.
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-python-%{version} -p1
|
%autosetup -n %{srcname}-python-%{version} -p1
|
||||||
@ -72,45 +65,28 @@ flow.
|
|||||||
%{__sed} -i -e 1,2d src/hypothesis/tools/mergedbs.py
|
%{__sed} -i -e 1,2d src/hypothesis/tools/mergedbs.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with python2}
|
|
||||||
%py2_build
|
%py2_build
|
||||||
%if %{without python3}
|
|
||||||
PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
PYTHONPATH=src READTHEDOCS=True sphinx-build-3 -b man docs docs/_build/man
|
PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
|
||||||
%py2_install
|
%py2_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%{__install} -Dp -m 644 docs/_build/man/hypothesis.1 \
|
%{__install} -Dp -m 644 docs/_build/man/hypothesis.1 \
|
||||||
$RPM_BUILD_ROOT%{_mandir}/man1/hypothesis.1
|
$RPM_BUILD_ROOT%{_mandir}/man1/hypothesis.1
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-%{srcname}
|
%files -n python2-%{srcname}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python2_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
%{_mandir}/man1/hypothesis.1*
|
%{_mandir}/man1/hypothesis.1*
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python3-%{srcname}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
%{_mandir}/man1/hypothesis.1*
|
%{_mandir}/man1/hypothesis.1*
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 3.12.0-4
|
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 3.12.0-4
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user