1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
%define version 1.0.0 %define release alt2 %setup_python_module zc Summary: The ``zc`` package is a pure namespace package Name: %packagename Version: %version Release: %release License: ZPL Group: Development/Python Packager: Python Development Team <python@packages.altlinux.org> ### Don't set BuildArch to noarch - other zc packages arch-dependent. %description %summary %install mkdir -p %buildroot/%python_sitelibdir/%modulename cat <<EOF > %buildroot/%python_sitelibdir/%modulename/__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 %python_sitelibdir/%modulename %python_sitelibdir/%modulename/__init__.py* %changelog * Mon Nov 23 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt2 - Rebuilt with python 2.6 * Tue Jan 29 2008 Grigory Batalov <bga@altlinux.ru> 1.0.0-alt1.1 - Rebuilt with python-2.5. * Wed Feb 21 2007 Ivan Fedorov <ns@altlinux.ru> 1.0.0-alt1 - Initial build for ALT Linux.