Sisyphus repository
Last update: 27 november 2021 | SRPMs: 17423 | Visits: 22402508
en ru br
ALT Linux repos

Group :: Editors
RPM: retext

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_without tests

Name:    retext
Version: 7.2.2
Release: alt1
License: GPL-3.0+
Summary: Text editor for Markdown and reStructuredText
Summary(de): Texteditor für Markdown und reStructuredText
Group:   Editors

Source0: %name-%version.tar
Source1: %name.1

BuildArch: noarch


BuildRequires(pre): rpm-build-python3
BuildRequires(pre): python3-devel
BuildRequires(pre): rpm-macros-qt5
BuildRequires: python3-module-setuptools
BuildRequires: /dev/pts
BuildRequires: python3-module-markups
BuildRequires: python3-module-docutils
BuildRequires: python3-module-enchant
BuildRequires: python3-module-markdown
BuildRequires: libpng-devel
BuildRequires: librsvg-devel
BuildRequires: librsvg-utils
BuildRequires: ImageMagick-tools
BuildRequires: qt5-tools-devel

%if_with tests
BuildRequires:  libappstream-glib

%py3_requires docutils enchant markdown sip mdx_math chardet pygments
%add_python3_req_skip FakeVim

%add_python3_req_skip PyQt5.QtWebKit PyQt5.QtWebKitWidgets

ReText is a simple but powerful text editor for Markdown and

%description -l de
ReText ist ein einfacher, aber leistungsfähiger Texteditor
für Markdown und reStructuredText.


export PATH=%_qt5_bindir:$PATH


install -Dm 0644 %SOURCE1 %buildroot/%_man1dir/%name.1

# Generate resized icons

pushd icons
mkdir -p %buildroot/%_datadir/icons/hicolor/{16x16,22x22,24x24,32x32,48x48,64x64,72x72,96x96,128x128,scalable}/apps
for s in 16x16 22x22 24x24 32x32 48x48 64x64 72x72 96x96 128x128
   convert ./retext.png -resize $s %buildroot/%_datadir/icons/hicolor/$s/apps/retext.png
install -p -m 0644 retext.svg %buildroot/%_datadir/icons/hicolor/scalable/apps

%find_lang retext --with-man

%if_with tests
appstream-util validate-relax --nonet %buildroot%_datadir/metainfo/*.appdata.xml ||:
python3 test

%files -f retext.lang


Full changelog you can see here

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