Name: yudit Version: 3.1.0 Release: %autorelease License: GPL-2.0-only URL: https://www.yudit.org Source0: https://yudit.org/download/%{name}-%{version}.tar.gz Summary: Unicode Text Editor BuildRequires: fonts-rpm-macros BuildRequires: pkgconfig(freetype2) BuildRequires: gcc-c++ BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(xproto) BuildRequires: pkgconfig(x11) BuildRequires: dos2unix BuildRequires: desktop-file-utils BuildRequires: cups-client BuildRequires: gettext BuildRequires: libappstream-glib Requires: yudit-data Recommends: yudit-doc Recommends:yudit-fonts %global desc %{expand: Yudit is a Unicode text editor for the X Window System. It can do True Type font rendering, printing, transliterated keyboard input and handwriting recognition with no dependencies on external engines. Its conversion utilities can convert text between various encodings. Keyboard input maps can also act like text converters. There is no need for a preinstalled multi-lingual environment.Menus are translated into many languages. } %description %desc %package data BuildArch: noarch Requires: hicolor-icon-theme Summary: Yudit Unicode Text Processor - data files %description data %desc This package is arch- independent data component of Yudit. %package doc Summary: Yudit Unicode Text Processor - documentation BuildArch: noarch License: GPL-2.0-only AND GFDL-1.1 %description doc %desc This package is additional documentation component of Yudit. %package fonts Summary: Yudit Unicode Text Processor - fonts BuildArch: noarch License: GPL-2.0-or-later %description fonts This package is additional fonts bundled with Yudit. %prep %setup -q for i in doc/HOWTO-baybayin.txt COPYING.TXT README.TXT doc/HOWTO-devanagari.txt doc/HOWTO-syntax.txt do dos2unix $i done sed -i '/install-sh/s/ -s//' Makefile.conf.in %build %configure %make_build %install %make_install # %%exclude %%{_datadir}/yudit/fonts mkdir -p $RPM_BUILD_ROOT/etc/yudit cp $RPM_BUILD_ROOT/usr/share/yudit/config/* $RPM_BUILD_ROOT/etc/yudit/ mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/scalable/apps install -m 644 yudit.svg $RPM_BUILD_ROOT/usr/share/icons/hicolor/scalable/apps/yudit.svg mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps install -m 644 yudit48x48.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/yudit.png mkdir -p $RPM_BUILD_ROOT/usr/share/applications cat >$RPM_BUILD_ROOT/usr/share/applications/yudit.desktop <$RPM_BUILD_ROOT/usr/share/metainfo/yudit.metainfo.xml< org.yudit.desktop> CC0-1.0 GPL-2.0-only AND GFDL-1.1 Yudit Unicode Text Editor

Yudit is a Unicode text editor for the X Window System. It can do True Type font rendering, printing, transliterated keyboard input and handwriting recognition with no dependencies on external engine.

Its conversion utilities can convert text between various encodings. Keyboard input maps can also act like text converters

https://www.yudit.org/images/yudit-3.0.9-scale-2.0.png https://www.yudit.org/images/yudit-3.0.7-linux.png http://www.yudit.org gaspar@yudit.org
EOF appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/%{name}.metainfo.xml mkdir -p $RPM_BUILD_ROOT%{_fontdir}/yudit/fonts mv $RPM_BUILD_ROOT/usr/share/yudit/fonts/* $RPM_BUILD_ROOT%{_fontdir}/yudit/fonts %find_lang %{name} %files -f %{name}.lang %{_bindir}/uniconv %{_bindir}/uniprint %{_bindir}/yudit %{_datadir}/yudit/config/ %{_bindir}/mytool %{_mandir}/man1/* %dir %{_sysconfdir}/yudit/ %config(noreplace) %{_sysconfdir}/yudit/* %license COPYING.TXT %files data %dir %{_datadir}/yudit %{_datadir}/yudit/data %{_datadir}/yudit/syntax %{_datadir}/applications/yudit.desktop %{_datadir}/icons/hicolor/scalable/apps/yudit.svg %{_datadir}/icons/hicolor/48x48/apps//yudit.png %{_metainfodir}/%{name}.metainfo.xml %files doc %{_datadir}/yudit/src %{_datadir}/yudit/doc %files fonts %{_fontdir}/yudit/fonts %changelog %autochangelog