Репозиторий Sisyphus
Последнее обновление: 17 октября 2018 | Пакетов: 18649 | Посещений: 12382580
en ru br
Репозитории ALT

Группа :: Редакторы
Пакет: retext

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

%def_without tests

Name:           retext
Version:        7.0.4
Release:        alt1
License:        GPLv3+
Summary:        Text editor for Markdown and reStructuredText
Summary(de):    Texteditor fц╪r Markdown und reStructuredText
Group:          Editors
URL: https://github.com/retext-project/retext

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

BuildArch:      noarch

BuildRequires(pre): rpm-build-python3
BuildRequires(pre): python3-devel python3-module-setuptools /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
BuildRequires:  python-module-PyQt5-devel

%if_with tests
BuildRequires:  libappstream-glib
%endif

%py3_requires docutils enchant markdown sip mdx_math
%add_python3_req_skip FakeVim PyQt5.QtWebEngineWidgets

%description
ReText is a simple but powerful text editor for Markdown and
reStructuredText.

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

%prep
%setup -q

%build
%python3_build_debug

%install
%python3_install

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
do
   convert ./retext.png -resize $s %buildroot/%_datadir/icons/hicolor/$s/apps/retext.png
done
install -p -m 0644 retext.svg %buildroot/%_datadir/icons/hicolor/scalable/apps
popd

install -Dm 0644 data/*.desktop %buildroot%_desktopdir/%name.desktop

mv %buildroot%_datadir/{metainfo,appdata}

%find_lang retext --with-man

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

%files -f retext.lang
%doc changelog.md configuration.md README.md LICENSE_GPL
%_bindir/%name
%_datadir/appdata/*.appdata.xml
%_desktopdir/*.desktop
%_iconsdir/hicolor/*/apps/%name.*
%_datadir/%name/
%_man1dir/*.1*
%python3_sitelibdir/ReText/
%python3_sitelibdir/*egg-info

%changelog

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

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