Репозиторий Sisyphus
Последнее обновление: 16 октября 2019 | Пакетов: 17499 | Посещений: 15276631
en ru br
Репозитории ALT
S:3.3.0-alt8.5
5.1: 3.3.0-alt1.1
4.1: 3.3.0-alt1.1
4.0: 3.3.0-alt1
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-zope

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary: The ``zope`` package is a pure namespace package
Version: 3.3.0
Release: alt8.5
License: ZPL
Group: Development/Python
Packager: Python Development Team <python at packages.altlinux.org>

%define oname zope
%def_with python3
%setup_python_module %oname
Name: %packagename

Requires: python-module-zope.interface >= 3.3.0-alt2
Requires: python-module-zc
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel
%endif

%description
%summary

%if_with python3
%package -n python3-module-%oname
Summary: The ``zope`` package is a pure namespace package (Python 3)
Group: Development/Python3
Requires: python3-module-zope.interface
Requires: python3-module-zc

%description -n python3-module-%oname
%summary
%endif

%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

%if_with python3
install -d %buildroot/%python3_sitelibdir/%oname
install -m644 %buildroot/%python_sitelibdir/%modulename/__init__.py \
%buildroot/%python3_sitelibdir/%oname/
%endif

%files
%dir %python_sitelibdir/%modulename
%python_sitelibdir/%modulename/__init__.py*

%if_with python3
%files -n python3-module-%oname
%dir %python3_sitelibdir/%oname
%python3_sitelibdir/%oname/__init__.py*
%dir %python3_sitelibdir/%oname/__pycache__
%python3_sitelibdir/%oname/__pycache__/__init__.*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin