Группа :: Development/Python3
Пакет: python3-module-zope.event
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define pypi_name zope.event
%def_with check
Name: python3-module-%pypi_name
Version: 5.0
Release: alt1.1
Summary: Very basic event publishing system
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/zope.event/
Vcs: https://github.com/zopefoundation/zope.event
Source: %name-%version.tar
# mapping from PyPI name
# https://www.altlinux.org/Management_of_Python_dependencies_sources#Mapping_project_names_to_distro_names
Provides: python3-module-%{pep503_name %pypi_name} = %EVR
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-zope.testrunner
%endif
%py3_requires zope
%description
The zope.event package provides a simple event system. It provides:
* An event publishing system
* A very simple event-dispatching system on which more sophisticated
event dispatching systems can be built. For example, a type-based
event dispatching system that builds on zope.event can be found in
zope.component.
%package tests
Summary: Tests for zope.event
Group: Development/Python3
Requires: %name = %EVR
%description tests
The zope.event package provides a simple event system. It provides:
* An event publishing system
* A very simple event-dispatching system on which more sophisticated
event dispatching systems can be built. For example, a type-based
event dispatching system that builds on zope.event can be found in
zope.component.
This package contains tests for zope.event.
%prep
%setup
%build
%pyproject_build
%install
%pyproject_install
%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir"
install -d %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* \
%buildroot%python3_sitelibdir/
%endif
%check
%pyproject_run -- zope-testrunner --test-path=src -vc
%files
%doc *.txt docs/*.rst
%python3_sitelibdir/zope/event
%python3_sitelibdir/%pypi_name-%version.dist-info
%exclude %python3_sitelibdir/*.pth
%exclude %python3_sitelibdir/*/*/tests*
%files tests
%python3_sitelibdir/*/*/tests*
%changelog
…
Полный changelog можно просмотреть здесь
%def_with check
Name: python3-module-%pypi_name
Version: 5.0
Release: alt1.1
Summary: Very basic event publishing system
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/zope.event/
Vcs: https://github.com/zopefoundation/zope.event
Source: %name-%version.tar
# mapping from PyPI name
# https://www.altlinux.org/Management_of_Python_dependencies_sources#Mapping_project_names_to_distro_names
Provides: python3-module-%{pep503_name %pypi_name} = %EVR
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-zope.testrunner
%endif
%py3_requires zope
%description
The zope.event package provides a simple event system. It provides:
* An event publishing system
* A very simple event-dispatching system on which more sophisticated
event dispatching systems can be built. For example, a type-based
event dispatching system that builds on zope.event can be found in
zope.component.
%package tests
Summary: Tests for zope.event
Group: Development/Python3
Requires: %name = %EVR
%description tests
The zope.event package provides a simple event system. It provides:
* An event publishing system
* A very simple event-dispatching system on which more sophisticated
event dispatching systems can be built. For example, a type-based
event dispatching system that builds on zope.event can be found in
zope.component.
This package contains tests for zope.event.
%prep
%setup
%build
%pyproject_build
%install
%pyproject_install
%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir"
install -d %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* \
%buildroot%python3_sitelibdir/
%endif
%check
%pyproject_run -- zope-testrunner --test-path=src -vc
%files
%doc *.txt docs/*.rst
%python3_sitelibdir/zope/event
%python3_sitelibdir/%pypi_name-%version.dist-info
%exclude %python3_sitelibdir/*.pth
%exclude %python3_sitelibdir/*/*/tests*
%files tests
%python3_sitelibdir/*/*/tests*
%changelog
…
Полный changelog можно просмотреть здесь