Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37543311
en ru br
ALT Linux repos
S:0.4.4-alt3

Group :: Graphics
RPM: textext

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: textext
Version: 0.4.4
Release: alt3

Summary: Editable LaTeX objects for Inkscape
License: BSD
Group: Graphics
Url: http://www.elisanet.fi/ptvirtan/software/textext/

BuildArch: noarch

Source0: %name-%version.tar.lzma
Source44: import.info
Patch33: textext-0.4.4-python2.6.patch
Patch34: textext-0.4.4-port-to-python3.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-tools

%add_python3_req_skip inkex

Requires: inkscape >= 0.46 /usr/bin/latex texlive-latex-recommended python3-module-lxml
# Earlier revisions of pstoedit were not compiled with plot-svg support:
Requires: pstoedit >= 3.45-5mdv2008.0

%description
Textext is an extension for Inkscape that allows one to insert text
typeset with LaTeX into one's graphics. Unlike similar extensions such
as Inklatex, Textext provides the ability to edit LaTeX objects after
creation.

%prep
%setup -c %name-%version
%patch33 -p0
%patch34 -p1
sed -i 1s,python,python3, textext.py

$(find /usr/*/python%_python3_version/Tools/scripts/reindent.py) textext.py

%install
rm -rf %buildroot
mkdir -p %buildroot%_datadir/inkscape/extensions

install -m 644 textext.inx %buildroot%_datadir/inkscape/extensions/
install -m 755 textext.py %buildroot%_datadir/inkscape/extensions/

%files
%_datadir/inkscape/extensions/textext.*

%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