Репозиторий Sisyphus
Последнее обновление: 23 марта 2019 | Пакетов: 17647 | Посещений: 13262867
en ru br
Репозитории ALT

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

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

%define oname latexcodec

%def_with python3

Name: python-module-%oname
Version: 1.0.5
Release: alt1.1
Summary: A lexer and codec to work with LaTeX code in Python
License: MIT
Group: Development/Python
Url: https://pypi.python.org/pypi/latexcodec

# https://github.com/mcmtroffaes/latexcodec.git

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

BuildRequires(pre): rpm-macros-sphinx
BuildRequires: python-devel python-module-setuptools
BuildRequires: python-module-alabaster python-module-coverage python-module-docutils python-module-html5lib python-module-nose python-module-objects.inv
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-coverage python3-module-nose python3-module-six
%endif

%py_provides %oname
%py_requires six

%description
A lexer and codec to work with LaTeX code in Python.

%if_with python3
%package -n python3-module-%oname
Summary: A lexer and codec to work with LaTeX code in Python
Group: Development/Python3
%py3_provides %oname
%py3_requires six

%description -n python3-module-%oname
A lexer and codec to work with LaTeX code in Python.
%endif

%package pickles
Summary: Pickles for %oname
Group: Development/Python

%description pickles
A lexer and codec to work with LaTeX code in Python.

This package contains pickles for %oname.

%prep
%setup

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

%prepare_sphinx .
ln -s ../objects.inv doc/

%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

export PYTHONPATH=$PWD
%make -C doc pickle
%make -C doc html
cp -fR doc/_build/pickle %buildroot%python_sitelibdir/%oname/

%check
python setup.py test -v
export PYTHONPATH=$PWD
coverage run --source=latexcodec $(type -p nosetests) -vv
%if_with python3
pushd ../python3
python3 setup.py test -v
export PYTHONPATH=$PWD
coverage3 run --source=latexcodec $(type -p nosetests3) -vv
popd
%endif

%files
%doc *.rst doc/_build/html
%python_sitelibdir/*
%exclude %python_sitelibdir/*/pickle

%files pickles
%python_sitelibdir/*/pickle

%if_with python3
%files -n python3-module-%oname
%doc *.rst doc/_build/html
%python3_sitelibdir/*
%endif

%changelog

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

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