Bug 1763080

Summary: Rename python3-gssapi rpm to python34-gssapi rpm
Product: [Fedora] Fedora EPEL Reporter: Steve Traylen <steve.traylen>
Component: python3-gssapiAssignee: Robbie Harwood <rharwood>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: rharwood, tis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python3-gssapi-1.3.0-4.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-17 04:39:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Traylen 2019-10-18 08:39:27 UTC
Following on from:

https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-dd9283f5d0


python34-gssapi is missing which is what the python3-gssapi package should result in for epel6.  

The following patch is I think correct and when I build on a CentOS 6
machine it looks good I would say.

./RPMS/x86_64/python34-gssapi-1.3.0-4.el6.x86_64.rpm
./RPMS/x86_64/python3-gssapi-debuginfo-1.3.0-4.el6.x86_64.rpm
./SRPMS/python3-gssapi-1.3.0-4.el6.src.rpm


$ rpm -qp --provides ./RPMS/x86_64/python34-gssapi-1.3.0-4.el6.x86_64.rpm | grep -v so
python3-gssapi = 1.3.0-4.el6
python34-gssapi = 1.3.0-4.el6
python34-gssapi(x86-64) = 1.3.0-4.el6


$ rpm -qp --obsoletes ./RPMS/x86_64/python34-gssapi-1.3.0-4.el6.x86_64.rpm | grep -v so
python3-gssapi < 1.3.0-4


So everything perfect there I think.

However in mock is different story

First 

fedpkg mockbuild 



will fail where as 

fedpkg srpm
mock -r epel-6-x86_64 

error: line 41: %package -n python3-gssapi: package python3-gssapi already exists
error: query of specfile /home/straylen/pkgs/python3-gssapi/python3-gssapi.spec failed, can't parse


I think that is clash between OS and mock ...

The following does execute 

$ fedpkg srpm
$  mock -r epel-6-x86_64 --rebuild ./python3-gssapi-1.3.0-3.el6.src.rpm

results in


results_python3-gssapi/1.3.0/3.el6/python3-gssapi-1.3.0-3.el6.src.rpm
results_python3-gssapi/1.3.0/3.el6/python3-gssapi-1.3.0-3.el6.x86_64.rpm


It is as if %{python3_pkgversion} is wrong inside mock.

It used:

python3-rpm-macros-3-14.el6 which is the same as I have on my CentOS 6 node.

I'm now confused....



diff --git a/python3-gssapi.spec b/python3-gssapi.spec
index 47c558b..aaa7c45 100644
--- a/python3-gssapi.spec
+++ b/python3-gssapi.spec
@@ -7,7 +7,7 @@
 
 Name:           python3-gssapi
 Version:        1.3.0
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Python 3 Bindings for GSSAPI (RFC 2743/2744 and extensions)
 
 License:        ISC
@@ -16,8 +16,6 @@ Source0:        https://github.com/pythongssapi/%{mname}/releases/download/v%{ve
 
 # Patches
 
-Requires:       %{python3}-six
-Requires:       %{python3}-decorator
 
 BuildRequires:  krb5-devel >= 1.10
 BuildRequires:  krb5-libs >= 1.10
@@ -40,6 +38,16 @@ RFC 2743, as well as multiple extensions.
 
 %description %_description
 
+%package -n %{python3}-gssapi
+Summary:        Python 3 Bindings for GSSAPI (RFC 2743/2744 and extensions)
+Requires:       %{python3}-six
+Requires:       %{python3}-decorator
+%{?python_provide:%python_provide %{python3}-gssapi}
+Provides: python3-gssapi = %{version}-%{release}
+Obsoletes: python3-gssapi < 1.3.0-4
+
+
+%description -n %{python3}-gssapi %_description
 
 %prep
 %setup -q -n %{mname}-%{version}
@@ -59,13 +67,16 @@ RFC 2743, as well as multiple extensions.
 %endif
 
 
-%files
+%files -n %{python3}-gssapi
 %doc README.txt LICENSE.txt
 %{python3_sitearch}/gssapi
 %{python3_sitearch}/gssapi-%{version}-py%{python3_version}.egg-info
 
 
 %changelog
+* Fri Oct 18 2019 Steve Traylen <steve.traylen> - 1.3.0-4
+- Name python3 package as (dynamically) python34-gssapi
+
 * Tue Sep 24 2019 Robbie Harwood <Mrharwood> - 1.3.0-3
 - More of the same
 - Resolves: #1755043



Docs, I only know of
https://fedoraproject.org/wiki/User:Bkabrda/EPEL7_Python3
has to be something better...

Comment 1 Tuomo Soini 2019-10-18 09:19:00 UTC
That's best document I know of.

Key thing is that this package is not compatible with epel7, see especially use of %{python3} when there should be python%{python3_pkgversion}.

Example from doc:

%package -n python%{python3_pkgversion}-%{srcname}

Comment 2 Steve Traylen 2019-10-18 14:12:20 UTC
I should have said.

So indeed I tried swapping to the more normal python%{python3_pgkversion} rather than relying on the current

%global python3 python%{python3_pkgversion} that is already in the .spec file.

With this change I had the same weird problem only with in mock.

Comment 3 Robbie Harwood 2019-10-18 20:35:29 UTC
You've filed this against epel7.  Did you mean to file it against el6, or am I missing something?

Comment 4 Steve Traylen 2019-10-31 09:25:10 UTC
Yes el6 of course.

Comment 5 Tuomo Soini 2019-10-31 09:28:54 UTC
This same bug is both epel6 and epel7.

Comment 6 Robbie Harwood 2019-10-31 16:39:42 UTC
Tuomo, I don't believe that's correct.  See: https://koji.fedoraproject.org/koji/buildinfo?buildID=1226511

(The package itself is named python3-gssapi in epel7 because python-gssapi is shipped in el7, but only in python2 flavor.  This is in accordance with epel policy.)

Comment 7 Robbie Harwood 2019-10-31 17:27:22 UTC
Filed https://bugzilla.redhat.com/show_bug.cgi?id=1767576 for the fedpkg issue.

Comment 8 Fedora Update System 2019-10-31 17:28:58 UTC
FEDORA-EPEL-2019-b9d90e26c9 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-b9d90e26c9

Comment 9 Fedora Update System 2019-11-02 05:27:00 UTC
python3-gssapi-1.3.0-4.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-b9d90e26c9

Comment 10 Fedora Update System 2019-11-17 04:39:22 UTC
python3-gssapi-1.3.0-4.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.