Sisyphus repositório
Última atualização: 22 novembro 2019 | SRPMs: 17516 | Visitas: 15824634
en ru br
ALT Linux repositórios
S:0.10.5-alt2

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname pycobertura

%def_with python3

Name: python-module-%oname
Version: 0.10.0
Release: alt1
Summary: A Cobertura coverage report parser written in Python
License: MIT
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/pycobertura/

# https://github.com/SurveyMonkey/pycobertura.git

Source: %name-%version.tar

BuildRequires: python-devel python-module-setuptools-tests
BuildRequires: python-module-click-tests python-module-colorama
BuildRequires: python-module-tabulate python-module-mock
BuildRequires: python-module-pytest-cov python-module-jinja2
BuildRequires: python-module-html5lib
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools-tests
BuildRequires: python3-module-click-tests python3-module-colorama
BuildRequires: python3-module-tabulate python3-module-unittest2
BuildRequires: python3-module-pytest-cov python3-module-jinja2
BuildRequires: python3-module-html5lib python3-module-pbr
%endif

%py_provides %oname

%description
A Cobertura coverage report parser written in Python.

%if_with python3
%package -n python3-module-%oname
Summary: A Cobertura coverage report parser written in Python
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
A Cobertura coverage report parser written in Python.
%endif

%prep
%setup

sed -i -e 's|setuptools_git|setuptools|g' setup.py

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

%build
%python_build_debug

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

%install
%if_with python3
pushd ../python3
%python3_install
popd
pushd %buildroot%_bindir
for i in $(ls); do
mv $i $i.py3
done
popd
%endif

%python_install

%check
export LC_ALL=en_US.UTF-8
python setup.py test
py.test
%if_with python3
pushd ../python3
python3 setup.py test
py.test3
popd
%endif

%files
%doc *.md
%_bindir/*
%if_with python3
%exclude %_bindir/*.py3
%endif
%python_sitelibdir/*

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