Add support for python34-sphinx: package is provided in Qubes repository

This commit is contained in:
Frédéric Pierret 2017-10-26 17:01:05 +02:00
parent 26a96fd034
commit 3b8fec933a
No known key found for this signature in database
GPG Key ID: 1DABC232BE02201E

View File

@ -12,7 +12,7 @@ BuildRequires: python2-devel
%if 0%{?rhel} >= 7 %if 0%{?rhel} >= 7
BuildRequires: python34-setuptools BuildRequires: python34-setuptools
BuildRequires: python34-devel BuildRequires: python34-devel
BuildRequires: python-sphinx BuildRequires: python34-sphinx
BuildRequires: python34-dbus BuildRequires: python34-dbus
Requires: python34-qubesadmin Requires: python34-qubesadmin
%else %else
@ -69,11 +69,7 @@ Python3 module qubesadmin.
%build %build
%if 0%{?rhel} >= 7
make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build man
%else
make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} man make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} man
%endif
%install %install
rm -rf build rm -rf build
@ -81,15 +77,9 @@ rm -rf build
rm -rf build rm -rf build
%make_install PYTHON=%{__python3} %make_install PYTHON=%{__python3}
%if 0%{?rhel} >= 7
make -C doc DESTDIR=$RPM_BUILD_ROOT \
PYTHON=%{__python3} SPHINXBUILD=sphinx-build \
install
%else
make -C doc DESTDIR=$RPM_BUILD_ROOT \ make -C doc DESTDIR=$RPM_BUILD_ROOT \
PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} \ PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} \
install install
%endif
%files %files