[WIP] Fix python subpackage names to follow guidelines
This commit is contained in:
parent
83333062a4
commit
8cbc2b32b0
24
lvm2.spec
24
lvm2.spec
@ -453,27 +453,39 @@ This package contains shared lvm2 libraries for applications.
|
|||||||
|
|
||||||
%if %{enable_python}
|
%if %{enable_python}
|
||||||
|
|
||||||
%package python-libs
|
# TODO: rename to python2-lvm2: use %%package -n python2-lvm2 ?
|
||||||
|
%package python2-libs
|
||||||
Summary: Python module to access LVM
|
Summary: Python module to access LVM
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Provides: python-lvm = %{version}-%{release}
|
# TODO: Why python2-lvm? Why not python2-lvm2?
|
||||||
|
Provides: python2-lvm = %{version}-%{release}
|
||||||
|
#%{?python_provide:%python_provide python2-lvm2}
|
||||||
|
#%{?python_provide:%python_provide python2-lvm}
|
||||||
Obsoletes: python-lvm < 2.02.98-2
|
Obsoletes: python-lvm < 2.02.98-2
|
||||||
|
Obsoletes: python2-lvm < 2.02.98-2
|
||||||
|
# TODO: Remove before python
|
||||||
|
Provides: %{name}-python-libs = %{version}-%{release} # for compatibility with old name
|
||||||
|
Obsoletes: %{name}-python-libs < %{version}-%{release}
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description python-libs
|
%description python2-libs
|
||||||
Python module to allow the creation and use of LVM
|
Python module to allow the creation and use of LVM
|
||||||
logical volumes, physical volumes, and volume groups.
|
logical volumes, physical volumes, and volume groups.
|
||||||
|
|
||||||
%files python-libs
|
%files python2-libs
|
||||||
%{python_sitearch}/*
|
%{python2_sitearch}/*
|
||||||
|
|
||||||
|
# TODO: rename to python3-lvm2: use %%package -n python3-lvm2 ?
|
||||||
%package python3-libs
|
%package python3-libs
|
||||||
Summary: Python 3 module to access LVM
|
Summary: Python 3 module to access LVM
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
#%{?python_provide:%python_provide python3-lvm2}
|
||||||
|
#%{?python_provide:%python_provide python3-lvm}
|
||||||
|
# Why python3-lvm and not python3-lvm2?
|
||||||
Provides: python3-lvm = %{version}-%{release}
|
Provides: python3-lvm = %{version}-%{release}
|
||||||
Obsoletes: python-lvm < 2.02.98-2
|
Obsoletes: python3-lvm < 2.02.98-2
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description python3-libs
|
%description python3-libs
|
||||||
|
Loading…
Reference in New Issue
Block a user