Group :: Desenvolvimento/Python
RPM: python3-module-zc
Main Changelog Spec Patches Sources Download Gear Bugs e 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
…
Todas as alterações você pod ver aqui
%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
…
Todas as alterações você pod ver aqui