From ad5bb29b2bef8755afab79830350e3ffa53b8857 Mon Sep 17 00:00:00 2001 From: Raphael Groner Date: Aug 01 2019 08:12:23 +0000 Subject: group BR by python version and subpackage --- diff --git a/python-pyvirtualize.spec b/python-pyvirtualize.spec index 2addc03..22c6983 100644 --- a/python-pyvirtualize.spec +++ b/python-pyvirtualize.spec @@ -39,26 +39,6 @@ URL: https://github.com/rocky1109/%{srcname} Source0: %{url}/archive/%{commit0}.tar.gz#/%{srcname}-%{commit0}.tar.gz BuildArch: noarch -%if 0%{?with_python2} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%endif -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools -%if 0%{?python3_other_pkgversion} -BuildRequires: python%{python3_other_pkgversion}-devel -BuildRequires: python%{python3_other_pkgversion}-setuptools -%endif -%if 0%{?rhel} -BuildRequires: python2-sphinx -# FIXME use python2 prefix when update is available in repo -BuildRequires: python-sphinx_rtd_theme -%endif -%if 0%{?fedora} -BuildRequires: python%{python3_pkgversion}-sphinx -BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme -%endif -BuildRequires: web-assets-devel %description %desc @@ -66,6 +46,11 @@ BuildRequires: web-assets-devel %if 0%{?with_python2} %package -n python2-%{modname} Summary: %{summary} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-sphinx +# FIXME use python2 prefix when update is available in repo +BuildRequires: python-sphinx_rtd_theme %{?python_provide:%python_provide python2-%{srcname}} Requires: python2-pyvmomi @@ -76,6 +61,10 @@ Requires: python2-pyvmomi %if 0%{?with_python3} %package -n python%{python3_pkgversion}-%{modname} Summary: %{summary} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-sphinx +BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} Requires: python%{python3_pkgversion}-pyvmomi @@ -86,6 +75,8 @@ Requires: python%{python3_pkgversion}-pyvmomi %if 0%{?python3_other_pkgversion} %package -n python%{python3_other_pkgversion}-%{modname} Summary: %{summary} +BuildRequires: python%{python3_other_pkgversion}-devel +BuildRequires: python%{python3_other_pkgversion}-setuptools %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}} Requires: python%{python3_other_pkgversion}-pyvmomi @@ -95,6 +86,7 @@ Requires: python%{python3_other_pkgversion}-pyvmomi %package doc Summary: Documentation files for %{srcname} +BuildRequires: web-assets-devel Requires: js-jquery # some js files of documentation are licensed with BSD License: ASL 2.0 and BSD @@ -159,6 +151,7 @@ ln -fs %{_jsdir}/jquery/3/jquery.js docs/build/html/_static %changelog * Thu Aug 01 2019 Raphael Groner - 0.9-6.20181003git57d2307 - drop brand +- group BR by python version and subpackage * Fri Jul 26 2019 Fedora Release Engineering - 0.9-5.20181003git57d2307 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild