use common description
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
78c49c4ba2
commit
debf27443e
@ -29,41 +29,31 @@ BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
The distro (for: Linux Distribution) package provides information about the
|
||||
Linux distribution it runs on, such as a reliable machine-readable ID, or
|
||||
version information.
|
||||
|
||||
It is a renewed alternative implementation for Python's original
|
||||
platform.linux_distribution function, but it also provides much more
|
||||
functionality. An alternative implementation became necessary because
|
||||
Python 3.5 deprecated this function, and Python 3.7 is expected to remove it
|
||||
altogether. Its predecessor function platform.dist was already deprecated since
|
||||
Python 2.6 and is also expected to be removed in Python 3.7. Still, there are
|
||||
many cases in which access to that information is needed. See Python issue 1322
|
||||
%global _description \
|
||||
The distro (for: Linux Distribution) package provides information about the\
|
||||
Linux distribution it runs on, such as a reliable machine-readable ID, or\
|
||||
version information.\
|
||||
\
|
||||
It is a renewed alternative implementation for Python's original\
|
||||
platform.linux_distribution function, but it also provides much more\
|
||||
functionality. An alternative implementation became necessary because\
|
||||
Python 3.5 deprecated this function, and Python 3.7 is expected to remove it\
|
||||
altogether. Its predecessor function platform.dist was already deprecated since\
|
||||
Python 2.6 and is also expected to be removed in Python 3.7. Still, there are\
|
||||
many cases in which access to that information is needed. See Python issue 1322\
|
||||
for more information.
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python2-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||
|
||||
Requires: /usr/bin/lsb_release
|
||||
|
||||
%description -n python2-%{pypi_name}
|
||||
The distro (for: Linux Distribution) package provides information about the
|
||||
Linux distribution it runs on, such as a reliable machine-readable ID, or
|
||||
version information.
|
||||
%description -n python2-%{pypi_name} %{_description}
|
||||
|
||||
It is a renewed alternative implementation for Python's original
|
||||
platform.linux_distribution function, but it also provides much more
|
||||
functionality. An alternative implementation became necessary because
|
||||
Python 3.5 deprecated this function, and Python 3.7 is expected to remove it
|
||||
altogether. Its predecessor function platform.dist was already deprecated since
|
||||
Python 2.6 and is also expected to be removed in Python 3.7. Still, there are
|
||||
many cases in which access to that information is needed. See Python issue 1322
|
||||
for more information.
|
||||
|
||||
This package provides python2 module.
|
||||
Python 2 version.
|
||||
|
||||
%if 0%{with_python3}
|
||||
%package -n python3-%{pypi_name}
|
||||
@ -72,21 +62,9 @@ Summary: %{summary}
|
||||
|
||||
Requires: /usr/bin/lsb_release
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
The distro (for: Linux Distribution) package provides information about the
|
||||
Linux distribution it runs on, such as a reliable machine-readable ID, or
|
||||
version information.
|
||||
%description -n python3-%{pypi_name} %{_description}
|
||||
|
||||
It is a renewed alternative implementation for Python's original
|
||||
platform.linux_distribution function, but it also provides much more
|
||||
functionality. An alternative implementation became necessary because
|
||||
Python 3.5 deprecated this function, and Python 3.7 is expected to remove it
|
||||
altogether. Its predecessor function platform.dist was already deprecated since
|
||||
Python 2.6 and is also expected to be removed in Python 3.7. Still, there are
|
||||
many cases in which access to that information is needed. See Python issue 1322
|
||||
for more information.
|
||||
|
||||
This package provides python3 module.
|
||||
Python 3 version.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
|
||||
Loading…
Reference in New Issue
Block a user