use common description

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2017-01-01 21:18:13 +01:00
parent 78c49c4ba2
commit debf27443e

View File

@ -29,41 +29,31 @@ BuildRequires: python3-setuptools
BuildRequires: python3-devel BuildRequires: python3-devel
%endif %endif
%description %global _description \
The distro (for: Linux Distribution) package provides information about the The distro (for: Linux Distribution) package provides information about the\
Linux distribution it runs on, such as a reliable machine-readable ID, or Linux distribution it runs on, such as a reliable machine-readable ID, or\
version information. version information.\
\
It is a renewed alternative implementation for Python's original It is a renewed alternative implementation for Python's original\
platform.linux_distribution function, but it also provides much more platform.linux_distribution function, but it also provides much more\
functionality. An alternative implementation became necessary because functionality. An alternative implementation became necessary because\
Python 3.5 deprecated this function, and Python 3.7 is expected to remove it 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 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 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 many cases in which access to that information is needed. See Python issue 1322\
for more information. for more information.
%description %{_description}
%package -n python2-%{pypi_name} %package -n python2-%{pypi_name}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}} %{?python_provide:%python_provide python2-%{pypi_name}}
Requires: /usr/bin/lsb_release Requires: /usr/bin/lsb_release
%description -n python2-%{pypi_name} %description -n python2-%{pypi_name} %{_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 Python 2 version.
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.
%if 0%{with_python3} %if 0%{with_python3}
%package -n python3-%{pypi_name} %package -n python3-%{pypi_name}
@ -72,21 +62,9 @@ Summary: %{summary}
Requires: /usr/bin/lsb_release Requires: /usr/bin/lsb_release
%description -n python3-%{pypi_name} %description -n python3-%{pypi_name} %{_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 Python 3 version.
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.
%endif %endif
%prep %prep