URL: https://github.com/freeipa/freeipa/pull/601 Author: HonzaCholasta Title: #601: spec file: always provide python package aliases Action: opened
PR body: """ Provide python-ipa* aliases for python2-ipa* subpackages when the python_provide RPM macro is not available. """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/601/head:pr601 git checkout pr601
From 250f3a439312e0a8a10183822be2f76a76ae3063 Mon Sep 17 00:00:00 2001 From: Jan Cholasta <jchol...@redhat.com> Date: Wed, 15 Mar 2017 14:23:10 +0100 Subject: [PATCH] spec file: always provide python package aliases Provide python-ipa* aliases for python2-ipa* subpackages when the python_provide RPM macro is not available. --- freeipa.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freeipa.spec.in b/freeipa.spec.in index 20f8a4d..6f69746 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -315,6 +315,7 @@ Summary: Python libraries used by IPA server Group: System Environment/Libraries BuildArch: noarch %{?python_provide:%python_provide python2-ipaserver} +%{!?python_provide:Provides: python-ipaserver = %{version}-%{release}} Requires: %{name}-server-common = %{version}-%{release} Requires: %{name}-common = %{version}-%{release} Requires: python2-ipaclient = %{version}-%{release} @@ -504,6 +505,7 @@ Summary: Python libraries used by IPA client Group: System Environment/Libraries BuildArch: noarch %{?python_provide:%python_provide python2-ipaclient} +%{!?python_provide:Provides: python-ipaclient = %{version}-%{release}} Requires: %{name}-client-common = %{version}-%{release} Requires: %{name}-common = %{version}-%{release} Requires: python2-ipalib = %{version}-%{release} @@ -598,10 +600,13 @@ Group: System Environment/Libraries BuildArch: noarch Conflicts: %{name}-python < 4.2.91 %{?python_provide:%python_provide python2-ipalib} +%{!?python_provide:Provides: python-ipalib = %{version}-%{release}} Provides: python2-ipapython = %{version}-%{release} %{?python_provide:%python_provide python2-ipapython} +%{!?python_provide:Provides: python-ipapython = %{version}-%{release}} Provides: python2-ipaplatform = %{version}-%{release} %{?python_provide:%python_provide python2-ipaplatform} +%{!?python_provide:Provides: python-ipaplatform = %{version}-%{release}} Requires: %{name}-common = %{version}-%{release} Requires: python-gssapi >= 1.2.0 Requires: gnupg @@ -719,6 +724,7 @@ BuildArch: noarch Obsoletes: %{name}-tests < 4.2.91 Provides: %{name}-tests = %{version}-%{release} %{?python_provide:%python_provide python2-ipatests} +%{!?python_provide:Provides: python-ipatests = %{version}-%{release}} Requires: python2-ipaclient = %{version}-%{release} Requires: python2-ipaserver = %{version}-%{release} Requires: tar
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code