Группа :: Разработка/Python
Пакет: python3-module-zc
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define oname zc
%define version 1.0.0
%define release alt7
Summary: The ``zc`` package is a pure namespace package
Name: python3-module-%oname
Version: %version
Release: %release
License: ZPL
Group: Development/Python
Packager: Python Development Team <python at packages.altlinux.org>
# need for links with some Zope modules
Requires: python3-module-z3c
BuildRequires(pre): rpm-build-python3
### Don't set BuildArch to noarch - other zc packages arch-dependent.
%description
%summary
%install
mkdir -p %buildroot/%python3_sitelibdir/%oname
cat <<EOF > %buildroot/%python3_sitelibdir/%oname/__init__.py
try:
# Declare this a namespace package if pkg_resources is available.
import pkg_resources
pkg_resources.declare_namespace('zc')
except ImportError:
pass
EOF
%files
%dir %python3_sitelibdir/%oname
%python3_sitelibdir/%oname/__init__.py*
%dir %python3_sitelibdir/%oname/__pycache__
%python3_sitelibdir/%oname/__pycache__/__init__.*
%changelog
…
Полный changelog можно просмотреть здесь
%define version 1.0.0
%define release alt7
Summary: The ``zc`` package is a pure namespace package
Name: python3-module-%oname
Version: %version
Release: %release
License: ZPL
Group: Development/Python
Packager: Python Development Team <python at packages.altlinux.org>
# need for links with some Zope modules
Requires: python3-module-z3c
BuildRequires(pre): rpm-build-python3
### Don't set BuildArch to noarch - other zc packages arch-dependent.
%description
%summary
%install
mkdir -p %buildroot/%python3_sitelibdir/%oname
cat <<EOF > %buildroot/%python3_sitelibdir/%oname/__init__.py
try:
# Declare this a namespace package if pkg_resources is available.
import pkg_resources
pkg_resources.declare_namespace('zc')
except ImportError:
pass
EOF
%files
%dir %python3_sitelibdir/%oname
%python3_sitelibdir/%oname/__init__.py*
%dir %python3_sitelibdir/%oname/__pycache__
%python3_sitelibdir/%oname/__pycache__/__init__.*
%changelog
…
Полный changelog можно просмотреть здесь