Blame coolreader.spec

4faa55a
Summary: Cross platform open source e-book reader
4faa55a
Name: coolreader
76e1cd1
Version: 3.2.32
76e1cd1
Release: 1%{?dist}
4faa55a
License: GPLv2
4faa55a
URL: https://sourceforge.net/projects/crengine
4faa55a
Source0: https://github.com/buggins/coolreader/archive/cr%{version}/coolreader-cr%{version}.tar.gz
4faa55a
Source1: cr3.appdata.xml
4faa55a
4faa55a
Patch0: coolreader-0001-fix-paths-in-a-cr3.desktop-file.patch
4faa55a
# https://github.com/buggins/coolreader/issues/80
4faa55a
Patch1: coolreader-0002-add-license-file.patch
4faa55a
4faa55a
BuildRequires: gcc-c++
4faa55a
BuildRequires: cmake >= 2.8.9
4faa55a
BuildRequires: pkgconfig(zlib)
4faa55a
BuildRequires: pkgconfig(libpng)
4faa55a
BuildRequires: pkgconfig(libjpeg)
4faa55a
BuildRequires: pkgconfig(freetype2)
4faa55a
BuildRequires: pkgconfig(harfbuzz)
4faa55a
BuildRequires: pkgconfig(QtCore)
4faa55a
BuildRequires: pkgconfig(QtGui)
4faa55a
4faa55a
BuildRequires: desktop-file-utils
4faa55a
BuildRequires: libappstream-glib
4faa55a
4faa55a
%description
4faa55a
CoolReader is fast and small cross-platform XML/CSS based eBook reader for
4faa55a
desktops and handheld devices. Supported formats: FB2, TXT, RTF, DOC, TCR,
4faa55a
HTML, EPUB, CHM, PDB, MOBI.
4faa55a
4faa55a
%prep
4faa55a
%autosetup -p1 -n %{name}-cr%{version}
4faa55a
%cmake \
4faa55a
	-DGUI=QT \
4faa55a
	-DMAX_IMAGE_SCALE_MUL=2 \
4faa55a
	-DDOC_DATA_COMPRESSION_LEVEL=3 \
4faa55a
	-DDOC_BUFFER_SIZE=0x140000 \
4faa55a
        .
4faa55a
4faa55a
%build
4faa55a
%make_build
4faa55a
4faa55a
%install
4faa55a
%make_install
4faa55a
install -D -pm 644 %{SOURCE1} %{buildroot}%{_metainfodir}/cr3.appdata.xml
4faa55a
4faa55a
%check
4faa55a
desktop-file-validate %{buildroot}%{_datadir}/applications/cr3.desktop
4faa55a
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/cr3.appdata.xml
4faa55a
4faa55a
%files
4faa55a
%license LICENSE
4faa55a
%{_bindir}/cr3
4faa55a
%{_datadir}/applications/cr3.desktop
4faa55a
%{_metainfodir}/cr3.appdata.xml
4faa55a
%{_datadir}/cr3
4faa55a
%{_datadir}/pixmaps/cr3.*
4faa55a
%{_mandir}/man1/cr3.1*
4faa55a
%doc %{_docdir}/cr3
4faa55a
%doc README.md
4faa55a
4faa55a
%changelog
76e1cd1
* Mon Oct 07 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 3.2.32-1
76e1cd1
- Update to 3.2.32
76e1cd1
3be6463
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.30-2
3be6463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3be6463
1a38929
* Mon Jun 03 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 3.2.30-1
1a38929
- Update to 3.2.30
1a38929
4faa55a
* Sun Feb 24 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 3.2.29-1
4faa55a
- Initial package