Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1459625

Summary: Strange choices in spec file for rpm build.
Product: [oVirt] ovirt-engine-sdk-python Reporter: Fabrice Bacchella <fabrice.bacchella>
Component: Packaging.rpmAssignee: Fabrice Bacchella <fabrice.bacchella>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.1.4CC: bugs, fabrice.bacchella, jbelka, juan.hernandez, lsvaty, lveyde, mperina, omachace
Target Milestone: ovirt-4.1.5Keywords: CodeChange
Target Release: 4.1.6Flags: rule-engine: ovirt-4.1+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ovirt-engine-sdk4-4.1.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-23 08:02:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Fabrice Bacchella 2017-06-07 15:40:14 UTC
If I look at https://github.com/oVirt/ovirt-engine-sdk/blob/master/packaging/spec.el7.in,

I see:

Provides: ovirt-engine-sdk = %{version}-%{release}
Obsoletes: ovirt-engine-sdk < 3.3.0.6

It should not provides as a "generic SDK", without python in the name, it's the python sdk.

Both SDK 3 and 4 can be used at the same time, that's why they have different name. So why sdk4 obsoletes the sdk3, preventing to install both at the same time ?

Comment 1 Juan Hernández 2017-06-07 15:55:32 UTC
That is history. Version 3 of the SDK used to be named 'ovirt-engine-sdk', till version 3.3.0.6, when it was renamed to 'ovirt-engine-sdk-python'.

These lines were carried over when version 4 of the SDK was created. They aren't needed and should be removed. However they shouldn't prevent the installation of a recent version 3 of the SDK, as it is named 'ovirt-engine-sdk-python'.

Comment 2 Juan Hernández 2017-06-07 16:19:32 UTC
Care to submit a patch to gerrit to remove those lines from the .spec files? It is simple, and a good way to get familiar with gerrit.

Comment 3 Lukas Svaty 2017-07-11 06:38:56 UTC
Proposing CodeChange as no additional functionality was added nor removed.

Comment 4 Jiri Belka 2017-08-07 07:54:06 UTC
ok, python-ovirt-engine-sdk4-4.1.6-1

no more Provides & Obsoletes in the spec file

# rpm2cpio python-ovirt-engine-sdk4-4.1.6-1.el7ev.src.rpm | cpio --to-stdout -i python-ovirt-engine-sdk4.spec 2>/dev/null | grep -qE '^(Provides|Obsoletes)' ; echo $?
1