Group :: Development/Python3
RPM: python3-module-zope.exceptions
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname zope.exceptions
%def_with check
Name: python3-module-%oname
Version: 5.0.1
Release: alt2
Summary: Zope Exceptions
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/zope.exceptions/
Vcs: https://github.com/zopefoundation/zope.exceptions.git
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 %oname} = %EVR
BuildRequires(pre): rpm-build-intro >= 2.2.5
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3(zope.interface)
BuildRequires: python3(zope.testrunner)
%endif
%py3_requires zope
%description
This package contains exception interfaces and implementations which are
so general purpose that they don't belong in Zope application-specific
packages.
%prep
%setup
%build
%pyproject_build
%install
%pyproject_install
%python3_prune
%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 README.*
%python3_sitelibdir/zope/exceptions/
%python3_sitelibdir/%oname-%version.dist-info/
%exclude %python3_sitelibdir/*.pth
%changelog
…
Todas as alterações você pod ver aqui
%define oname zope.exceptions
%def_with check
Name: python3-module-%oname
Version: 5.0.1
Release: alt2
Summary: Zope Exceptions
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/zope.exceptions/
Vcs: https://github.com/zopefoundation/zope.exceptions.git
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 %oname} = %EVR
BuildRequires(pre): rpm-build-intro >= 2.2.5
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3(zope.interface)
BuildRequires: python3(zope.testrunner)
%endif
%py3_requires zope
%description
This package contains exception interfaces and implementations which are
so general purpose that they don't belong in Zope application-specific
packages.
%prep
%setup
%build
%pyproject_build
%install
%pyproject_install
%python3_prune
%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 README.*
%python3_sitelibdir/zope/exceptions/
%python3_sitelibdir/%oname-%version.dist-info/
%exclude %python3_sitelibdir/*.pth
%changelog
…
Todas as alterações você pod ver aqui