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

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

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

%define oname zc
%define version 1.0.0
%define release alt6.2

%def_with python3

%setup_python_module %oname

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 at packages.altlinux.org>

# need for links with some Zope modules

Requires: python-module-z3c
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel
%endif

### Don't set BuildArch to noarch - other zc packages arch-dependent.


%description
%summary

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

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

%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

%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