Summary: Cross platform open source e-book reader Name: coolreader Version: 3.2.29 Release: 1%{?dist} License: GPLv2 URL: https://sourceforge.net/projects/crengine Source: https://github.com/buggins/coolreader/archive/cr%{version}/coolreader-cr%{version}.tar.gz Patch0: coolreader-0001-fix-paths-in-a-cr3.desktop-file.patch BuildRequires: gcc-c++ BuildRequires: cmake >= 2.8.9 BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(QtCore) BuildRequires: pkgconfig(QtGui) BuildRequires: desktop-file-utils %description CoolReader is fast and small cross-platform XML/CSS based eBook reader for desktops and handheld devices. Supported formats: FB2, TXT, RTF, DOC, TCR, HTML, EPUB, CHM, PDB, MOBI. %prep %autosetup -p1 -n %{name}-cr%{version} %cmake \ -DGUI=QT \ -DMAX_IMAGE_SCALE_MUL=2 \ -DDOC_DATA_COMPRESSION_LEVEL=3 \ -DDOC_BUFFER_SIZE=0x140000 \ . %build %make_build %install %make_install desktop-file-validate \ %{buildroot}%{_datadir}/applications/cr3.desktop %files %{_bindir}/cr3 %{_datadir}/applications/cr3.desktop %{_datadir}/cr3 %{_datadir}/pixmaps/cr3.* %{_mandir}/man1/cr3.1* %doc %{_docdir}/cr3 %doc README.md %changelog * Thu Nov 1 2018 Sergey Avseyev - 3.2.11-1 - Initial package