Group :: Desenvolvimento/Python
RPM: python-module-cycler
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname cycler
%def_without python3
Name: python-module-%oname
Version: 0.10.0
Release: alt1.2
Summary: Composable style cycles
License: BSD
Group: Development/Python
Url: https://pypi.python.org/pypi/Cycler
Packager: Python Development Team <python at packages.altlinux.org>
# https://github.com/matplotlib/cycler.git
Source: https://pypi.python.org/packages/c2/4b/137dea450d6e1e3d474e1d873cd1d4f7d3beed7e0dc973b06e8e10d32488/%oname-%version.tar.gz
BuildArch: noarch
BuildPreReq: python-module-setuptools
BuildPreReq: python-module-six python-module-nose
BuildPreReq: python-module-coverage
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel python3-module-setuptools
BuildPreReq: python3-module-six python3-module-nose
BuildPreReq: python3-module-coverage python3-module-pytest-cov
%endif
%py_provides %oname
%py_requires six
%description
The public API of cycler consists of a class Cycler and a factory
function cycler(). The function provides a simple interface for creating
'base' Cycler objects while the class takes care of the composition and
iteration logic.
%if_with python3
%package -n python3-module-%oname
Summary: Composable style cycles
Group: Development/Python3
%py3_provides %oname
%py3_requires six
%description -n python3-module-%oname
The public API of cycler consists of a class Cycler and a factory
function cycler(). The function provides a simple interface for creating
'base' Cycler objects while the class takes care of the composition and
iteration logic.
%endif
%prep
%setup -n %oname-%version
%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
#python run_tests.py -v
%if_with python3
pushd ../python3
python3 setup.py test -v
#python3 run_tests.py -v
popd
%endif
%files
%doc *.rst doc/source/*.rst
%python_sitelibdir/*
%if_with python3
%files -n python3-module-%oname
%doc *.rst doc/source/*.rst
%python3_sitelibdir/*
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_without python3
Name: python-module-%oname
Version: 0.10.0
Release: alt1.2
Summary: Composable style cycles
License: BSD
Group: Development/Python
Url: https://pypi.python.org/pypi/Cycler
Packager: Python Development Team <python at packages.altlinux.org>
# https://github.com/matplotlib/cycler.git
Source: https://pypi.python.org/packages/c2/4b/137dea450d6e1e3d474e1d873cd1d4f7d3beed7e0dc973b06e8e10d32488/%oname-%version.tar.gz
BuildArch: noarch
BuildPreReq: python-module-setuptools
BuildPreReq: python-module-six python-module-nose
BuildPreReq: python-module-coverage
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel python3-module-setuptools
BuildPreReq: python3-module-six python3-module-nose
BuildPreReq: python3-module-coverage python3-module-pytest-cov
%endif
%py_provides %oname
%py_requires six
%description
The public API of cycler consists of a class Cycler and a factory
function cycler(). The function provides a simple interface for creating
'base' Cycler objects while the class takes care of the composition and
iteration logic.
%if_with python3
%package -n python3-module-%oname
Summary: Composable style cycles
Group: Development/Python3
%py3_provides %oname
%py3_requires six
%description -n python3-module-%oname
The public API of cycler consists of a class Cycler and a factory
function cycler(). The function provides a simple interface for creating
'base' Cycler objects while the class takes care of the composition and
iteration logic.
%endif
%prep
%setup -n %oname-%version
%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
#python run_tests.py -v
%if_with python3
pushd ../python3
python3 setup.py test -v
#python3 run_tests.py -v
popd
%endif
%files
%doc *.rst doc/source/*.rst
%python_sitelibdir/*
%if_with python3
%files -n python3-module-%oname
%doc *.rst doc/source/*.rst
%python3_sitelibdir/*
%endif
%changelog
…
Todas as alterações você pod ver aqui