Fix python3 package names with respect to CentOS for consistency with python34 names

This commit is contained in:
Frédéric Pierret 2017-10-15 19:01:50 +02:00
parent 766f83de8e
commit d0659016c5
No known key found for this signature in database
GPG Key ID: 1DABC232BE02201E

View File

@ -15,7 +15,11 @@ URL: http://www.qubes-os.org
Requires: udev
Requires: %{name}-libs
Requires: ImageMagick
%if 0%{?rhel} >= 7
Requires: python34-qubesimgconverter
%else
Requires: python3-qubesimgconverter
%endif
BuildRequires: qubes-libvchan-devel
BuildRequires: python-setuptools
%if 0%{?rhel} >= 7
@ -39,18 +43,23 @@ Requires: pycairo
%description -n python2-qubesimgconverter
Python package qubesimgconverter
%if 0%{?rhel} >= 7
%package -n python34-qubesimgconverter
Summary: Python package qubesimgconverter
Requires: python34
Requires: python34-cairo
%description -n python34-qubesimgconverter
Python package qubesimgconverter
%else
%package -n python3-qubesimgconverter
Summary: Python package qubesimgconverter
%if 0%{?rhel} >= 7
Requires: python34
Requires: pycairo
%else
Requires: python3
Requires: python3-cairo
%endif
%description -n python3-qubesimgconverter
Python package qubesimgconverter
%endif
%package devel
Summary: Development headers for qubes-utils
@ -115,7 +124,11 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/qubesimgconverter/test.py*
%{python_sitelib}/qubesimgconverter-%{version}-py?.?.egg-info/*
%if 0%{?rhel} >= 7
%files -n python34-qubesimgconverter
%else
%files -n python3-qubesimgconverter
%endif
%{python3_sitelib}/qubesimgconverter/__init__.py
%{python3_sitelib}/qubesimgconverter/imggen.py
%{python3_sitelib}/qubesimgconverter/test.py