From dd2f61edf823e52e1729c507511d0db7d40e849d Mon Sep 17 00:00:00 2001 From: chengquan Date: Thu, 20 Feb 2020 16:15:26 +0800 Subject: [PATCH] Update python-sphinx support to python3 --- libcomps.spec | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/libcomps.spec b/libcomps.spec index 30319b7..8eda3fb 100644 --- a/libcomps.spec +++ b/libcomps.spec @@ -3,7 +3,7 @@ Name: libcomps Version: 0.1.8 -Release: 19 +Release: 20 Summary: Comps XML file manipulation library License: GPLv2+ URL: https://github.com/rpm-software-management/libcomps @@ -27,11 +27,7 @@ Development files for libcomps library. Summary: Documentation files for libcomps library Requires: %{name} = %{version}-%{release} BuildArch: noarch -%if %{with_python2} -BuildRequires: python2-sphinx -%else BuildRequires: python3-sphinx -%endif BuildRequires: doxygen %description help @@ -80,11 +76,7 @@ popd mkdir build-doc pushd build-doc -%if %{with_python2} -%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=2 -%else %cmake ../libcomps/ -DPYTHON_DESIRED:STRING=3 -%endif make %{?_smp_mflags} docs make %{?_smp_mflags} pydocs popd @@ -96,7 +88,6 @@ pushd build-py2 popd %endif - %if %{with_python3} pushd build-py3 %make_install @@ -145,7 +136,13 @@ popd %endif %changelog -* Wed Sep 26 2019 openEuler Buildteam - 0.1.8-18 +* Thu Feb 20 2020 chengquan - 0.1.8-20 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Update python-sphinx support to python3 + +* Wed Sep 26 2019 openEuler Buildteam - 0.1.8-19 - del requires * Tue Sep 24 2019 shenyangyang - 0.1.8-18 -- Gitee