Sisyphus repositório
Última atualização: 17 junho 2019 | SRPMs: 17680 | Visitas: 14071862
en ru br
ALT Linux repositórios
S:0.3.0-alt3.git20141205.1

Group :: Desenvolvimento/Python
RPM: python-module-azoth

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname azoth

%def_with python3

Name: python-module-%oname
Version: 0.3.0
Release: alt2.git20141205
Summary: Sqlalchemy utilities
License: BSD
Group: Development/Python
Url: https://pypi.python.org/pypi/azoth/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# https://github.com/TakesxiSximada/azoth.git

Source: %name-%version.tar
BuildArch: noarch

BuildPreReq: python-devel python-module-setuptools-tests
BuildPreReq: python-module-six python-module-transaction
BuildPreReq: python-module-SQLAlchemy
BuildPreReq: python-module-nose python-module-mock
BuildPreReq: python-module-coverage python-module-testfixtures
BuildPreReq: python-module-virtualenv python-modules-json
BuildPreReq: python-modules-json python-module-tox
BuildPreReq: python-module-flake8 python-modules-sqlite3
BuildPreReq: python-module-zope.interface
BuildPreReq: python-module-zope.sqlalchemy
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel python3-module-setuptools-tests
BuildPreReq: python3-module-six python3-module-transaction
BuildPreReq: python3-module-SQLAlchemy python3-module-tox
BuildPreReq: python3-module-nose python3-module-mock
BuildPreReq: python3-module-coverage python3-module-testfixtures
BuildPreReq: python3-modules-sqlite3 python3-module-flake8
BuildPreReq: python3-module-zope.interface
BuildPreReq: python3-module-zope.sqlalchemy
BuildPreReq: python3-module-virtualenv
BuildPreReq: python-tools-2to3
%endif

%py_provides %oname
%py_requires zope.interface zope.sqlalchemy

%description
azoth is sqlalchemy helper library.

%package tests
Summary: Tests for %oname
Group: Development/Python
Requires: %name = %EVR

%description tests
azoth is sqlalchemy helper library.

This package contains tests for %oname.

%package -n python3-module-%oname
Summary: Sqlalchemy utilities
Group: Development/Python3
%py3_provides %oname
%py3_requires zope.interface zope.sqlalchemy

%description -n python3-module-%oname
azoth is sqlalchemy helper library.

%package -n python3-module-%oname-tests
Summary: Tests for %oname
Group: Development/Python3
Requires: python3-module-%oname = %EVR

%description -n python3-module-%oname-tests
azoth is sqlalchemy helper library.

This package contains tests for %oname.

%prep
%setup

%if_with python3
cp -fR . ../python3
find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' +
%endif

sed -i 's|\(nonlocal \)||' azoth/decorators.py

%build
%python_build_debug

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

%install
%python_install

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

%check
rm -fR build
py.test
%if_with python3
pushd ../python3
rm -fR build
py.test-%_python3_version
popd
%endif

%files
%doc *.rst
%python_sitelibdir/*
%exclude %python_sitelibdir/tests
%exclude %python_sitelibdir/*/testutils.*

%files tests
%python_sitelibdir/*/testutils.*

%if_with python3
%files -n python3-module-%oname
%doc *.rst
%python3_sitelibdir/*
%exclude %python3_sitelibdir/tests
%exclude %python3_sitelibdir/*/testutils.*
%exclude %python3_sitelibdir/*/*/testutils.*

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

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009