Sisyphus repositório
Última atualização: 18 setembro 2019 | SRPMs: 17447 | Visitas: 15125658
en ru br
ALT Linux repositórios
S:0.8.0-alt2.git20150520.1

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname pyrelic

%def_with python3

Name: python-module-%oname
Version: 0.8.0
Release: alt2.git20150520
Summary: Python API Wrapper for NewRelic API
License: MIT / GPL
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/pyrelic

# https://github.com/andrewgross/pyrelic.git

Source: %name-%version.tar

BuildRequires: python-devel python-module-setuptools-tests
BuildRequires: python-module-requests
BuildRequires: python-module-sure
BuildRequires: python-module-nose python-module-coverage
BuildRequires: python-module-httpretty
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools-tests
BuildRequires: python3-module-requests
BuildRequires: python3-module-sure
BuildRequires: python3-module-nose python3-module-coverage
BuildRequires: python3-module-httpretty
BuildRequires: python3-module-html5lib python3-module-mimeparse python3-module-pbr python3-module-unittest2
%endif

%py_provides %oname
%py_requires six requests

%description
A New Relic client library written in Python.

%if_with python3
%package -n python3-module-%oname
Summary: Python API Wrapper for NewRelic API
Group: Development/Python3
%py3_provides %oname
%py3_requires six requests

%description -n python3-module-%oname
A New Relic client library written in Python.
%endif

%prep
%setup

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

%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
python setup.py test -v
#make run_test suite=unit
%make run_test suite=fixtures
%if_with python3
pushd ../python3
python3 setup.py test -v
#make run_test suite=unit NOSETESTS=nosetests3
%make run_test suite=fixtures NOSETESTS=nosetests3
popd
%endif

%files
%doc *.md
%python_sitelibdir/*

%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