Репозиторий Sisyphus
Последнее обновление: 18 августа 2019 | Пакетов: 17338 | Посещений: 14652053
en ru br
Репозитории ALT

Группа :: Разработка/Python
Пакет: python-module-hglib

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define oname hglib

%def_without python3
%def_disable check

Name: python-module-%oname
Version: 1.5
Release: alt3
Summary: Mercurial Python library
License: MIT
Group: Development/Python
Url: https://pypi.python.org/pypi/python-hglib/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

Source: %name-%version.tar
BuildArch: noarch

#BuildPreReq: mercurial

#BuildPreReq: python-devel python-module-setuptools-tests
#BuildPreReq: python-module-nose
BuildRequires: python-devel
%if_with python3
BuildRequires(pre): rpm-build-python3
#BuildPreReq: python3-devel python3-module-setuptools-tests
#BuildPreReq: python3-module-nose
#BuildPreReq: python-tools-2to3
BuildRequires: python3 python-tools-2to3
%endif

%py_provides %oname

%description
python-hglib is a library with a fast, convenient interface to
Mercurial. It uses Mercurial's command server for communication with hg.

%if_with python3
%package -n python3-module-%oname
Summary: Mercurial Python library
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
python-hglib is a library with a fast, convenient interface to
Mercurial. It uses Mercurial's command server for communication with hg.
%endif

%prep
%setup

%if_with python3
cp -fR . ../python3
find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' +
%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 test.py
%if_with python3
pushd ../python3
python3 test.py
popd
%endif

%files
%doc README examples
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc README examples
%python3_sitelibdir/*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin