Group :: Development/Python3
RPM: python3-module-zope.interface
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name zope.interface
%define ns_name zope
%define mod_name interface
%def_without check
Name: python3-module-%pypi_name
Version: 6.0
Release: alt1
Summary: Zope interfaces package
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/zope.interface/
Vcs: https://github.com/zopefoundation/zope.interface
Source: %name-%version.tar
Source1: %pyproject_deps_config_name
# 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
BuildRequires: python3-module-tox
BuildRequires: python3-module-zope.event
BuildRequires: python3-module-coverage
BuildRequires: python3-module-zope.testing
%endif
%description
This is a separate distribution of the %pypi_name package used in
Zope 3, along with the packages it depends on.
%package tests
Summary: Tests for %pypi_name
Group: Development/Python3
Requires: %name = %EVR
%py3_requires zope.event
%description tests
This package contains tests for %pypi_name.
%prep
%setup
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata
%build
%add_optflags -fno-strict-aliasing
%pyproject_build
%install
%pyproject_install
%check
export PIP_INDEX_URL=http://host.invalid./
# copy necessary exec deps
tox.py3 --sitepackages -e py%{python_version_nodots python3} --notest
cp -f %_bindir/coverage3 .tox/py%{python_version_nodots python3}/bin/coverage
tox.py3 --sitepackages -e py%{python_version_nodots python3} -v -- -v
%files
%doc *.txt *.rst
%python3_sitelibdir/%ns_name/%mod_name/
%python3_sitelibdir/%pypi_name-%version.dist-info/
%python3_sitelibdir/%pypi_name-%version-py%_python3_version-nspkg.pth
%exclude %python3_sitelibdir/%ns_name/%mod_name/tests/
%exclude %python3_sitelibdir/%ns_name/%mod_name/common/tests/
%exclude %python3_sitelibdir/%ns_name/%mod_name/*.c
%files tests
%python3_sitelibdir/%ns_name/%mod_name/tests/
%python3_sitelibdir/%ns_name/%mod_name/common/tests/
%changelog
…
Todas as alterações você pod ver aqui
%define pypi_name zope.interface
%define ns_name zope
%define mod_name interface
%def_without check
Name: python3-module-%pypi_name
Version: 6.0
Release: alt1
Summary: Zope interfaces package
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/zope.interface/
Vcs: https://github.com/zopefoundation/zope.interface
Source: %name-%version.tar
Source1: %pyproject_deps_config_name
# 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
BuildRequires: python3-module-tox
BuildRequires: python3-module-zope.event
BuildRequires: python3-module-coverage
BuildRequires: python3-module-zope.testing
%endif
%description
This is a separate distribution of the %pypi_name package used in
Zope 3, along with the packages it depends on.
%package tests
Summary: Tests for %pypi_name
Group: Development/Python3
Requires: %name = %EVR
%py3_requires zope.event
%description tests
This package contains tests for %pypi_name.
%prep
%setup
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata
%build
%add_optflags -fno-strict-aliasing
%pyproject_build
%install
%pyproject_install
%check
export PIP_INDEX_URL=http://host.invalid./
# copy necessary exec deps
tox.py3 --sitepackages -e py%{python_version_nodots python3} --notest
cp -f %_bindir/coverage3 .tox/py%{python_version_nodots python3}/bin/coverage
tox.py3 --sitepackages -e py%{python_version_nodots python3} -v -- -v
%files
%doc *.txt *.rst
%python3_sitelibdir/%ns_name/%mod_name/
%python3_sitelibdir/%pypi_name-%version.dist-info/
%python3_sitelibdir/%pypi_name-%version-py%_python3_version-nspkg.pth
%exclude %python3_sitelibdir/%ns_name/%mod_name/tests/
%exclude %python3_sitelibdir/%ns_name/%mod_name/common/tests/
%exclude %python3_sitelibdir/%ns_name/%mod_name/*.c
%files tests
%python3_sitelibdir/%ns_name/%mod_name/tests/
%python3_sitelibdir/%ns_name/%mod_name/common/tests/
%changelog
…
Todas as alterações você pod ver aqui