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...
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}
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.
You've filed this against epel7. Did you mean to file it against el6, or am I missing something?
Yes el6 of course.
This same bug is both epel6 and epel7.
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.)
Filed https://bugzilla.redhat.com/show_bug.cgi?id=1767576 for the fedpkg issue.
FEDORA-EPEL-2019-b9d90e26c9 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-b9d90e26c9
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
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.