Sisyphus repositório
Última atualização: 26 maio 2019 | SRPMs: 17693 | Visitas: 13604179
en ru br
ALT Linux repositórios
S:2.5.2-alt1.1

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname jsonrpcclient

%def_with python3
%def_without python2

Name: python-module-%oname
Version: 2.5.2
Release: alt1.1
Summary: JSON-RPC 2.0 client library for Python 3
License: LGPL
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/jsonrpcclient/

Source: %name-%version.tar

%if_with python2
BuildRequires: python-devel python-module-setuptools
BuildRequires: python-module-requests python-module-jsonschema
BuildRequires: python-module-nose python-module-rednose
BuildRequires: python-module-nose-cov python-module-responses
BuildRequires: python-module-cov-core python-module-coverage
BuildRequires: python2.7(future) python2.7(testfixtures) python2.7(zmq) python2.7(tornado)
%endif
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-requests python3-module-jsonschema
BuildRequires: python3-module-nose python3-module-rednose
BuildRequires: python3-module-nose-cov python3-module-responses
BuildRequires: python3-module-cov-core python3-module-coverage
BuildRequires: python3(future) python3(testfixtures) python3(zmq) python3(tornado)
%endif

%py_provides %oname

%description
JSON-RPC 2.0 client library for Python 3.

%if_with python3
%package -n python3-module-%oname
Summary: JSON-RPC 2.0 client library for Python 3
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
JSON-RPC 2.0 client library for Python 3.
%endif

%prep
%setup

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

%build
%if_with python2
%python_build_debug
%endif

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

%install
%if_with python2
%python_install
%endif

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

%check
%if_with python2
python setup.py build_ext -i
rm -fR build
PYTHONPATH=%buildroot%python_sitelibdir py.test
%endif
%if_with python3
pushd ../python3
python3 setup.py build_ext -i
rm -fR build
PYTHONPATH=%buildroot%python3_sitelibdir py.test3
popd
%endif

%if_with python2
%files
%doc *.md
%python_sitelibdir/*
%endif

%if_with python3
%files -n python3-module-%oname
%doc *.md
%python3_sitelibdir/*
%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