Репозиторий Sisyphus
Последнее обновление: 21 сентября 2018 | Пакетов: 18653 | Посещений: 12241918
en ru br
Репозитории ALT

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

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

%define _unpackaged_files_terminate_build 1
# REMOVE ME (I was set for NMU) and uncomment real Release tags:
Release: alt1
%define oname z3c.schema

%def_with python3

Name: python-module-%oname
Version: 1.1.0
#Release: alt2.1
Summary: Additional schema fields for Zope 3
License: ZPLv2.1
Group: Development/Python
Url: http://pypi.python.org/pypi/z3c.schema/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

Source0: https://pypi.python.org/packages/97/b4/e2975b847ac8471f878a1660423d3e97b77ea554aaffd9b48f59f5732188/%{oname}-%{version}.tar.gz

BuildPreReq: python-devel python-module-setuptools
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel python3-module-setuptools
%endif

%py_requires zope.i18nmessageid zope.interface zope.schema

%description
This package provides different additional Zope 3 schema fields.

%package -n python3-module-%oname
Summary: Additional schema fields for Zope 3
Group: Development/Python3
%py3_requires zope.i18nmessageid zope.interface zope.schema

%description -n python3-module-%oname
This package provides different additional Zope 3 schema fields.

%package -n python3-module-%oname-tests
Summary: Tests for z3c.schema
Group: Development/Python3
Requires: python3-module-%oname = %version-%release
%py3_requires zope.testing

%description -n python3-module-%oname-tests
This package provides different additional Zope 3 schema fields.

This package contains tests for z3c.schema.

%package tests
Summary: Tests for z3c.schema
Group: Development/Python
Requires: %name = %version-%release
%py_requires zope.testing

%description tests
This package provides different additional Zope 3 schema fields.

This package contains tests for z3c.schema.

%prep
%setup -q -n %{oname}-%{version}

%if_with python3
cp -fR . ../python3
%endif

%build
%python_build

%if_with python3
pushd ../python3
%python3_build
popd
%endif

%install
%python_install
%if "%python_sitelibdir_noarch" != "%python_sitelibdir"
install -d %buildroot%python_sitelibdir
mv %buildroot%python_sitelibdir_noarch/* \
%buildroot%python_sitelibdir/
%endif

%if_with python3
pushd ../python3
%python3_install
popd
%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir"
install -d %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* \
%buildroot%python3_sitelibdir/
%endif
%endif

%files
%doc *.txt
%python_sitelibdir/*
%exclude %python_sitelibdir/*.pth
%exclude %python_sitelibdir/*/*/*/tests.*

%files tests
%python_sitelibdir/*/*/*/tests.*

%if_with python3
%files -n python3-module-%oname
%doc *.txt
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*.pth
%exclude %python3_sitelibdir/*/*/*/tests.*
%exclude %python3_sitelibdir/*/*/*/*/tests.*

%files -n python3-module-%oname-tests
%python3_sitelibdir/*/*/*/tests.*
%python3_sitelibdir/*/*/*/*/tests.*
%endif

%changelog

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

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