diff --git a/python-utmp.spec b/python-utmp.spec index 890e3bc..fd65f85 100644 --- a/python-utmp.spec +++ b/python-utmp.spec @@ -9,32 +9,24 @@ License: Copyright only URL: http://kassiopeia.juls.savba.sk/~garabik/software/python-utmp/ Source0: http://kassiopeia.juls.savba.sk/~garabik/software/python-utmp/%{name}_%{version}.tar.gz - -%description +%global _description %{expand: python-utmp consists of three modules, providing access to utmp records. It is quite difficult to access utmp record portably, because every UNIX has different structure of utmp files. Currently, python-utmp works on platforms which provide getutent, getutid, getutline, pututline, setutent, endutent and utmpname functions (such as GNU systems (Linux and hurd) and System V unices) and on BSD systems using -simple utmp structure. +simple utmp structure.} + +%description %_description %package -n python2-%{srcname} Summary: Python modules for umtp records - BuildRequires: gcc BuildRequires: python2-devel - %{?python_provide:%python_provide python2-%{srcname}} -%description -n python2-%{srcname} -python-utmp consists of three modules, providing access to utmp records. -It is quite difficult to access utmp record portably, because every UNIX -has different structure of utmp files. Currently, python-utmp works on -platforms which provide getutent, getutid, getutline, pututline, -setutent, endutent and utmpname functions (such as GNU systems -(Linux and hurd) and System V unices) and on BSD systems using -simple utmp structure. +%description -n python2-%{srcname} %_description This is the Python 2 build of the package. @@ -44,16 +36,7 @@ Summary: Python modules for umtp records BuildRequires: python3-devel %{?python_provide:%python_provide python3-%{srcname}} -%description -n python3-%{srcname} -python-utmp consists of three modules, providing access to utmp records. -It is quite difficult to access utmp record portably, because every UNIX -has different structure of utmp files. Currently, python-utmp works on -platforms which provide getutent, getutid, getutline, pututline, -setutent, endutent and utmpname functions (such as GNU systems -(Linux and hurd) and System V unices) and on BSD systems using -simple utmp structure. - -This is the Python 3 build of the package. +%description -n python3-%{srcname} %_description %prep %setup -qc