Sisyphus repositório
Última atualização: 18 setembro 2019 | SRPMs: 17447 | Visitas: 15124638
en ru br
ALT Linux repositórios
S:5.0.0-alt2

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname fields

%def_with python3
%def_with full_tests

Name: python-module-%oname
Version: 5.0.0
Release: alt1
Summary: Container class boilerplate killer
License: BSD
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/fields

Source: %name-%version.tar

BuildRequires: python-devel python-module-setuptools
%if_with full_tests
BuildRequires: python2.7(attr) python2.7(characteristic) python2.7(pytest_benchmark)
%endif
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
%if_with full_tests
BuildRequires: python3(attr) python3(characteristic) python3(pytest_benchmark)
%endif
%endif

%description
Container class boilerplate killer.

%if_with python3
%package -n python3-module-%oname
Summary: Container class boilerplate killer
Group: Development/Python3

%description -n python3-module-%oname
Container class boilerplate killer.
%endif

%prep
%setup

%if_with python3
cp -fR . ../python3
# this file is not needed in python3
rm -f ../python3/src/fields/py2ordereddict.py
%endif

%build
%python_build_debug

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

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

%python_install

%check
python setup.py test
%if_with full_tests
py.test
%endif

%if_with python3
pushd ../python3
python3 setup.py test
%if_with full_tests
py.test3
%endif
popd
%endif

%files
%doc LICENSE *.rst
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc LICENSE *.rst
%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