From 427e0d81eed5e4f4bd586fad3ab0bd5eb04d1c6b Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 23 Apr 2021 17:02:25 +0200 Subject: [PATCH] - versioned Obsoletes and python dependencies --- shiboken.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/shiboken.spec b/shiboken.spec index 326f82e..8b00bc6 100644 --- a/shiboken.spec +++ b/shiboken.spec @@ -24,14 +24,15 @@ BuildRequires: cmake >= 2.6 BuildRequires: libstdc++-devel BuildRequires: libxml2-devel >= 1:2.6.32 BuildRequires: libxslt-devel >= 1.1.19 -BuildRequires: python-devel >= 1:2.6 +%{?with_python2:BuildRequires: python-devel >= 1:2.6} +%{?with_python3:BuildRequires: python3-devel >= 1:3.2} BuildRequires: sphinx-pdg Requires: QtCore >= 4.5.0 Requires: QtXml >= 4.5.0 Requires: QtXmlPatterns >= 4.5.0 Requires: libxml2 >= 1:2.6.32 Requires: libxslt >= 1.1.19 -Requires: python +Requires: python >= 1:2.6 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -58,8 +59,8 @@ Shiboken - pliki do obsługi Pythona 2.x. Summary: Shiboken runtime library for Python 2.x Summary(pl.UTF-8): Biblioteka uruchomieniowa shiboken dla Pythona 2.x Group: Libraries/Python -Requires: python-libs -Obsoletes: shiboken-libs +Requires: python-libs >= 1:2.6 +Obsoletes: shiboken-libs < 1.2.2 %description -n python-shiboken Shiboken runtime library for Python 2.x. @@ -85,8 +86,8 @@ Shiboken - pliki do obsługi Pythona 3.x. Summary: Shiboken runtime library for Python 3.x Summary(pl.UTF-8): Biblioteka uruchomieniowa shiboken dla Pythona 3.x Group: Libraries/Python -Requires: python3-libs -Obsoletes: shiboken-libs +Requires: python3-libs >= 1:3.2 +Obsoletes: shiboken-libs < 1.2.2 %description -n python3-shiboken Shiboken runtime library for Python 3.x. -- 2.44.0