Sisyphus repositório
Última atualização: 13 outubro 2019 | SRPMs: 17515 | Visitas: 15264673
en ru br
ALT Linux repositórios
S:0.9.16-alt2.git20150404.1

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname stuf

%def_with python3
%def_disable check

Name: python-module-%oname
Version: 0.9.16
Release: alt2.git20150404
Summary: Normal, default, ordered, chained, restricted, counter, and frozen dictionaries
License: BSD
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/stuf

# https://bitbucket.org/lcrees/stuf.git

Source: %name-%version.tar

BuildRequires: python-devel python-module-setuptools-tests
BuildRequires: python-module-parse python-module-Fabric
BuildRequires: python-module-pytest python-module-coverage
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools-tests
BuildRequires: python3-module-parse
BuildRequires: python3-module-pytest python3-module-coverage
%endif

%py_provides %oname
%py_requires parse fabric

%description
A collection of Python dictionary types that support attribute-style
access. Includes defaultdict, OrderedDict, restricted, ChainMap,
Counter, and frozen implementations plus miscellaneous utilities for
writing Python software.

%if_with python3
%package -n python3-module-%oname
Summary: Normal, default, ordered, chained, restricted, counter, and frozen dictionaries
Group: Development/Python3
%py3_provides %oname
%py3_requires parse

%description -n python3-module-%oname
A collection of Python dictionary types that support attribute-style
access. Includes defaultdict, OrderedDict, restricted, ChainMap,
Counter, and frozen implementations plus miscellaneous utilities for
writing Python software.
%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
nosetests -vv --with-coverage --cover-package=%oname
%if_with python3
pushd ../python3
python3 setup.py test -v
nosetests3 -vv --with-coverage --cover-package=%oname
popd
%endif

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

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