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 %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. %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<