%define oname zc%define version 1.0.0%define release alt7Summary:The``zc``packageisapurenamespacepackage
Name:python3-module-%oname
Version:%version
Release:%release
License:ZPL
Group:Development/Python
Packager:PythonDevelopmentTeam<python@packages.altlinux.org>
# need for links with some Zope modulesRequires:python3-module-z3c
BuildRequires(pre):rpm-build-python3
### Don't set BuildArch to noarch - other zc packages arch-dependent.%description%summary
%installmkdir-p%buildroot/%python3_sitelibdir/%oname
cat<<EOF>%buildroot/%python3_sitelibdir/%oname/__init__.py
try:
# Declare this a namespace package if pkg_resources is available.importpkg_resources
pkg_resources.declare_namespace('zc')
exceptImportError:
pass
EOF
%files%dir%python3_sitelibdir/%oname
%python3_sitelibdir/%oname/__init__.py*
%dir%python3_sitelibdir/%oname/__pycache__
%python3_sitelibdir/%oname/__pycache__/__init__.*
%changelog* Wed Sep 08 2021 Grigory Ustinov <grenka@altlinux.org> 1.0.0-alt7-Droppython2support.
* Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.0.0-alt6.2-(NMU)rebuildwithrpm-build-python3-0.1.9
(forcommonpython3/site-packages/andautopython3.3-ABIdepwhenneeded)
* Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 1.0.0-alt6.1-RebuildwithPython-3.3
* Wed Apr 18 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt6-Addedrequirementonpython3-module-z3c
* Thu Apr 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt5-AddedmoduleforPython3(bootstrap)
* Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0.0-alt4.1-RebuildwithPython-2.7
* Sat Jun 04 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt4-Reallyaddedrequirementonpython-module-z3c
* Sat Jun 04 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt3-Addedrequirementonpython-module-z3c
* Mon Nov 23 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt2-Rebuiltwithpython2.6
* Tue Jan 29 2008 Grigory Batalov <bga@altlinux.ru> 1.0.0-alt1.1-Rebuiltwithpython-2.5.
* Wed Feb 21 2007 Ivan Fedorov <ns@altlinux.ru> 1.0.0-alt1-InitialbuildforALTLinux.