Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37535891
en ru br
ALT Linux repos
S:2.0.1-alt2

Group :: Development/Python3
RPM: python3-module-latexcodec

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname latexcodec

Name: python3-module-%oname
Version: 2.0.1
Release: alt2

Summary: A lexer and codec to work with LaTeX code in Python
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/latexcodec
BuildArch: noarch

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

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-coverage
BuildRequires: python3-module-sphinx python3-module-six
BuildRequires: python3-module-pytest

%py3_provides %oname
%py3_requires six


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

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

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

This package contains pickles for %oname.

%prep
%setup

sed -i 's|sphinx-build|sphinx-build-3|' doc/Makefile

%build
%python3_build

%install
%python3_install

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

%check
export PYTHONPATH=$PWD
py.test-3

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

%files pickles
%python3_sitelibdir/*/pickle


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin