Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37568848
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-zope.component

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name zope.component
%define ns_name zope
%define mod_name component

%def_without check

Name: python3-module-%pypi_name
Version: 6.0
Release: alt2

Summary: Zope Component Architecture
License: ZPL-2.1
Group: Development/Python3
Url: http://pypi.python.org/pypi/zope.component
Vcs: https://github.com/zopefoundation/zope.component.git
Source: %name-%version.tar
Source1: %pyproject_deps_config_name
%py3_requires zope
# setuptools(pkg_resources) is used by namespace root that is packaged
# separately at python3-module-zope
%add_pyproject_deps_runtime_filter setuptools
%pyproject_runtimedeps_metadata
# 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-pyproject
%pyproject_builddeps_build
%if_with check
%pyproject_builddeps_metadata_extra test
%endif

%description
This package is intended to be independently reusable in any Python
project. It is maintained by the Zope Toolkit project.

This package represents the core of the Zope Component Architecture.
Together with the 'zope.interface' package, it provides facilities for
defining, registering and looking up components.

%package tests
Summary: Tests for zope.component (Python 3)
Group: Development/Python3
Requires: %name = %EVR
%py3_requires zope.testing zope.testrunner

%description tests
This package contains tests for %pypi_name

%prep
%setup
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata

%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
%python3_sitelibdir/%ns_name/%mod_name/
%python3_sitelibdir/%pypi_name-%version.dist-info/
%exclude %python3_sitelibdir/*.pth
%exclude %python3_sitelibdir/%ns_name/%mod_name/tests/
%exclude %python3_sitelibdir/%ns_name/%mod_name/testfiles/
%exclude %python3_sitelibdir/%ns_name/%mod_name/testing.py
%exclude %python3_sitelibdir/%ns_name/%mod_name/__pycache__/testing.*
%exclude %python3_sitelibdir/%ns_name/%mod_name/testlayer.py
%exclude %python3_sitelibdir/%ns_name/%mod_name/__pycache__/testlayer.*
%exclude %python3_sitelibdir/%ns_name/%mod_name/standalonetests.py
%exclude %python3_sitelibdir/%ns_name/%mod_name/__pycache__/standalonetests.*
%exclude %python3_sitelibdir/%ns_name/%mod_name/eventtesting.py
%exclude %python3_sitelibdir/%ns_name/%mod_name/__pycache__/eventtesting.*

%files tests
%python3_sitelibdir/%ns_name/%mod_name/tests/
%python3_sitelibdir/%ns_name/%mod_name/testfiles/
%python3_sitelibdir/%ns_name/%mod_name/testing.py
%python3_sitelibdir/%ns_name/%mod_name/__pycache__/testing.*
%python3_sitelibdir/%ns_name/%mod_name/testlayer.py
%python3_sitelibdir/%ns_name/%mod_name/__pycache__/testlayer.*
%python3_sitelibdir/%ns_name/%mod_name/standalonetests.py
%python3_sitelibdir/%ns_name/%mod_name/__pycache__/standalonetests.*
%python3_sitelibdir/%ns_name/%mod_name/eventtesting.py
%python3_sitelibdir/%ns_name/%mod_name/__pycache__/eventtesting.*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin