Move %python_provide after BuildArch
Also add %python_provide macro for python3 subpackages and other small fixups.
This commit is contained in:
parent
a919a3c121
commit
590e1f20d7
|
@ -54,28 +54,32 @@ The %{name}-devel package contains libraries and header files for
|
|||
developing applications that use %{name}.
|
||||
|
||||
%package -n python2-%{name}
|
||||
%{?python_provide:%python_provide python2-%{name}}
|
||||
# Remove before F30
|
||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: %{name}-python < %{version}-%{release}
|
||||
Summary: Python2 client libraries and plug-in support for %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-python-clibs
|
||||
Requires: python2-%{name}-clibs
|
||||
BuildArch: noarch
|
||||
%{?python_provide:%python_provide python2-%{name}}
|
||||
# Remove before F30
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
Obsoletes: %{name}-python < %{version}-%{release}
|
||||
|
||||
%description -n python2-%{name}
|
||||
The %{name}-python package contains python client libraries as
|
||||
well as python framework support and open source plug-ins written in python.
|
||||
This package contains python client libraries as well as python
|
||||
framework support and open source plug-ins written in python.
|
||||
|
||||
%package python-clibs
|
||||
%package -n python2-%{name}-clibs
|
||||
Summary: Python2 C extension module for %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-%{name}-clibs}
|
||||
# Remove before F30
|
||||
Provides: %{name}-python-clibs = %{version}-%{release}
|
||||
Provides: %{name}-python-clibs%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: %{name}-python-clibs < %{version}-%{release}
|
||||
|
||||
%description python-clibs
|
||||
The %{name}-python-clibs package contains python2 client C extension
|
||||
libraries.
|
||||
%description -n python2-%{name}-clibs
|
||||
This package contains python2 client C extension libraries.
|
||||
|
||||
|
||||
%package -n python3-%{name}
|
||||
|
@ -84,19 +88,20 @@ Group: System Environment/Libraries
|
|||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
Requires: python3-%{name}-clibs
|
||||
%{?python_provide:%python_provide python3-%{name}}
|
||||
|
||||
%description -n python3-%{name}
|
||||
The python3-%{name} package contains python 3 client libraries as
|
||||
well as python framework support and open source plug-ins written in python 3.
|
||||
This contains python 3 client libraries as well as python framework
|
||||
support and open source plug-ins written in python 3.
|
||||
|
||||
%package -n python3-%{name}-clibs
|
||||
Summary: Python 3 C extension module for %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-%{name}-clibs}
|
||||
|
||||
%description -n python3-%{name}-clibs
|
||||
The python3-%{name}-clibs package contains python 3 client C extension
|
||||
libraries.
|
||||
This package contains python 3 client C extension libraries.
|
||||
|
||||
%package smis-plugin
|
||||
Summary: Files for SMI-S generic array support for %{name}
|
||||
|
@ -413,7 +418,7 @@ fi
|
|||
%{python_sitelib}/lsm/lsmcli/cmdline.*
|
||||
|
||||
# Compiled C files for python library
|
||||
%files python-clibs
|
||||
%files -n python2-%{name}-clibs
|
||||
%{python_sitelib}/lsm/_clib.*
|
||||
|
||||
%files -n python3-%{name}
|
||||
|
@ -533,8 +538,9 @@ fi
|
|||
|
||||
%changelog
|
||||
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.0-4
|
||||
- Python 2 binary package renamed to python2-libstoragemgmt
|
||||
- Python 2 binary packages renamed to python2-libstoragemgmt and python2-libstoragemgmt-clibs
|
||||
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||
- %%python_provide added for all four python subpackages
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
|
Loading…
Reference in New Issue