Группа :: Разработка/Python
Пакет: python-module-zope
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define version 3.3.0
%define release alt1
%setup_python_module zope
Summary: The ``zope`` package is a pure namespace package
Name: %packagename
Version: %version
Release: %release.1
License: ZPL
Group: Development/Python
Packager: Python Development Team <python at packages.altlinux.org>
### Don't set BuildArch to noarch - other zope packages arch-dependent.
%description
%summary
%install
mkdir -p %buildroot/%python_sitelibdir/%modulename
cat <<EOF > %buildroot/%python_sitelibdir/%modulename/__init__.py
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
#
# This file is necessary to make this directory a package.
try:
# Declare this a namespace package if pkg_resources is available.
import pkg_resources
pkg_resources.declare_namespace('zope')
except ImportError:
pass
EOF
%files
%dir %python_sitelibdir/%modulename
%python_sitelibdir/%modulename/__init__.py*
%changelog
…
Полный changelog можно просмотреть здесь
%define release alt1
%setup_python_module zope
Summary: The ``zope`` package is a pure namespace package
Name: %packagename
Version: %version
Release: %release.1
License: ZPL
Group: Development/Python
Packager: Python Development Team <python at packages.altlinux.org>
### Don't set BuildArch to noarch - other zope packages arch-dependent.
%description
%summary
%install
mkdir -p %buildroot/%python_sitelibdir/%modulename
cat <<EOF > %buildroot/%python_sitelibdir/%modulename/__init__.py
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
#
# This file is necessary to make this directory a package.
try:
# Declare this a namespace package if pkg_resources is available.
import pkg_resources
pkg_resources.declare_namespace('zope')
except ImportError:
pass
EOF
%files
%dir %python_sitelibdir/%modulename
%python_sitelibdir/%modulename/__init__.py*
%changelog
…
Полный changelog можно просмотреть здесь