Group :: Development/Python3
RPM: python3-module-zope.size
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname zope.size
%def_with check
Name: python3-module-%oname
Version: 4.4
Release: alt1
Summary: Interfaces and simple adapter that give the size of an object
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/zope.size
VCS: https://github.com/zopefoundation/zope.size
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-zope.interface
BuildRequires: python3-module-zope.i18nmessageid
BuildRequires: python3-module-zope.testrunner
BuildRequires: python3-module-zope.component
BuildRequires: python3-module-zope.security
%endif
%description
This package provides a definition of simple interface that allows to
retrieve the size of the object for displaying and for sorting.
The default adapter is also provided. It expects objects to have the
getSize method that returns size in bytes, however, it won't crash if an
object doesn't have one and will show size as not available instead.
%package tests
Summary: Tests for zope.size
Group: Development/Python3
Requires: %name = %EVR
%description tests
This package provides a definition of simple interface that allows to
retrieve the size of the object for displaying and for sorting.
The default adapter is also provided. It expects objects to have the
getSize method that returns size in bytes, however, it won't crash if an
object doesn't have one and will show size as not available instead.
This package contains tests for zope.size.
%prep
%setup
%build
%python3_build
%install
%python3_install
%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir"
install -d %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* \
%buildroot%python3_sitelibdir/
%endif
%check
%tox_check
%files
%doc *.txt *.rst
%python3_sitelibdir/zope
%python3_sitelibdir/%oname-%version-*.egg-info
%exclude %python3_sitelibdir/*.pth
%exclude %python3_sitelibdir/*/*/tests.*
%files tests
%python3_sitelibdir/*/*/tests.*
%changelog
…
Todas as alterações você pod ver aqui
%def_with check
Name: python3-module-%oname
Version: 4.4
Release: alt1
Summary: Interfaces and simple adapter that give the size of an object
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/zope.size
VCS: https://github.com/zopefoundation/zope.size
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-zope.interface
BuildRequires: python3-module-zope.i18nmessageid
BuildRequires: python3-module-zope.testrunner
BuildRequires: python3-module-zope.component
BuildRequires: python3-module-zope.security
%endif
%description
This package provides a definition of simple interface that allows to
retrieve the size of the object for displaying and for sorting.
The default adapter is also provided. It expects objects to have the
getSize method that returns size in bytes, however, it won't crash if an
object doesn't have one and will show size as not available instead.
%package tests
Summary: Tests for zope.size
Group: Development/Python3
Requires: %name = %EVR
%description tests
This package provides a definition of simple interface that allows to
retrieve the size of the object for displaying and for sorting.
The default adapter is also provided. It expects objects to have the
getSize method that returns size in bytes, however, it won't crash if an
object doesn't have one and will show size as not available instead.
This package contains tests for zope.size.
%prep
%setup
%build
%python3_build
%install
%python3_install
%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir"
install -d %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* \
%buildroot%python3_sitelibdir/
%endif
%check
%tox_check
%files
%doc *.txt *.rst
%python3_sitelibdir/zope
%python3_sitelibdir/%oname-%version-*.egg-info
%exclude %python3_sitelibdir/*.pth
%exclude %python3_sitelibdir/*/*/tests.*
%files tests
%python3_sitelibdir/*/*/tests.*
%changelog
…
Todas as alterações você pod ver aqui